Browse Article by Topicscalculate condition insert text mathematical calculation conditional conditions math mathematical calculate calculations conditional logic
- Smart Forms Using Conditional Logic
- Adding a license agreement to a form
- Creating a scrollable Terms & Conditions
- How to Send Email Based on User's Answer
- How to Create a Basic Multiple Payment form
- Hide or Show Multiple Fields at Once
- How New "Conditions For" and "Order by" boxes work in conditional logics
- How to Perform Form Calculation Using a Widget
- Form Calculation - Math Function Reference
- How to Insert Text or Mathematical Calculation into a Field Using Conditional Logic
Related Forum Questions
- Hide and Show Fields with Conditions
- I cannot add more than one email address when trying to setup a condition
- Form Conditions: A way to print conditions all at once
- Re: How to disable or hide a field on submissions edit mode
- Calculations populate based on user clicking a check box
- What is the best way to use conditions?
- Conditional Logic: Field not displaying
- Conditions issue
- Is there ANY other widget that does what Driving Distance does?
- How to have multiple pages using fewer conditional statements
How to Insert Text or Mathematical Calculation into a Field Using Conditional LogicLast Update: June 4, 2016
We have just implemented this as a new feature allowing the use of Calculations based on specific conditions.
To learn more about this, here's my test form https://form.jotform.com/61551439806964. We'll use it as a reference for the steps mentioned below.
1. On Form Builder, click on the Conditions button.
2. Then select "Update/Calculate Field" option.
3. First, setup the "IF" statement, this is the rule needs to be met for the conditional logic to trigger its action. Next, set the "DO" statement to "Calculate a field's value".
3.1. Below is a screenshot to where we can do a calculation using the input from other fields. In my case, I will add the text box "Number 1" and "Number 2" then output it on a text box named "Total". This conditional action will happen ONLY if text box "Number 1" is filled out. You can see this on my test form.
You can add the other form fields by clicking the "Add Field" button. Make sure that the fields are set to "0-9", meaning their value is numeric. You can also insert your own formula here, you can see the number pad at the right side and the math functions there.
After clicking the save button, this is how it looks like in my Conditions list.
Here's how it looks like in live form preview:
3.2. Now how to insert a static text? Simply type the text in the textarea field under the "DO" statement. Set the target field where you want to output the text. In my case, this conditional action happens when the specific drop down field in my form is set to "Yes".
This is how it looks like in my Conditions list:
This is how it looks like in live preview:
4. Congratulations! You are now able to insert static text or perform your own calculations using Conditional Logic.
Related guide that you might also want to check out:
Got questions? Please let us know below!