We rebuilt our website from scratch and are still updating some extensions and pages. Having a problem? Sign in and open a support ticket or contact us.
JoomBoost

Calculations

A calculation fills a field with a result worked out from other fields, for example a total price. The result changes as the visitor types.

Add a calculation

  1. Add a field for the result, usually a Textbox, for example named Total.
  2. Open the Calculations tab of the form.
  3. Pick the result field, then write the formula after =.
  4. Click Save this calculation.

A formula uses field placeholders with :value, the operators + - * / and brackets:

({Price:value} + {Extra:value}) * {Quantity:value}

For drop-downs, checkboxes and radio groups, give each item its number with a [p...] code. The code is removed from the label:

16GB|16GB - $399[p399]
32GB|32GB - $499[p499]

For checkboxes, the numbers of all ticked items are added together.

The wizard's Calculations Form is a working example, see Form wizard.

Number format

The result is shown with two decimals, a dot as decimal separator and a comma as thousands separator. The Calculations tab of the Options has settings for this, but JoomForms 2.1.2 does not read them, so the result always uses this format.

Calculated totals and payments

The calculation runs in the visitor's browser. For payments use the Total field of the payment plugin, and check the amount you receive, see Payments.

All Extensions