Skip to main content
Nintex Community Menu Bar

You want to allow users to generate documents like proposals, contracts, or NDAs by clicking a button directly on a form in your app. This is one of the most common and powerful use cases for Nintex DocGen.

In this article, we’ll walk through how to:

  • Add a Generate Document button to a form
  • Connect it to an action flow
  • Configure the Generate Document action

🧠 This scenario assumes:

  • You’ve already created a Document Package click here for more information.
  • You understand the basics of app building
  • Your page includes models and fields already configured

 

✅ After Setup

You’ll have a working Generate Document button in your form that produces a dynamic document based on your configured document package and tags.

 


🔶 Step 1: Add a "Generate Document" Button to the Form

  1. Open an existing app or create a new one using the Page Designer
  2. In the Forms Designer page, open the Components panel
  3. Find the Button Set component and drag it onto the form where you want the button to appear
  4. Select the newly added Button Set
  5. In the General section, enter a label for the button

💬 Example: "Generate Document"

  1. Click Save to save your form layout

     


🔶 Step 2: Create a New Action Flow

  1. Expand the Interactions panel and click Add
  2. In the pop-up window, select Add action flow
  3. Click Create new action flow
  4. Name the action flow

Example: "Generate Document"

  1. Click Create

This opens the Action Flow Designer with a flow connected to the button’s click event.

 


 

🔶 Step 3: Add and Configure the Generate Document Action

  1. Under the Click event, click the ➕ icon to add a new action
  2. In the action type list, choose Document
  3. Select Generate Document
  4. Click on the Generate Document action box to configure its settings

In the action’s Settings panel:

Setting

What to Do

Action

Pre-filled with "Generate Document"

Behavior

Select Wait and download

Package

Choose the document package you created earlier

🔁 If your document package doesn’t appear, save the page and refresh the browser, then try again.

After selecting a package:

  • All associated tags will appear in the list below
  • For each tag, assign the corresponding field from your model

    ✨ Example: If your tag is <<custom_account_number>>, select the field with ID account number from your form. Example merge syntax: {{account_number}}

    After assigning values to each tag, click Save.  

     

Configure the button just like any other in Apps—for example, block the UI or display a toast message as needed. Then preview the page and test the button. 


✅ Summary

 

Adding a "Generate Document" button to your form gives your app users the power to instantly create personalized documents based on the data they’ve just entered. With just one action flow and one button, you’ve automated what used to take multiple steps.

Detailed technical content can be found here at Nintex Help. 

🧭 Next Step: Explore additional document actions like Download Document and Wait Until Generated for more advanced flows.

Be the first to reply!

Reply