A new Field type available in Form > Content > Form Fields > Your Field > Type.
It consent to display a calculated field based on User choices in this form.
The result value can be display on the form and used on all Actions.
It’s the expression which define the operations to calculate the total.
As dynamic placeholder of the Form fields you can use the standard Field Shortcodes or Tokens.
Examples (they return the same result):
- [field id=”qnt”] * [field id=”price”]
- [form:qnt] * [form:price]
The result field will not appear visible on the Form, but it’s usable inside the Actions
If the Calculator Result is not Hidden you can manipulate it with multiple number format.
Add a text before/after the number (like a “$” or “€” symbol)
How many numeric decimals support, usually set 2 for money
Optionally set a different to separate integer value from decimals
If you have high number values help you to read them
Expression used in this demo:
[field id=”room”]*[field id=”nights”] + [field id=”adults”]*[field id=”nights”]*[field id=”breakfast”] + ([field id=”adults”]+[field id=”children”])*[field id=”nights”]*2 + [field id=”extra”]