How to prevent users from selecting a specific date on the form?

  • boudah
    Asked on February 16, 2025 at 4:01 PM

    Is there a way that I block dates so that clients don't book it?

  • Igor_Lu
    Replied on February 16, 2025 at 4:14 PM

    Hello Boudah

    What I would recommend in this case is to use "Date Reservation" widget

    In the Form Builder, click the Add Form Element button. Go to the Widgets tab, then search for the widget you’d like to use. Click the widget to add. You can also drag and drop it anywhere to your form.

    How to prevent users from selecting a specific date on the form? Image 1 Screenshot 20

    https://eu.jotform.com/widgets/date-reservation

    https://www.jotform.com/help/252-how-to-add-a-widget-to-your-form/

    This widget should resolve the problem when it comes to booked dates that you have. Hopefully this fixes the problem.

    Take care.

  • Gian_D JotForm Support
    Replied on February 16, 2025 at 4:49 PM

    Hi Ahmed,

    If understand correctly, you want to prevent users from booking a specific date. Is that right? If so, you can replace your Date Picker widget with an Appointment widget and then add a vacation to it. Let me show you how to do it:

    1. In Form Builder, click on Add Element on the upper left side of the page.

    How to prevent users from selecting a specific date on the form? Image 1 Screenshot 40

    2. Drag and drop an Appointment widget from the left side of the page to your form.

    How to prevent users from selecting a specific date on the form? Image 2 Screenshot 51

    3. Click on the Gear icon of your Appointment widget.
    4. Click on the Limits tab on the upper right side of the page.
    5. In Vacation and Holidays on the right side of the page, enter the date that you want to block.

    How to prevent users from selecting a specific date on the form? Image 3 Screenshot 62

Your Answer