How to display dynamic dates in the text field?

  • haggis
    Asked on November 27, 2018 at 7:13 PM

    We have a text box on the bottom of our form that shows deadlines for annual submission, ie December 31, 2017 or 2018.  Is there a way to make the year dynamic so that it auto updates without having to manually change all forms??

    Thanks!!

    Jotform Thread 1655352 Screenshot
  • Kiran Support Team Lead
    Replied on November 28, 2018 at 12:41 AM

    i understand that you want to display the year in the dates dynamically in the Text field on your form without changing them manually every year. You may achieve this by adding two date fields to the form. One is for the current date to capture current year and the other date is to calculate the next year date by adding 365 by a condition.

    154338345728112018 111108 1 Screenshot 10

    Now, you may add the year to the text field by separating from the date field using {currentYear:year} format.

    154338365728112018 111126 2 Screenshot 21 

    Please see the demo form below:

    https://form.jotform.com/83310194501951

    Hope this information helps! 

  • Jack
    Replied on November 28, 2018 at 9:09 AM

    Awesome!  Thanks so much for the help!!