-
tlobaughAsked on September 2, 2014 at 6:00 PM
I want people to be able to enter the time an event occurred but I know that it must occur between 8 am and 4 pm. Is there a way to restrict time entries to that period? I am trying to avoid mistakes like 1 am when it should really say 1 pm.
Thanks!
-
Ashwin JotForm SupportReplied on September 2, 2014 at 11:18 PM
Hello tlobaugh,
We do have time field and also few widgets which should help you achieve your requirement. You can add a "Time" field which is under "Quick Tools" tab. Please check the screenshot below:
You may also like to take a look at the following time widgets as well:
Large Time Picker: http://widgets.jotform.com/widget/large_time_picker
ios7 Time : http://widgets.jotform.com/widget/ios7_time
Android Time: http://widgets.jotform.com/widget/android_time
I believe "ios7 Time" widget seems to suit your requirement better as it simply lists down the times with AM/PM.
Though it is not possible to restrict the time between 8 am and 4 pm but I believe you can just add a condition in your form to check the input and show an error message.
Hope this helps.
Do get back to us if you have any questions.
Thank you!
-
tlobaughReplied on September 5, 2014 at 4:45 PM
We have added a time field but I guess I'm not sure how to add a condition to the form as stated here. I can't see any condition type that would shoot back an error message. Can you give me a bit more guidance?
Thanks!
-
Elton Support Team LeadReplied on September 5, 2014 at 6:28 PM
@tlobaugh
The following condition should work for you. I have tested this on a close time and it triggers the condition.
Example:
On this example, I simply set the submit button to show between the defined time. In other words, users will not be able to submit the form once it does not met the condition since the submit button will remain hidden when not between 8:00AM to 4:00PM. Take note that time in the condition is in 24HR Format. So you must use 8:00 to 16:00 (4:00PM). See the illustration guide above.
You can also add more actions like if you want not just by having the submit button hidden.
Go ahead and give it a try. If you need further assistance, let us know here.
Regards!
-
cookiezombieReplied on September 9, 2016 at 3:15 AM
-
Ashwin JotForm SupportReplied on September 9, 2016 at 4:37 AM
Hello cookiezombie,
This is a very old thread. I have moved your question to a new thread and you will be answered here: https://www.jotform.com/answers/927996
Thank you!