Skip to main content

Calculations

In order to design forms as dynamically as possible, linqi allows you to perform calculations and the like in a form. This can be, for example, the calculation of VAT, a total price or the amount of holiday days taken.
If you want to calculate a value, all you have to do is insert a placeholder as the default value for a control element that refers to the current form.

Example

As a small example, let's assume the following fields exist in a form:

Here linqi recognises the dependency between the VAT and cost fields. As soon as you change the cost field, the VAT field is automatically recalculated.

Dynamic configuration

In addition to calculations using various expressions and placeholders, you can also adjust the configuration dynamically.
For example, if you set the value for earliest date in a date field to another date field in the same form, this value is also updated automatically. In this way, you can, for example, set the value for the earliest date in the To field to the From field for two date fields From and To to ensure that a valid period is always entered.