What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Restricting form options based on access timeAsked by melodicsounds on March 08, 2016 at 12:34 PM
Hi, I have a form where I want to add a calendar to it. I need a restriction that depending on the time the person is filling the form, the calendar needs to limit 12hrs to choose. Example... if you are filling my form at 8pm and you choose in the calendar 5 am of next day this can't be possible. I need that if he fill the form at 8pm the available option of the Hour can only display 8pm of the next day... so its 24hrs that he can't choose? Did you undestood? This is like an airline flight reservation restriction... that if you want to buy a ticket at 8pm you can't choose to flight next day at 4 am because its too early...
This is because we do online homeworks... so people get in our form and fill in their order details and choose a delivery time... but our office hours are 8am-6pm so if someone fill in the form at night, say 9pm and wants his homework for next day but at 7 am... there is no possibility we can do this because we will be sleeping ... thats why we need a restriction that give us 24hrs...
Another thing about the calendar is that right now our "Delivery Time" is a dropdown menu... which has the option to add Value numbers to add to our final "Total" variable. But in a calendar how can I add Values? Say... if he chooses 24hrs = 10 if he chooses 2 days in the calendar = 20 if he chooses 3-5 days in the calendar = 30... is this possible?
As far as I know, we do not have a hours restriction option available for the DateTime field.
You may consider using conditional logic based on a current time (when user access the form).
For example, this is possible to add a Time field with enabled Current Time option.
* you can hide that Time field on the form.
And text warning message.
Then, setup the following condition.
But in a calendar how can I add Values?
Unfortunately, there is no way to specify calculation values within the DateTime field.
If you need any further assistance, please let us know.