Conditions: Setting up time-driven form

  • tssilva
    Asked on May 16, 2017 at 3:42 PM

    I'm trying to set conditions for my form, I want to set an opening time for the form, but when I set the conditions never work!

    Please give me a solution to this!

  • David JotForm Support Manager
    Replied on May 16, 2017 at 5:15 PM

    What is the form you are working on? Unfortunately, we do not have a feature to enable or show the submit button within a time range. You can only manually disable or enable the form through it's properties: https://www.jotform.com/help/180-How-to-enable-disable-a-form 

  • tssilva
    Replied on May 16, 2017 at 5:32 PM

     

    What I need is that when you arrive in a respective schedule, for the closing of the cafeteria the options are hidden. I made the second way: I entered the option time in a separate page, type, Page 2, and from there I created a coding, that from x hours the functions of the form will not be shown, and after x hours Options will be checked. But he did not know how to make the proper configuration of the condition!

  • tssilva
    Replied on May 16, 2017 at 5:33 PM
    This option that you showed me can only disable or activate, you have to choose one of the two .. What do I need to turn on and off at a certain time!

     

     
  • Mike_G JotForm Support
    Replied on May 16, 2017 at 6:22 PM

    To my understanding, you would not want to allow submissions on your form if the remaining hours before your closing time is less than a specific number hours, is that correct?

    We would like to apologize, however, we may need to ask more information or a clearer description of what you would like to happen. If you can provide us the form you're working and the fields involved we would greatly appreciate it.

    We will wait for your response.

    Thank you.

  • tssilva
    Replied on May 17, 2017 at 8:54 AM

     

    I would like the full form to only appear completely when it arrives for example at 6:00 p.m. and ocute when it arrives at 11:00 p.m.! This would be to determine the opening time of a snack bar, so when a person trying to make a purchase outside of that time, she would not see the fill-in form, but a message that the set-up only opens at 6:00 p.m.

  • Chriistian Jotform Support
    Replied on May 17, 2017 at 9:42 AM

    Hi,

    As far as I understand, you want the form to only be available to your customers between 6:00pm and 11:00pm.

    Here's is a workaround I came up with.

    1. Add a Time field to your form.

    Conditions: Setting up time driven form Image 1 Screenshot 70

    2. Populate it with the current time (in 24-hour format)

    Conditions: Setting up time driven form Image 2 Screenshot 81

     

    3. Set it to hidden.

    Conditions: Setting up time driven form Image 3 Screenshot 92

    4. Add fields that will be shown or hidden based on current time.

    Conditions: Setting up time driven form Image 4 Screenshot 103

    5. Based on this Time field, create a condition that will hide your fields when outside 6:00pm and 11:00pm. This will involve knowledge in setting up conditions.

    Conditions: Setting up time driven form Image 5 Screenshot 114

     

    Here's my demo form which you can clone - https://form.jotformpro.com/71364236627963. You can show the Time field to test.

    Conditions: Setting up time driven form Image 6 Screenshot 125

    Let us know if you need further assistance.

  • aubreybourke
    Replied on May 17, 2017 at 10:42 AM

    Just wondering if there is a problem with the times differing between time zones?

    For example if the shop in in the USA and the customer is in Europe.

    The forms current time is client side, and the shops open hours is server side right?

     

     

  • Ashwin JotForm Support
    Replied on May 17, 2017 at 12:07 PM

    Hello aubreybourke,

    Yes that is correct. 

    Please note that the default date / time in the date / time field will always display the current time of user (client side time). It is not possible to show server time or time based on your timezone.

    Thank you!

     

  • benedictcamara
    Replied on June 27, 2017 at 12:51 PM

    This system is flawed and easy to cheat, users can simply change their computer time to defeat this and enable your form before the time you want

  • David JotForm Support Manager
    Replied on June 27, 2017 at 1:58 PM

    @benedictcamara, your question is being addressed on the following thread: https://www.jotform.com/answers/1185137