How to show 2 weeks from default date in the date picker field

  • jodyburgess
    Asked on June 26, 2024 at 8:13 AM

    I see that you can select the current date for default. What if I wanted the default date to be two weeks from today. Is that possible? In my form, the question is "Proposal Due Date" so, in most cases, that is about two weeks out. Thank you.

  • Richie JotForm Support
    Replied on June 26, 2024 at 8:41 AM

    Hi Jody,

    Thanks for reaching out to Jotform Support. It is possible to set the date picker field to show the default date plus two weeks by getting the value of your default date picker and using conditions. Let me show you how to set it up:

    A. Add another date picker field to get the 2 weeks date.
    How to show 2 weeks from default date in the date picker field Image 1 Screenshot 60
    B. Use condition to add the default date picker with 2 weeks and show it in the new Date picker field.

    1. In Form Builder, in the orange navigation bar at the top of the screen, click on Settings.
    2. Click on Conditions on the left side of the screen.
    3. Then click on Add Condition.
      How to show 2 weeks from default date in the date picker field Image 2 Screenshot 71
    4. Click UPDATE/CALCULATE FIELD.
      How to show 2 weeks from default date in the date picker field Image 3 Screenshot 82
    5. Then add the condition as follows:
      IF : Default Current Date Picker field
      STATE : Is Filled
      DO : Calculate Field Value
      Add Field : Current Date Picker Field
      Then + 12(for two weeks)
      SUMMARY : Date picker field to show 2 weeks

      How to show 2 weeks from default date in the date picker field Image 4 Screenshot 93
    6. Click Save.

    Check out this screen cast of my sample output:

    How to show 2 weeks from default date in the date picker field Image 5 Screenshot 104

    Give it a try and let us know if this works for you.

 
Your Answer