Setting the date field to today sets the date without user interaction

10241
32
06-10-2021 01:52 PM
BenWalker1
New Contributor III

If I have a field, like a survey creation date, it should possible to set it to be today's date without the user needing to open a separate dialog box and then confirm todays date. this will reduce the number of clicks the users needs to have with the form. 

Tags (1)
32 Comments
ADS
by

Thank you @JustinReynolds !

BronwenHughes

@JustinReynolds   - thank you for that code.

When I add it to the form in Field Maps, the field becomes un-editable. It appears that if a "calculated value" is applied to the Date field, then editing capability is switched off. 

Is there any way to get around this? 

I would like the date to default to Now, with the option to change to another date as required.