How does the percentage element work?

With the percentage element, the user can fill in a percentage while filling out the form. For example, for specifying the VAT of a specific declaration. It is also possible to perform calculations with percentages.

Adding the element

You can find the percentage element in the Form Builder under the input elements. It is recognizable by the icon below.

Percentage_EN

The element is added directly to the row so you can start editing it.

Editing the element

When editing the element, you can specify a label, text, background text, and a default value. It is also possible to specify the number of decimal places.

Additionally, the element has various styling settings.

Quickly and easily add an alias via the element's settings so that the specified value can also be exported via Excel or an API connection. Additionally, you can change the appearance of the element in the settings.

Furthermore, with the specified alias, you can perform further calculations in your form.

Calculating with the element

By default, the input method is set to 'User input'. This means that a user can enter a percentage themselves. Additionally, you can set it to 'Read-only'. The user can then no longer edit the value.

By setting the input method to 'calculation', you can specify a calculation. For this, you use handy aliases. The result of the calculation will then always be displayed in percentages. It's important to note that a percentage for calculation will automatically be converted to the arithmetic value. Handy for calculating, for example, the VAT rate.

A calculation works the same as in the calculation element. Click here to learn how this works.

Example: Suppose a user enters a percentage of 17%, then the number used to calculated with is 0.17.

How can I calculate within dynamic content?

It is also possible to calculate within dynamic content. See here how you can achieve this.

Read more here about performing calculations within Incontrol.

Use subforms

Of course, you can also use smart subforms within the percentage element.

Note: If you want to display the subform at 17%, it must be equal to the value 0.17.