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.
How can I set up the form so it wont allow submission unless the start date is 6 hours in advanced?Asked by LCaraccilo on September 16, 2015 at 12:31 PM
The problem we are running into is that people are submitting requests and we need more than 6 hours notice. Is there a way we can put a restriction or condition on the Start Time where it wont allow someone to select the time that is less than 6 hours from that moment? Thank you!
I think there's a workaround for this. Let me check and get back to you with updates.
I am truly sorry for the delay. Unfortunately, I have tried any possible solution I could but none seems working base on your requirement. I will try to check with my colleagues if they have any workaround. I could not promise you anything but we will surely update you if we found any. If you also know JS programming, you should be able to achieve this using your form source code http://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form.
Finally, I found a workaround using conditions but it requires 24 hour time format. Please clone this form so you can figure out the setup. http://form.jotformpro.com/form/52578199817978?
Here's how to clone a form: https://www.jotform.com/help/28-Cloning-a-Form-from-a-Web-Page
If you'd like to try this workaround, here's a step by step instructions on how I set this up.
1. First, I added one time field with current time enabled.
2. I added 3 form calculation widgets, each with formula that retrieves the values from its associated time field. Here's screenshot on which fields they are connected to. So when you open the calculation wizard on each of the widgets, you will see the formula. I have also hide these fields (right click > hide field) so they will not appear on the live form.
3. I then added a show/hide condition that hides the submit button and show an error message when the start time selected by the user is not 6 hrs in advance. You'll find it when you check the existing condition on the cloned form.
I understand that this is a little complex but once you understand the condition, it would be pretty easy to implement them.
If you need clarifications with any of the steps above, please let us know. We'd be happy to help. Thanks!
this is to formally ask a feature request for this capability:
to disable time selections based on specified limits (e.g., current time + 6 hours).
i'm not aware if the date field has this feature. if not, request to have this also.
this would beneficial for a number of applications.
i'm just wondering how the conditions will handle a selected time that's greater than the current time when it goes beyond 23:59?
say it's now 8:30 pm, so the allowed time is 2:30 am onwards. will the condition suffice without factoring in the date (crossover from 11:59 pm to 12:00 am [midnight])?
in your form, what time should i enter to see the submit button and have the reminder message hidden?
appreciate the help.
If this is what you mean,
I have cloned Elton's form and added this condition,
I hope this helps. If you have any further question, please feel free to ask. Thank you.
By the way, I have moved your request to a new thread. Please click this link to go to that thread.
let's assume TritonBlackout operates 24/7 and that i'm 1 of their subscribers. i just came from work and it's now 7:00 pm (19:00 hours). i go to their site and the form detected my current time is 7:00 pm (19:00 hours). then i selected 8:00 pm (20:00 hours) in the Blackout Start Time - just 1 hour in advance (let's say i didn't see the hover tip that i should schedule at least 6 hours in advance).
based on the new condition you included in Elton's form, how will my time choice of 8:00 pm (just 1 hour) be handled by the conditional logic? will it capture my error or will it let me submit the request?
may i also request a link of your modified form so i could try it out?
I have cloned EltonCris form and added condition from Mike and it seems that and submit button is visible if default date is set to 19:00 hours and start date to 20:00 hours.
I have made new demo form with two DateTime fields and I turned ON Time option. Then I set calculation to calculate difference between dates.
I have also set condition to hide submit button if calculation is less that 0.25.
Here is my demo form: http://form.jotformpro.com/form/52601866175963?
Feel free to clone it.
Hope this will help. Let us know if you need further assistance.
efficient. and nice touch on getting the 6 hour time difference (.25) by including the date field (with time) in the calculation, BJoanna !
error proofing can now be implemented.
Brilliantly simple solution to what I thought would have required lots of conditions!