search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Modal.Form() Optional/Null Dates

Asked by Anonymous
6 months ago.

Is there a way to display null or optional date fields within the Modal.Form? When loading dp.events.list additional date fields have been added to the tags element. They come through as nulll.

But when loading through the modal.form() the args.e.data converts the nulls into essentially today’s date.

Those values are then presented on the form even though the underlying data is null/optional.

Even attempting to override one of the values to null inside the click event did not render a blank field on the form.

args.e.data.tags.mediaend = null;

        window.DayPilot.Modal.form(form,args.e.data, {okText: "Submit"}).then(function(args){

          if(!args.canceled) {

Thank you for the assistance.

Comment posted by Dan Letecky [DayPilot]
6 months ago.

Please let me check that. It should be possible but it will take a while. I’ll keep you updated.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.