How can I calculate the time in the attached form without having to mess up the existing calculations?

  • princess5510
    Asked on February 21, 2021 at 12:38 PM

    Hi.

    This is the form im currently working on:

    https://www.jotform.com/build/210463600497453#preview

    I love how it calculated time perfectly. However i want to eliminate the rows of 'Leave' AND 'Lunch' break in the total hours calculation input table.

    Is it possible to acheive that and not mess up the coding in the form?

    Please help.


    Thankyou

  • Mike_G JotForm Support
    Replied on February 21, 2021 at 10:28 PM

    I have updated a cloned version of the form you linked based on your requirements.

    Here's the link to the cloned version: https://form.jotform.com/210517035598962

    Please give it a try and let us know if you need any further assistance.

  • princess5510
    Replied on February 22, 2021 at 1:48 AM

    This works great. I used all the same conditions on my form but somehow, my 'Clock In' text box of the results table is unable to extract information from Day 1 Field.

    1613976454 603353868006c 1 Screenshot 10

    I select the time as follows and then;

    1613976478 6033539e791df 2 Screenshot 21

    This is what is happening.

    1613976497 603353b150edc 3 Screenshot 32

    Here is the snap of all of my conditions.

    Where could i be wrong?

  • Girish JotForm Support
    Replied on February 22, 2021 at 4:25 AM

    I checked your form https://form.jotform.com/210463600497453 and the results table is populating correctly:

    1613985897 6033786941df8 screencas220220 Screenshot 10

    Please check and let us know if you are still facing any issues.

  • princess5510
    Replied on February 22, 2021 at 10:10 AM

    Thanks alot Gerad but the form im working on is as follows:

    https://www.jotform.com/build/210524397919059#preview

    The calculation doesnt seem to be working for it.

    Do you know what can be the issue?

  • Welvin Support Team Lead
    Replied on February 22, 2021 at 11:16 AM

    I've fixed that. You should first set it to calculate the values, not copy. That way, it will calculate the values as numbers, not texts.

    1614010551 6033d8b7ea8d5  Screenshot 10

    Thanks

  • Welvin Support Team Lead
    Replied on February 22, 2021 at 11:18 AM

    I'm sorry, but if you wish to get the total on the Results Table - Week 1 > Total Hours Less Lunch column, you would need to set up another conditional logic. Let us know if you can't get that to work. We'll be happy to check your settings, and help you correct it.

    Thanks

  • princess5510
    Replied on February 22, 2021 at 1:10 PM

    https://www.jotform.com/build/210524397919059/settings/conditions

    this is form im working on and i cant get it to calculate the total hours in the less lunch column or the sunday hours?


    ive cloned all the same conditions of this form:

    https://www.jotform.com/build/210521126737448/settings/conditions


    pls tell me where im wrong

  • Welvin Support Team Lead
    Replied on February 22, 2021 at 3:12 PM

    It's related to conditional logic. You were copying the value instead of calculating it as a number. When set it to copy, the value is pass as text, not a number. I have fixed that.

    When you create the condition, you should do it like this first:

    1614024717 6034100d90eaa  Screenshot 10

    You could see the field is Black/White. That means you are calculating numeric values. If it's Brown/White, that means it is Text.

    1614024664 60340fd8b451e  Screenshot 21