Articles on: Tutorials

How to change the order of sections in my template?


Your client want to hide/show and change the order of sections in a document dynamically.


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.
Json and render

Updated on: 06/10/2024

Was this article helpful?

Share your feedback


Thank you!