Date Picker: Block the next couple of days from the current date.

  • AGPRENOTAZIONI
    Domanda del 17 maggio 2024 alle ore 12:03

    Avremmo la necessità che il cliente non possa selezionare per le prossime 48 ore e quindi con un avviso di programmazione minima di 48 ore.

    Esempio se oggi è Lunedi la prima data utile selezionabile deve essere Mercoledi.

    Si può fare con il selettore data (sappiamo bene che questo si puo fare con "Appuntamento" ma non vogliamo che compaiano le ore e quindi abbiamo necessità che si possa fare sul selettore data)?

    Grazie per il vostro aiuto

  • Eliza Jotform Support
    Risposta del 17 maggio 2024 alle ore 12:25

    Hi AGPRENOTAZIONI,

    Thanks for reaching out to Jotform Support. Unfortunately, our Italian Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Italian, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, coming back to your question, are you working on this form? Are you looking to apply this on the Date Picker element? If so, yes, it's possible to block the next 2 days from the current date on this element. Let me show you how to do that:

    1. In Form Builder, click on the Date Picker field, and click on the Gear icon to open Properties.
    2. Go to the Options tab, and select Current from the Default Date dropdown.
    3. Go to the Limits tab, and scroll down a bit to see the Disable Date Ranges field.
    4. Enter today>today+2 into the field.

    Date Picker: Block the next couple of days from the current date Screenshot 30

    Check out the screencast below to see the results:

    Date Picker: Block the next couple of days from the current date Screenshot 41

    If that’s not exactly what you’re looking for, can you explain a bit more, so I can help you better?

    Once we hear back from you, we'll be able to help you with this.