How to change the order of sections in my template?
Problem
Your client want to hide/show and change the order of sections in a document dynamically.
Solution
Create your template containing all your information in a single table, where each row corresponds to a section to be displayed (or not) according to its order number defined in the json. .
For example, this template with 5 rows :
where the formula {d.sectionOrder[i]:ifEQ('sec1'):keep(row)} is used to display the 1rst section.
Then, build your json so that the order of the sections to be displayed is specified.
Updated on: 06/10/2024
Thank you!