Introduction
Document Generation Datalist Action is a plugin that exports form data inside the Joget to a Word document in a specific template.
How to Set up the Plugin
Create a Form
- Create a new form with the necessary details using form builder.
- Generate a CRUD by using Generate App option shown below:
Create a word template
1. Create a word document template with general fields which will determine the layout.
For example, if one want to create a CV, the word template will be as shown below:
2. To retrieve the field information from the form element, $(field_id) is used.
Upload the word template in App's Resource
1. Now upload this Word Template (the created word template) in the App's Resource in Joget as shown below:
2. Now go to List Builder and choose the list of that form that was created earlier and drag and drop the Document Generation Datalist Action plugin element into the list as shown below:
3. Now click on the plugin → plugin Configuration →Template file bring the hash variable of the resource that was uploaded previously.
Download the form
Save it and whenever a form is created or edited in the CRUD, it can be downloaded using the Download word file button as shown below:
Download Demo App