Condition on date field is not working

  • Profile Image
    Mani Sohal
    Asked on June 01, 2017 at 04:35 PM

    Hi,

     

    I have a jot form on platinumsuites.ca and it was working fine before the update. It has a Arriving date and Departure Date filed and we don't want clients to select less than three days starting from the date they selected for arrival Date. Departure Date= Arrival Date +3. It used to work but now the conditions are not working and anybody can select lesser than three days. 

     

    Website URL : http://platinumsuites.ca/

  • Profile Image
    david
    Answered on June 01, 2017 at 06:49 PM

    I checked your form and the condition appears to be working:

    No matter what I set it to, it always was arrival date+3 for departure date.  Is that not the case on your end?  Let us know and we will be happy to have another look.

  • Profile Image
    manisohal
    Answered on June 07, 2017 at 07:19 AM

    Hi

     

    But I can still select future arriving date and past departure date. I should not be able to select Departure date<arrival date+3. But i can do so now.

  • Profile Image
    Nik_C
    Answered on June 07, 2017 at 09:43 AM

    I checked your form and I see what you meant, when the arriving date is selected and departure date is added you can still select dates in the "past" in departure date.

    Please allow me some time to check this issue further and I will get back to you once I have more information.

    Thank you!

  • Profile Image
    Nik_C
    Answered on June 07, 2017 at 02:53 PM

    Thank you for your patience.

    I'm not sure if such condition worked before since when you're selecting second date field, that action is not triggering condition so you're able to change the field.

    Anyhow, a workaround I found is to insert one more hidden date field:

    And then I created two more conditions, one that will copy the same + 3 days to temp field. And another one that will check if a user tried to select a day that is in the past of +3 from chosen (condition1):

    And that will work, please check my test form: https://form.jotformpro.com/71575275087970

    If a user tries to select a day in past (less than +3 days) it will revert to chosen day+3. 

    Please check and let us know if that could work for you.

    Thank you!