Validating date widget

  • fazzapp
    Asked on November 26, 2021 at 7:16 AM

    Hello everyone, I'm trying to prevent users from submitting a form by validating data on the date field, but the widget doesn't show me any option to configure those limits, even with the switch turned on, as shown in the image below.


    1637928923 61a0cfdbe71bc Screenshot at N Screenshot 10\


    So how can I set it, please ?

    Thanks
    Carlos.

  • Patrick_R
    Replied on November 26, 2021 at 7:21 AM

    Hello Carlos,

    Limits for the Datepicker field can be adjusted from the LIMITS tab (as shown in the below screenshot).

    1637929242 61a0d11a3ec21  Screenshot 10

    Please give it a try; let us know if you come across any questions.

    Thank you!

  • fazzapp
    Replied on November 26, 2021 at 7:37 AM

    Thank you Patrick, but that doesn't help me.

    Whats I want is prevent users to set data for the day they are filling out the form. Only days ahead from today would be allowed.

    I've tried it from conditional logic section without success.

    Could you please help me on it ?

  • Christopher JotForm Support
    Replied on November 26, 2021 at 7:49 AM

    Hi,

    Please apply today+1 at Start Date of Start & End Date in Date Picker Properties > LIMITS as shown in the image below.
    1637930901 61a0d795c645b  Screenshot 10
    If you have any questions, please let us know.

  • fazzapp
    Replied on November 26, 2021 at 4:11 PM

    Hi,

    I've done what you told me without result.
    Please check this video: https://drive.google.com/file/d/1dFODdtnKFA5Zrpl1onRVdgvo4F21BfkE/view?usp=sharing

    Do you think the reason is due to language ? I wrote it in English and the system translated automatically.

  • Michal_S Jotform Support
    Replied on November 26, 2021 at 4:14 PM

    Hello!

    Yes, "today" has to be in English.

    It's quite likely the system automatically translates it due to your language settings.

    To avoid having you change the language for such a small adjustment, I have now set the starting date to today+1 - please check if the current functionality suits your needs.

    Thank you!

  • fazzapp
    Replied on November 26, 2021 at 4:48 PM

    Great !
    All set.

    Thank you.