1. Overview This article shows how to generate a dynamic HTML report in Joget using BeanShell. The script reads an HTML template, loads related records from form tables, replaces placeholders, appends repeating sections, and returns the final report content. 2. How It Works Load the report template from a database table. Query the main request and related child records. Store placeholder values in maps. Replace template placeholders with form values. Use Jsoup to append repeating HTML sections. Return the final HTML through a FormRowSet. 3. Where to Use in Joget Form Builder: load binder or custom binder for report preview fields. Datalist/Reports: dynamic report generation from form records. Workflow Builder: generate printable HTML before approval or archival. 4.β¦