-
TJ FletcherAsked on May 16, 2024 at 11:14 AM
RE: How to Assign Calculation Values
What if there was a product category for hats, t-shirts, and shoes each with three different calculation value options. How do you add the calculation values from each product category in that scenario? How do you add the values together? Is there a template demonstrates this
-
Lorevie JotForm SupportReplied on May 16, 2024 at 12:06 PM
Hi TJ,
Thanks for reaching out to Jotform Support. I understand that you want to assign calculation values from a product option using the dropdown, single-choice, and multiple-choice fields. The easiest way to add them is by using the Form Calculation Widget. Let me show you how to do it:
- In the Form Builder, click on the Add Form Element on the left side of the page. In my example, I selected the Multiple Choice element, so respondents can select more than 1 option from the products.
- To edit the options, click on the Gear icon of the Multiple Choice field and enter your product list from the Options tab. Indicate the amount of the products, so its easier to see how much each costs.
- Still from the Options section, toggle Calculation Values to enable it.
- In the Calculation Values box, enter the amount of each product.
Now, let's add the amount of each product:
- In the Form Builder, click on the Add Form Element on the left side of the page and select Form Calculation from the Widgets tab.
- Click on the Wand icon of the added widget, click on Add Field, and select the Multiple Choice field with your product list. The calculation value for each option will be added automatically. Make sure that the number "0-9" is in color black, meaning it is set as a number.
- Click on the Save button at the bottom of the page.
Here is the result:
You can clone my demo form here.
Give it a try and let us know how it goes.
- In the Form Builder, click on the Add Form Element on the left side of the page. In my example, I selected the Multiple Choice element, so respondents can select more than 1 option from the products.