When using the date, time or date & time fields, it can be sometimes tricky to work out how the fields work. This topic is to handle any questions you may have.
How the format is used
The definitive guide on moment.js formatting is in the moment.js docs, however this is custom-wizard-specific explaination of how that applies, and a place for any questions about these custom wizard fields.
In the custom wizard code, the format you enter in the format input for a field is applied when the user updates the relevant field.
For example, if a time field format is set to the moment.js representation of an ISO 8601 date:
YYYY-MM-DDZHH:mm:ssZZ
If the user enters the time 07:00 in the time input on the 26th of November in the timezone of GMT+11 (Australia’s east coast, where I work from), the value that will be saved with the user’s submission will be
2020-11-26+11:0007:00:00+1100
In other words, moment.js will automatically fill out the date and timezone parts of the full ISO 8601 time according to what the user’s browser settings (i.e. when and where the user is).
Pro Tip: if the format field is empty moment.js will automatically convert the input to an ISO 8601 string.
To further demostrate, if the format for the time field were changed to
h:mm a
and the user entered 07:00 again, the time saved would be
7:00 am
If you have any more questions about how the format is used to handle date and time inputs, please post below
I didn’t know about this plugin. I don’t think it’ll work for my use case as I just need three dates in a new topic which the wizard is generating. I just have to put in 3 dates to have it pre-format my topic.
I was hoping there’s some sort of built in logic to take input 1, then interpolate 2 other data points from it, and display all three as field content within the action of the wizard. Meaning the wizard interpolates and sets the variables based on (in my case a number of days prior to my input date).
That said, I’m going to explore this plugin as it might be useful for automating some of the repetitive tasks of creating Meeting record threads and specifically formatted responses that our professional association generates (manually) each month.