With Incontrol, it's possible to automatically perform calculations for you while you're filling out the form.
How can I calculate from elements?
With Incontrol, you can calculate from various elements. Click on the respective elements to learn how to do this.
How can I calculate in static text?
In addition to calculation from the mentioned input elements, it is also possible to perform the calculations in static text.
Below is an example for calculating within static text.
In the first part, the value entered by the user is specified on the right side. In the middle column the given alias of the respective value is indicated.
In the second part, the type of calculation is indicated in the left column. In the middle column, the calculation is shows as you will enter it in your static text. And in the right column, the outcome is displayed.
How does the calculation work?
you can calculate anywhere you can place static text. You always start the calculation with a $ sign followed by a { sign. You perform the calculations based on the aliases you want to use and you close it with a } sign.
How can I display the outcome as time?
For this, it's important to first determine whether the outcome is in days, hours, minutes or seconds. Secondly, it's important to determine how you want to display the time. You can indicate this by using the : sign at the end of your formula, followed by the correct display according to the table below.
On the left side, you see the input for the time display. This is essentially the outcome of your calculation. In the next columns, you indicate the display.
Example: you have a calculation of ${@number*@unit} and you want to display this as hh:mm. The outcome of your calculation is in minutes. Then according the table, you add :tm after your formula. This gives a formula of ${@number*@unit:tm}. Suppose @number is 3 and @unit is 30, then the outcome is 3*30 = 90 minutes. Displaying as hh:mm would be 01:30.
How can I calculate within dynamic content?
It's also possible to calculate within dynamic content. Here's how you can achieve this.
Tip 1: To display decimals, use the ':' sign followed by the number of decimals at the end of the formula. For example, ':2' will show two decimals after the comma.
Tip 2: If you want to include a unit or currency, you can place it as text before or after the formula.
Tip 3: If you assign the same alias to an element multiple times, a calculation will always sum up the values of the alias first.
Tip 4: You can also calculate with numbers from a dropdown, audit, rating, or multiple choice element.