Calculation
About Calculation
Need to add calculation functionality to your online forms? Browse Jotform's calculation widgets, or advanced form fields, to enhance your forms.
Make complicated calculations easy. By adding sliders to your form, you can automatically calculate results depending on which positions form users select. It's a great way to quickly determine prices while selling your products or booking your services online.
Use this widget to
You can configure each slider with assigned values for each slide position, and these values are used to change the result through the result formula, configured with our easy-to-use wizard. For example, you can add the following values into the configuration editor:
Quantity of T-Shirts
min = 1
max = 20
default = 1
Sizes
min = 1
max = 4
default = 1
names = Small, Medium, Large, X-Large, XX-Large
Ship to Location?
max = 1
min = 0
default = No
names = No, Yes
Polyester to Cotton Ratio
names = 10%, 25%, 50%, 75%
values = 1, 2, 2, 2
default = 10%
Then add the following formula to the formula box:
((#1)*((#2*2)+(#4*10)))+(#3*20)
In the formula, the sliders are numbered from top to bottom, and are preceded by the pound sign/hash sign (#) - #1, #2, #3, etc. If you have any questions, the widget wizard provides more guidance on how to customize calculations for your forms.
Need to add calculation functionality to your online forms? Browse Jotform's calculation widgets, or advanced form fields, to enhance your forms.