Calculate results of form submissions with Logic Rules
Step 1. Select your form
Login to your MightyForms dashboard, then:- Select an existing form from your dashboard
- Create a new form from scratch
- Select one of the Templates.
- Or transfer an existing form.
Step 2. Prepare fields you want to add to the future formula
If you're going to use simple fields ie - Number, Price, Input - our future formula will use inputs from these fields directly.
Each option of such field-types as Dropdown, Multiple Choice, Icons Choice, Single Choice, Images Choice could have a specific numeric value. You should predefine it in the field's settings toolbar, "Choice Weights" section.
![](https://storage.crisp.chat/users/helpdesk/website/47797b0466dca000/cc126af5-d7e8-42e1-9d53-e6567d_1xaf3sc.png)
Step 3. Compose the Formula in Form Logic Rules
- Navigate to "Rules" on the left panel
- Click "Add Another Rule" button
- Set up the "If" section - what conditions will trigger the calculation. You can select more than one field and the conditions each needs to meet to trigger the Rule:
![](https://storage.crisp.chat/users/helpdesk/website/89ea1e26e2c42000/6692d4c9-37c9-46fb-8da2-2003e8_vlsspy.png)
4. At the "Then" section and select Calculate in Do dropdown
5. Indicate the Target field, this means where to output results. It could be a visible or hidden field added to your form, depending on your needs.
6. At this moment field for Formula composition will appear.
![](https://storage.crisp.chat/users/helpdesk/website/9376038abccb9000/a577f4c8-f070-4fcd-b7f7-9eb613_pag5nd.png)
7. So, you can set up Formula using Form fields from the dropdown, math operators, and figures.
![](https://storage.crisp.chat/users/helpdesk/website/b557e0fb206aa800/555f019f-fcb3-470f-8b06-e9c45a_1v9scga.png)
8. Save and test. Enjoy!
Need something more complex? Our team of experts can set up a custom solution for you with a Custom Plan.