Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a new form with the necessary details using form builder.
  2. Generate a CRUD by using Generate App option shown below:

    Image Modified

           Figure 1: Generate a Form CRUD

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:

         Image Modified
         
          Figure 2: Word document template

Sample Template

 

View file
nameSample_Template.docx
height250


     2. Utilizing form field IDs as placeholders for replacing/retrieve actual data. These placeholders are represented as $(field_id), such as $(name) and $(email) etc.

...

    1. Now upload this Word Template (the created word template) in the App's Resource in Joget as shown below:


           Image Modified 
           
            Figure 3: Upload Word template in the Apps's Resource

    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:

           Image Modified  
           
           Figure 4: Drag and Drop the Document Generation Datalist Action Plugin in the list 

   33. Now click on the plugin → plugin Configuration →Template file bring the hash variable of the resource that was uploaded previously.

          Image Modified

          Figure 5: Get the hash variable of the Resource uploaded previously 

Download the form

  1. 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:

...


  1. Image Added

    Figure 6: Export the Document using Download Word File button
       

...

  1.    

Download Demo App

View file
nameAPP_toy_doc_gen-1-20231017190017.jwa
height250