Date/Time not saved if only Date is input when not required

We have new forms with Date Time fields where the field is not required. QA has pointed out that if you input only a Date but no time then nothing gets saved. Any suggested workarounds?

We have existing forms where the field is required and that is no longer an issue but it is now an issue when the field is not required.

OriginalPostID-236023

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Hi Joep45 ,
    Its true that saveInto of the date time field executes only when both the values are filled. As a work around you can pass now() to the rule input from where it is being called so that any interactions on either the date field or time filed will cause save in to to execute.
    Note that if you change the date the time value remains same as now() and same with date also when time is changed. Hope this helps you.
Reply
  • 0
    Certified Lead Developer
    Hi Joep45 ,
    Its true that saveInto of the date time field executes only when both the values are filled. As a work around you can pass now() to the rule input from where it is being called so that any interactions on either the date field or time filed will cause save in to to execute.
    Note that if you change the date the time value remains same as now() and same with date also when time is changed. Hope this helps you.
Children
No Data