Date FIelds

  • HelpfulHolidays
    Asked on May 19, 2017 at 10:58 AM

    Hi, 

    I have a couple of queries regarding the date fields.

    In a form I have two date fields, one one called 'from' and one called 'to'.

     

    Question 1:

    I would like to set the 'from' date to be 1st Jan 2018 and then the date field calendar opens the date starts on the 1st of jan, how do i do this ?

     

    Question 2:

    When the 'from' date is changed, I need the 'to' date field to start off on the next date of the 'from' date field. How do i do this ?

     

     

    Thank you for your help ,

     

  • aubreybourke
    Replied on May 19, 2017 at 11:31 AM

    For Question 1 here is the solution:

    1. Drag and drop two date picker fields

    Date FIelds Image 1 Screenshot 30

    2. For the first field (the from field) click the gear icon to get the properties

    3. Click on the options tab

    4. Select the date format dd-mm-yyyy

    5. Select default date custom and pick your start date (1st Jan 2018)

    Date FIelds Image 2 Screenshot 41

  • aubreybourke
    Replied on May 19, 2017 at 11:40 AM

    For Question 2:

    1. For the second field (the to field) click the gear icon to get the properties

    2. Click on the options tab

    3. Select the date format dd-mm-yyyy

    4. Click settings at the top center

    5. Click conditions

    6. Create a new conditon (the plus sign)

    7. Select update/calculate a field

    8. Copy the condition in this image:

    Date FIelds Image 1 Screenshot 20

  • aubreybourke
    Replied on May 19, 2017 at 11:43 AM

    So just to clarify, you must choose if the from field is filled, then calculate a fields value. Simply type plus one to add a day and finish by clicking the green save button.

     

    Here is the URL for the form:

    https://form.jotformeu.com/71374091682358

  • HelpfulHolidays
    Replied on May 22, 2017 at 6:01 AM

    Thats works perfectly, 

    Can we add a condition so the 'to' date can never be before the 'from' date ?

    thanks.

  • HelpfulHolidays
    Replied on May 22, 2017 at 6:07 AM

    This seems to work, 

    Is it the best way to do it, or is another way better ?

    Date FIelds Image 1 Screenshot 20

     

    thanks.

  • aubreybourke
    Replied on May 22, 2017 at 6:20 AM

    Yes that is correct. You will have two conditions now.