I am looking for a work around to be able to change what a user can chooser for time on a date/time field.
Right now it literally starts at 12 am and seems to take quite a bit of scrolling to get to the later morning hours.
For example; I would like the time options to start at 8:00 am and end at 7:00 pm.
We never do appointments other than during those hours. Sometimes mistakenly our users are picking the wrong am or pm because of the massive amount of scrolling required.
A similar question was raised on the below thread:
Also worth noting that instead of scrolling the time picker you can type 1130 for 11:30am or 1700 for 5pm (as examples) irrespective of the time format, militarily (24 hour) or am/pm.
Knack will convert the input when saved.
This should speed up time input too.
The below code is JavaScript, you need to update the view and field values.
I should have put the code in as unformatted as the quotes get changed and the code doesn’t work. I have used the below and it works fine. Make sure you add the view and field number. Your code only has the field number. My view is 46 and the field is 49 as shown below.
One more question about this… I use this field for multiple dates but in some instances (on certain pages) it’s always a one day appointment. Is there any code I can put in for the view to make it a one day thing instead of start to finish?