Calculated Fields Bronze Plan
Calculated fields allow you to perform numeric calculations between fields. Set the kw-value
attribute to an equation of numeric field values or hard-coded numbers. Any mathematical operator can be used.
Addition With Field Values
If you would like to perform addition with the field values, do it this way, or else it will just concatenate the field values rather than add them:Number(fields.firstValue) + Number(fields.secondValue)
Implementation
<input type="number" name="first"> <input type="number" name="second">
<input type="number" name="result" kw-value="fields.first - fields.second" >
<input type="number" name="first"> <input type="number" name="second">
<input type="number" name="result" data-kw-value="fields.first - fields.second" >
Notice anything wrong in our docs? Let us know.