What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Date FIelds

    Asked by HelpfulHolidays 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 ,

     

  • Profile Image
    JotForm Support

    Answered by aubreybourke on May 19, 2017 at 11:31 AM

    For Question 1 here is the solution:

    1. Drag and drop two date picker fields

    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)

  • Profile Image
    JotForm Support

    Answered by aubreybourke 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:

  • Profile Image
    JotForm Support

    Answered by aubreybourke 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

  • Profile Image

    Answered by HelpfulHolidays on May 22, 2017 at 06:01 AM

    Thats works perfectly, 

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

    thanks.

  • Profile Image

    Answered by HelpfulHolidays on May 22, 2017 at 06:07 AM

    This seems to work, 

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

     

    thanks.

  • Profile Image
    JotForm Support

    Answered by aubreybourke on May 22, 2017 at 06:20 AM

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