What's the best way to let users to enter start and finish times, then have a separate field which auto-calculates the duration?
1) What type of field is best for the Start & Finish time fields?
Dropdown with 15/30 minute increments?
Could we create a field where when users type in for instance '1132' the field auto-formats it to:'11:32'? Will this work if we try to work out the difference between the two times?
2) What code do we use in JS to workout the difference between start and finish time?
Thank you!
I tried a bunch of thing sand couldn't figure it out.
If it's just time, perhaps Dropdown fields would be an option. It all depends on specific case + precision needed for the task. Are 15 minute intervals okay? Then dropdown can be good. If not, it's possible to transform text into time, and calculate difference, for example, using Masked input - Masked Input field — Public web forms