How can one make the form disabled after an appointment time?

  • Profile Image
    Asked on January 15, 2021 at 03:16 PM


    I have a form for intake. There's an interesting issue where we send an email out to a client when they schedule an appointment. This creates a unique ID. The appointment comes and goes, but they'll eventually need a new one. The user doesn't want to re-fill out the form, so they end up using the edit link in the email that was sent to them. This creates a "new" appointment, but does not generate a new Unique ID.

    I was attempting various ways - with no success - that when they entered the form via the edit link that they would get a message telling them to create a new appointment and the submit button would be hidden.

    Is there a way in JotForms to disable a form for a user on or past their appointment date so they would be forced to submit a new appointment?

  • Profile Image
    Answered on January 15, 2021 at 09:08 PM

    You can add the Get Form Page URL widget on the form:

    Next, configure a condition that if Get Form Page URL contains edit then hide all the fields and display a text message to create a new appointment.

    Let us know if you are unable to configure this condition, we will configure it for you.


  • Profile Image
    Answered on January 18, 2021 at 03:13 PM

    A client should still be able to edit their appointment up until the time. If we are checking if the URL contains just edit, I feel this would hinder their ability to be able to edit the form. We only want to stop them after the appointment time. I tried the DateTime Single Widget, but it was always submitting blank regardless if I selected to "run in background". It appears for that particular widget, you need to enter a date.

  • Profile Image
    Answered on January 18, 2021 at 06:41 PM


    I couldn't find a workaround other than using a fixed date on Date Picker when you want to force the user to submit a new appointment.


    Add a Date Picker field to your form then enable the Current date.


    Then on your condition, use the date field and get form page URL widget in the IF rule like this. Just define the fixed date when you want to hide the submit button a show a message that would inform users to submit a new entry.