Creating variable fields in Word

<< Click to Display Table of Contents >>

Navigation:  Publishing > Configuring for Publishing > MS Word DOCX >

Creating variable fields in Word

You can't just type in Help+Manual variables as plain text as you can in a PDF template. To use Help+Manual variables in your Word DOCX templates you need to enter the variable in a Word field.

You can enter Help+Manual variables in any Word fields that get resolved to text. Help+Manual will find them and replace them with the variable value when you publish with the DOCX template. However, there are a two field types that you will probably find most useful: Comment fields and document properties.

Comment fields

These fields are best for inserting variables inside paragraphs or other items. Don't confuse them with the Word comments feature! That is for peer review and is completely different – variables entered in Word comments won't work.

To enter a comment field with a Help+Manual variable in Word:

1.Open the DOCX template in Word and click in the place where you want to insert the variable.

2.Select the Insert tab in Word, then in the Text group select Quick Parts > Field to open the Field dialog.

3.Select Comments in the Field names: box, then type in the Help+Manual variable in the New comment: box, using the format <%VARIABLE_NAME%>.

Document properties fields

You can see examples of these fields in some of the standard DOCX templates included with Help+Manual. They are used for the Title, Author, Year, Abstract and Company Information items displayed on the cover page, for example.

To enter a document properties field with a Help+Manual variable in Word:

1.Open the DOCX template in Word and click in the place where you want to insert the variable.

2.Select the Insert tab in Word, then in the Text group select Quick Parts > Document Property and then the property you want to insert.

3.This inserts the property item as a box on the page containing a field. Then type in the Help+Manual variable in the empty field, using the format <%VARIABLE_NAME%>.