Calc Use Cases

Count the Items in a Collection List

Preparation;

  • Setup your Collection List

  • Create the element where you want the Collection List count to appear

Attributes;

Choose a unique name for the items you're counting, we'll use test1 for this example.

On the element that will display the count;

  • Add the wfu-calc = count attribute

  • Add wfu-calc-source = test1 attribute

On the collection list;

  • Place wfu-calc-field = test1 directly on the Collection List Item element.

Sum the Values within a Collection List

Preparation;

  • Setup your Collection List

    • Within the Collection List, place your element which contains the value you are wanting to sum

  • Create the element where you want the Collection List sum to appear

Attributes;

Choose a unique name for the items you're counting, we'll use test2 for this example.

On the element that will display the count;

  • Add the wfu-calc = sum attribute

  • Add wfu-calc-source = test2 attribute

On the element within your collection list that contains the value to be summed;

  • Place wfu-calc-field = test2 directly on the Collection List Item element.

Last updated

Was this helpful?