-
Shire of GinginAsked on October 23, 2024 at 3:44 AM
Hi guys, is there a way I can use this function to calculate a date change?
What I'm trying to achieve is for my customers to submit a start date, then for that date to automatically pre-fill an end date field 7 days later. The reason I need the date field is the form automatically goes to a table with a calendar view that displays the events start and end date, however I'm moving to having a fixed end date of 7 days later.
My other option is to limit an end date input field to 7 days or less later than the start date, if that is possible but I couldn't find a way to do it.
-
Waqas_AReplied on October 23, 2024 at 5:09 AM
Hi Shire of Gingi,
Thanks for reaching out to Jotform Support. I understand what you’d like to do, but I’ll need a bit of time to work out a solution. I’ll get back to you shortly.
Thanks for your patience, we appreciate it.
-
Waqas_AReplied on October 23, 2024 at 8:57 AM
Hi Shire of Gingi,
Thanks for reaching out to Jotform Support. Unfortunately, it is not possible to add a date and condition to display a 7-day later date. You can use conditional logic to display 7 days later date. Check out my screencast below:
If you are looking for the same results, you can reach out again so I can share a step-by-step guide on how to do that.
Once we hear back from you, we'll be able to help you with this.
-
Shire_GinginReplied on October 23, 2024 at 8:27 PM
Hi Waqas, thanks for that. I am interested in seeing how to do that.
-
Waqas_AReplied on October 23, 2024 at 9:35 PM
Hi Shire of Gingi,
You need to add two date picker fields and add update calculated condition on it. Let me show you how:
- Add two date picker fields on your form.
- Now, let's set up the conditions:
a. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
b. Click on Conditions on the left of the page.
c. Now, click on Add a New Condition and then click on Update/Calculated Field.
e. Set the conditions like you see below:
That's it. Let us know if there’s anything else we can help you with.
- Add two date picker fields on your form.
-
Shire_GinginReplied on October 23, 2024 at 10:27 PM
Looks great, thanks for your help