Expressions (calculations)

Download example project

 

Overview

Please feel free to download an example project by clicking on the link above. Expressions can be used within Infocapture to produce calculated values. These expressions should be defined as the default value of the field which should store and display the calculated value. Such values will be unchangeable and therefore it's recommended that these fields be configured as disabled, to avoid any confusion. Examples can be found in this form.

 

How expressions work

Go to Checkout Form to edit the example expressions. Edit any field that is disabled (these show as greyed out). 


There are two main calculation types, parseFloat and parseInt.

parseFloat example:

{#parseFloat($line_item_1)+parseFloat($line_item_2)+parseFloat($line_item_3)-parseFloat($discount)}

parseInt example:

{#parseInt($level_of_cover)*parseInt($number_of_months)}

There is also an expression to copy the value of another field:

{#@office}

 

How to use expressions within Infocapture.

 

Last modified on 22 March 2021 by Michael Christian
Created on 30 January 2018 by Jon Mulhern

Was this helpful?  

2 Likes
Share

[Discuss]

photo
{{ comment.user.is_me ? cc.translations.my_comment : comment.user.name }} {{ comment.user.is_me ? cc.translations.my_comment : comment.user.name }} {{comment.user.name}} [wrote]...
[Reply] [Like] [Unlike]  {{comment.like_count}} [person] [people] [liked this] [Edit] [Delete] {{ comment.timestamp.date_str }}

[Loading...]