Populate a Word Template with Form Data

November 25, 2021

Do you want to automatically save the form data into a word document? Or, better yet, populate a word template with a form data? That’s easy with Integromat.

With Integromat you can connect Jotform into over a hundred services like Microsoft which enables you automatically populate a word template after your customer submits the form.

Here’s how:

Text Instruction:


1. Word template – This must be your word template file. You must put in your merge tags e.g. {{full_name}} where you want the answers from the form to go. By default, merge tags should be enclosed with double curly braces. Example:

Friendly tip: Use a short file name for your word document for easier use later.

2. Integromat Account – This is where you integrate Jotform with MS Word Template

3. Dropbox Account – This is where the word document will be retrieved and saved.

Let’s say you want to generate a contract for your customers after filling a form.

1. Upload your word document e.g. contract.docx into the root folder of your Dropbox account.

2. Login to Integromat then Create a New Scenario

3. Search for these services and check them, Jotform, DropboxMicrosoft Word Template, then click Continue

4.a. Pick Jotform as the first module then select Watch for Submissions

4. b. In the Jotform settings, click Add button then under Connection click Add button again and enter your Jotform API Key. Your API Key should have Full Access permission.

After that, select a Form that you want to use for integration.

5. Add Dropbox as the next module then select Get File.

In the Dropbox settings, Connect your Dropbox account by clicking the Add button under Connection. After that, select “Select a file” then enter the file name of the word document you uploaded into your Dropbox account with the .docx file extension.

6. Connect the MS Word Template as the 3rd module then select “Fill out a document”

In the settings, construct the output file name. You can also use the field values like the Unique Submission ID, name and etc.

After that, click Add Item, then map the fields.

Value Type should be Simple Value for basic use or create a condition if you like

Key  should match the merge tags in your word template Ex. full_name from the word template {{full_name}}

Value are the form field(s ) from the panel that you want to be its value. You can combine as many fields as you like. Ex. For the full name, you can combine first and last name.

Repeat the same steps for the next merge tags.

Tip: Always use the child options rather than the parent option in the Value to exclude the HTML formatting.

7. Add Dropbox again as the last module then select Upload File. This is where the output file will be generated.

In the settings, select “Microsoft Word Templates – Fill out a document”.

The final scenario should look like the following:

Finally, save the changes and enable it. You can also click Run once then submit your form to test it.

That’s it! If you have any questions or if you are stuck at some point, feel free to write a comment below.

Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.