I have placed a date/time field on a form that should show the full date
and time in the format MM/DD/YYYY HH:MM A (03/22/2012 10:05 AM) on the
enter event.
I'm having trouble finding the right combination of object properties and
scripting to display in that format. Using the action builder it will only
set the date (not time) in the format (YYYY-MM-DD), and not in the pattern
I specified in patterns on the the value tab for display and data and you
can't include the time.
If I set the field to calculated, then the field is populated on
initialize, which is not desired as the time has to be accurate to the
minute and should not be populated until the user is ready to "stamp" the
field by clicking in it.
What JS on the enter event of the field would achieve this?
Also, will the enter event still trigger if the field is read only when the
form loads?
Maybe there is a better way to achieve this without the use of a button?