Form Calculation Widget and Fields IDs

  • TeamLadera
    Asked on August 17, 2018 at 7:17 PM

    I would like to tabulate data from Field IDs in a table by using the Form Calculation Widget, but I don't know if that's possible.

    I need to multiply the cost per item against the total number of t-shirts and have the result appear in the subtotal field.

    Jotform Thread 1556488 Screenshot
  • Mike_G JotForm Support
    Replied on August 17, 2018 at 11:21 PM

    Yes, that would be possible. Please give me some time and I'll create a step-by-step instruction on how you can do it with your form. I'll get back to you as soon as possible.



  • Mike_G JotForm Support
    Replied on August 17, 2018 at 11:59 PM

    I'm sorry for any delays.

    The steps below should resolve your concern.

    First, you need to add each sub-field (in the table) that represents the items with the same price in the Form Calculation widget.


    1534562542t23 19 Screenshot 10

    Next, group (using parenthesis) and add the sub-fields (with the same price).

    1534562905t23 27 Screenshot 21

    After that, multiple the group by the price and group everything again in parenthesis. In my example below, the price of an item in the first column is $2.00.

    1534563167t23 32 Screenshot 32

    To add the next group of sub-fields that has a different price from the first group you added, you just need to follow the same steps above but add everything to the first group.

    1534563948t23 45 08 Screenshot 43

    In my example, the price of an item in the second column is $3.00.

    1534563978t23 44 23 Screenshot 54

    I hope this helps. If you have other questions or concerns, please do not hesitate to let us know.

  • TeamLadera
    Replied on August 18, 2018 at 12:43 AM
    Thank you so much. I will give it a try when I get to the office on Monday morning. I really appreciate the help.
    Rhonda Williams
    Sent from my smartphone
    ...
  • TeamLadera
    Replied on August 22, 2018 at 2:43 PM
    Hello,
    I have been working with this particular section and am still having trouble. While I can successfully group and multiply the first 4 columns, when I add the subfields from the last column which are a different price, it scrambles the entire equation:
    [cid:image001.png@01D43A08.C967CF00]
    How do I keep this from happening?
    ...
  • Richie JotForm Support
    Replied on August 22, 2018 at 3:37 PM

    May we know if you have added a calculation to your medium,large,xl,xxl input fields?

    Form Calculation Widget and Fields IDs Image 1 Screenshot 20

    Can you please explain further the sub fields with different prices?

    Thank you.

  • TeamLadera
    Replied on August 22, 2018 at 4:43 PM
    The Small, Medium, Large and XLarge fields are all one price, and the XXLarge fields are a different price. I have not applied any calculations to the subfields.
    ...
  • Richie JotForm Support
    Replied on August 22, 2018 at 4:57 PM

    I would suggest adding another Form calculation to calculate the XXL fields

    Form Calculation Widget and Fields IDs Image 1 Screenshot 20

    and another Form Calculation to calculate the total.

    Please give it a try and let us know how it goes.

    Thank you.


  • TeamLadera
    Replied on August 22, 2018 at 5:43 PM
    That worked. Thank you.
    ...