Caclulating Time - Add 10 minutes to the starting time

  • lockdowncolumbus
    Asked 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

  • Arslan JotForm Support
    Replied 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.

    Caclulating Time   Add 10 minutes to the starting time Image 1 Screenshot 60

    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.

    Caclulating Time   Add 10 minutes to the starting time Image 2 Screenshot 71

    6. In the menu that opens on the left side of the page, click on Conditions, and select Update/Calculate Field.

    Caclulating Time   Add 10 minutes to the starting time Image 3 Screenshot 82

    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:

    Caclulating Time   Add 10 minutes to the starting time Image 4 Screenshot 93

    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:

    Caclulating Time   Add 10 minutes to the starting time Image 5 Screenshot 104

    Give it a try and let us know if you need any help.

Your Answer