-
lockdowncolumbusAsked on September 5, 2024 at 1:26 PM
I have a Time field on a form I want to use to calculate an itinerary, but it doesn't seem to be working. The initial input field is "What time do you want the game to start" Then on the next page i have time fields I am trying to out put the calculation to. I started with the first 2 below but they are not working.
Start Time: Copy the original field Values
Round 1: What time do you want the game to start + 10 Minutes
Round 2: What time do you want the game to start + 20 Minutes
Round 2: What time do you want the game to start + 20 Minutes
Round 4 Part 1: What time do you want the game to start + 10 Minutes
Round 4 Part 2: What time do you want the game to start + 20 Minutes
Page URL: https://form.jotform.com/242485346687066 -
Arslan JotForm SupportReplied on September 5, 2024 at 2:25 PM
Hi lockdowncolumbus,
Thanks for reaching out to Jotform Support. When I cloned and tested your form, the same thing happened for me. After investigating it a bit, I found that Time element can not be used to achieve this. As a workaround, we can use Date Picker element and Update/Calculate field condition to perform calculations and add time. Let me show you how:
1. In Form Builder, click on the Add Form Element menu on the left side of the page, and add a Date Picker element to the form.
2. Click on Date Picker element, and then click on the Gear icon that appears on the side.
3. In the menu that opens on the right side of the page, click on Time tab, and toggle on Time field.
4. Add another Date Picker element to the form, and repeat the steps.
5. Then, in the orange navigation bar at the top of the screen, click on Settings.
6. In the menu that opens on the left side of the page, click on Conditions, and select Update/Calculate Field.
7. To add 10 minutes, add 0.007 to the starting time Date Picker element, and copy the results in the second Date Picker element as shown below:
8. Repeat the steps for all other elements. To add 20 minutes, you need to add 0.014 to the element.
Here is how it will work:
Give it a try and let us know if you need any help.