47497ea56fb2827016e884c681fd0b0a8b0e54ee
Guides/ReportDesign/14.0-Izenda-FORMS.md
| ... | ... | @@ -161,6 +161,16 @@ And this is an incorrect use: |
| 161 | 161 | [/repeater] |
| 162 | 162 | ``` |
| 163 | 163 | |
| 164 | +### Subtotals and the @Subtotal decorator |
|
| 165 | + |
|
| 166 | +Subtotals are used in conjunction with repeaters on forms to generate subtotals of a repeated numeric column. In order to use @Subtotal, you must do these things: |
|
| 167 | + |
|
| 168 | +1) Every field _outside_ of the repeater block must be visually grouped. |
|
| 169 | +2) The "Add Subtotals" checkbox must be checked. |
|
| 170 | +3) The field you wish to subtotal is added to the beginning of the @Subtotal decorator. For example, [LineItemTotal@Subtotal] |
|
| 171 | + |
|
| 172 | +The @Subtotal decorator can only be used once. It must be placed _outside_ of the repeater being subtotaled, but _inside_ of any other repeaters. If we think of repeaters as being 'levels', then the @Subotal must be placed one level up from the fields which it is totaling. |
|
| 173 | + |
|
| 164 | 174 | ### Adding inline Javascript to a Form |
| 165 | 175 | |
| 166 | 176 | To add javascript to a form inline, you must do two things. |