If you want to insert the ‘row’ number within a Repeat section in your Template, you can use the built-in system Field ‘rpt_Index’:
{ MERGEFIELD rpt_Index }.
For example, the first row of the Repeat will insert ‘1’ into the Document, the second row of the Repeat will insert ‘2’ into the Document, etc.
This can be useful when you want to refer to the relative row number in your Document when it is assembled.
For example, you could use this system Field if you have an invoice Template and you want to give each row of your invoice items a sequential number:
1. Eggs, $2.00
2. Ham, $3.50
etc
If you want to insert the TOTAL number of rows within the Repeat, then you can use the _Count extension on the end of the Repeat field name. For more information on the _Count system function see our article.
Comments
0 comments
Article is closed for comments.