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

    How to change the default date on my form?

    Asked by mijot on September 28, 2016 at 11:36 AM

    Is it possible to default the DateTime field to yesterday's date (or tomorrow's date) instead of current date?

    To make the question a bit more generic; is it possible to have a variable date (last week, next month, etc.) without writing for example a javascript function?

    DateTime field next Week OR
  • Profile Image
    JotForm Support

    Answered by Kiran on September 28, 2016 at 02:23 PM

    You may set any other date then the current date for the Date Time field from the field properties. Please see the screenshot below:

    If you want to display a different date by calculating the number of days, you may set up a condition to calculate the date by adding another date field. Please see the screenshot below that can help you with setting up the condition.

    Here Date 1 can default to current date and you may add/subtract the number of days required in the condition to display the result in Date 2. You may also hide the Date 1 field so that the user can view only the calculated date.

    Hope this information helps! 

  • Profile Image
    JotForm Support

    Answered by Kiran on September 28, 2016 at 02:26 PM

    Here is the demo form with the condition above:

    https://form.jotform.com/62715028956967

    Please feel free to clone the form to your account to test it further.

  • Profile Image

    Answered by mijot on September 28, 2016 at 04:05 PM

    That is a great suggestion and it did solve my problem.

    Thank you