Disable 1 hour in advance

  • Aji_Joey
    Asked on April 17, 2019 at 10:48 PM

    So I know this may be hard but I am trying to disable a date and time picker I would like to disable up to an hour in advance. So, for example, I if it is Tuesday at 7 pm I would like them only to be able to schedule after Tuesday at 8 PM.


    Is there any way to do this? Maybe calculations condition?

  • Nik_C
    Replied on April 18, 2019 at 2:46 AM

    I'm afraid that you cannot do that with time field, there is no option to set such limitation on time field.

    And I'm not sure there is a workaround actually. I will forward this to our backend team for a possible implementation of such an option.

    We will inform you if it becomes available.

    Thank you!

  • Aji_Joey
    Replied on April 18, 2019 at 8:53 AM

    Please keep me updated! Thanks

  • BJoanna
    Replied on April 18, 2019 at 11:42 AM

    This can be achieved with the Form Calculation widget and conditional logic. 

    You can add a hidden Date Picker field with enabled Time option that will show the current date and time and a Date Picket field with enabled Time option that the user will fill. 

    You can then perform a calculation and use conditional logic to hide the Page Break or Submit button if the difference is less than 1 hour. You can also show a custom warning message.

    1555601835calcualtion1 Screenshot 101555601858condition Screenshot 21

    How to Perform Form Calculation Using a Widget

    How to Show or Hide Fields Base on User's Answer

    Here is a demo form - https://form.jotform.com/91074435846967

    The first date field can be hidden.

    Feel free to test it and clone it

  • Aji_Joey
    Replied on April 18, 2019 at 1:42 PM

    This is great thank you @bjoanna