Form: disable form depending on date

  • sebastienmaurer
    Asked on April 4, 2018 at 10:31 AM

    I want to add a date condition on a form. I want to know if it is possible to display a form on saturday, sunday, monday and tuesday, and to have a message instead for the other days "No order until saturday, thanks"

    Please tell me that it is possible !!! Thanks.
    Kind regards. Sébastien

  • Richie JotForm Support
    Replied on April 4, 2018 at 11:58 AM

    You need to add a date picker and set the default date to current.

    Form: disable form depending on date Image 1 Screenshot 50

    Then we add a SHOW/HIDE Field condition to hide our submit button and other fields when the dates are not available.

    We use the STATE= Is Equal to Day to set the dates that are not available.

    Form: disable form depending on date Image 2 Screenshot 61

    Make sure to make the rules if matched to "ANY" and we hide the fields and show an error prompt.

    Form: disable form depending on date Image 3 Screenshot 72

    Here is my screen cast:

    Form: disable form depending on date Image 4 Screenshot 83

    The link to my test form:https://form.jotform.com/80934688964981

    Feel free to clone my form and check the conditions.

    -How-to-Clone-an-Existing-Form-from-a-URL


    Please let us know if we can be of further assistance.

  • sebastienmaurer
    Replied on April 5, 2018 at 10:39 AM

    Hy Richie, thank you so much this works fine !
    Kind regards