1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Total element

Feb 10, 2021
Total element
  • Creates totals from other elements, for example summing a repeated line item.

    Options (top)


    Settings (top)

    • Method: Sum Repeat / Sum Multiple
    • Elements:
      Elements to combine into a total. If method is 'repeat', selection(s) must be in a repeat group, and the total will be for all instances of the repeat, for example would typically be something like a single line item cost or quantity, summed into a total. If method is 'multiple', select multiple elements to be summed, which must all be in the same group (repeating or non repeating), for example multiplying an item cost by a quantity to get a total cost. The operand is applied to the previous element (so to the Start Value for the first element). Elements available after initial save.
    • Rounding:
      Number of decimal places to round the result to. For integers (no decimal places) set this to 0. Rounding is necessary because all the arithmetic is done as floating point, where even adding two simple numbers like 23.54 + 12.65 can result in a number with an infinite number of decimal places.
    • Start Value:
      Value to start the total with. Usually 0, but if using 'substract' as an operand, could be used to subtract (say) quantity from an initial amount.
    • Total on Load:
      Run the JS to re-calculate the total on form load
  • Loading...