Playground and DEMO space
This is a playground and demo space for ConfiForms and ConfiDoc addons developed and supported by Vertuna LLC
Most pages provide a storage format for the demo, so you can use the free add-on from Atlassian Confluence Source Editor (or through the bundled in ConfiForms storage editor) to import this configuration into your Confluence and see it in action
To import examples from the storage format on Confluence Cloud please see this page
Please note, all the examples here are provided without any obligation and may or may not be incomplete or may have bugs, and we provide NO SUPPORT for these examples and demos.
Using ConfiForms Rule and the formula like
total=([entry.p.transform(price).join(+)])
to calculate the sum for the order
See more about transform function on Virtual functions page
Rows in prices form
product |
price |
---|---|
banana | 12 |
apple | 10 |
orange | 8 |
Try checking the "p" field - the amount is recalculated.
"p" is the smart field taking values from "prices" form
Storage format for calculation rule
<ac:structured-macro ac:macro-id="e9724371-0213-48a9-8e1c-6184f4b4e439" ac:name="confiform-field-definition-rules" ac:schema-version="1"> <ac:parameter ac:name="values">total=([entry.p.transform(price).join(+)])</ac:parameter> <ac:parameter ac:name="action">Set expression</ac:parameter> <ac:parameter ac:name="actionFieldName">p</ac:parameter> <ac:parameter ac:name="onUserActionOnly">true</ac:parameter> </ac:structured-macro>