"From" & "To" Date Validation

  • HolidaysWithHeart
    Asked on November 3, 2018 at 5:56 AM

    Hi,

    On the form there is an Arrival Date & Departure Date - the Departure Date needs to be greater than the Arrival Date but I can't see a way of validating that within the form. Can you help please?

  • gokalpfirat
    Replied on November 3, 2018 at 9:21 AM

    Hello,

    You can validate the date by conditions. First add Text element under your date fields which will be shown if the date of departure is earlier than arrival date. Enter a warning text and go to it's advanced settings Hide it.

    1541251150Screen Shot 2018 11 03 at 16 Screenshot 10

    After you done that, add the condition below to check dates and show warning and hide submit button until user corrects the date.

    1541251243Screen Shot 2018 11 03 at 16 Screenshot 21

    This is the one that I do it, you can check the result https://form.jotform.com/83063325123952

    Let us know if that helps!

    For further assistance, don't hesitate to contact us. Best regards.

  • HolidaysWithHeart
    Replied on November 3, 2018 at 3:16 PM

    That's great, thanks for your help