I have a number of speaking sessions with a date and time. The user can pick a session in a drop down. I would like the default option in the dropdown element to show the session that is closest to the current date/time. Any ideas how to do that?
Have that dropdown default to an appropriate state.
Then have a workflow set the state to the required date (eg. on page load).
Hi @manuelmaccou !
if the dropdown’s value is filtered (time > current date/time) then the default value should be search for all speaking times where date > current date/time, sorted ascending: first item. The dropdown will only show times in the future starting from the one closest to current time.
Whoops my bad, mixed up dropdowns with date time input. @hanan1 's solution better.
This topic was automatically closed after 70 days. New replies are no longer allowed.