S-Docs provides users the opportunity to efficiently upload .docx files through the DOCX feature. This feature allows you to:
- Easily import pre-existing Microsoft Word templates that you don't want to rebuild from scratch in the Template Editor
- Leverage Microsoft Word features like Restricted Editing, Table of Contents, and Redlining
- Create complex and beautiful templates without any knowledge of HTML
You can watch the following tutorial video to learn how to upload DOCX templates into S-Docs, use DOCX templates as S-Docs components, and use bulk upload with DOCX. You can also refer to the written instructions below for a general guide to uploading DOCX templates and using the correct merge field syntax.
Using .docx files with Microsoft Word is incredibly advantageous if you’re trying to increase your documentation generation. Let’s start by creating a new S-Docs template. Click on the Template Format drop-down menu and choose DOCX. Click Save.
Next, head to the template editor like you would with other templates. Normally, you would be able to make changes to the source code here, but with the DOCX upload feature, all you have to do is upload the .docx template file that you’ve already created!
Let's start by putting a merge field into our template. From the template detail page, click the Template Editor button.
Then, click Insert Field and select a merge field.
Rather than inserting the field into the typical source code editor, you will click the Copy to Clipboard button and paste it into your Word document where desired.
Once you’ve pasted the merge field in your Word document, return to the template editor. The screen should look like this:
Select "Choose File" and upload the Word document you have been working with. After selecting the file, you will see a message indicating that your file is uploading. In a matter of seconds, your template will successfully upload.
Congratulations! You can now generate your DOCX documents using your created S-Docs template.
Since first launching our DOCX feature, we have updated the syntax. The old syntax is still available when the “Legacy Upload” checkbox is checked on the DOCX file upload page, but no longer supported.
As part of the update, brackets are now required around all S-Docs syntax in DOCX templates, which results in a better output of your template.
If you’re importing a DOCX template that uses render statements, you will need to use brackets there too.
If you're using named queries in your DOCX template, you'll need to convert them to the DOCX format. If your named query looked like this:
You'd need to update it to this syntax: