I’ve got a form with a date/time picker.
I want it to automatically populate with the current date/time so that the user doesn’t have to manually select it.
If they leave the page open for a while the date/time picker doesn’t update to the NEW current date/time.
How can I get the date/time picker to update to the current, as of this moment, date/time (not the date/time when the page was loaded)?
I tried to “display data” but the date/time input doesn’t show up in the list.
The date/time input also doesn’t have a “data source” I can change (like the repeating group does).
set DateInput A’s initial content to “current date/time”
set a custom state in the DateInput (something like curr_date_time)
set a condition in DateInput A, when it’s own custom state is not empty it’s initial content is set to its custom state, so it should read like “this DateInput’s curr_date_time is not empty” and set the “initial content” to “this DateInput’s curr_date_time”
make a workflow with at least two actions; the first action will set the custom state curr_date_time to the “current date/time” and the SECOND action will reset the DateInput
So it’s like the dropdown changing updates the date/time in the custom state, then the condition updates the initial content to reflect the custom state, then the reset changes the DateInput’s value “back” to its initial condition.
It’s a silly work around, but the emphasis is on “works”.
So you got the DateInput to change it’s value just by setting its initial content to its custom state and then changing the value of the custom state itself? I could have sworn that changing the custom state wasn’t working for me. Maybe I didn’t try it in that exact combination. The custom state’s value would change, but the value displayed in the DateInput wouldn’t change.
Sorry for bumping such an old thread, but the discussions in here solved a huge problem for. Just wanted to reach out and say thanks @DaveA and @blueback09