Have automated calculations in your forms with the Calculation-widget. Sum up the score of the answers given in the Radio- and Lookup-widget. In this blog post the Radio-widget is used as example.

1. Download the widget

First, you will need to download the Calculation-widget from the MoreApp Marketplace. The widget can be found under the Widgets tab, once installed you can go the MoreApp Platform

2. Add the widget 

After you have downloaded the Calculation-widget, open the form you would like to add the widgets. Now add the Radio-widget to your form by double clicking on the widget. You will need to add more than one Radio-widget in order, to sum up, the results. In the properties of the Radio-widget, you will need to enable the Advanced mode. When clicking on the Use images as Labels you can use images for the labels in your form. By the ID field, you will need to fill in the value of the labels such as 1, 2 and 3 and by the Email label, you will insert the text answer of the label such as good, average or bad. Once you're finished click on Save. Now you can insert the Image-widgets to your form by double clicking on the Image-widget. This determines the image that will be visible depending on the total answer score. For this example: Gold, Silver and Bronze medals will be used to determine the level of the score.

3. Sum up 

Now you can add the Calculation-widget to your form, by clicking on the pencil in the widget you will open the properties. As Operator you will need to select ( + ) which will allow the widget to sum up the answers. In the Calculation Terms, select the Radio-widgets which you inserted to your form. Once you're finished click on Save


4. Add rules 

Now you will need to add rules to determine the actions of the widgets. For example, you can insert that if the score is below 5 then a Bronze medal image will be visible and if the answer total score is greater than 9 then the Gold medal image will be visible. Start off by selecting the Calculation-widget by Conditions and selecting Greater than 9 then the Gold medal will be visible. 



This will also be done with the Bronze and Silver medals. Once you've added the rules you can click on Save & Publish.


5. Congratulations!  

You have successfully made calculations using the Radio-widgets. Keep in mind that these steps will also work with the Lookup-widget! 


Do you want to be the first one to see our latest tutorials, go to our YouTube Channel and hit the Subscribe button!