Field codes: DocProperty field

The DocProperty field inserts the indicated document information that’s currently entered in the Properties dialog box. To view the Properties dialog box, click the File tab, click Info, click Properties (below the document preview on the right side), and then click Advanced Properties.


When you view the DocProperty field code in your document, the syntax looks like this:


Note:  A field code tells the field what to show. Field results are what is shown in the document after having evaluated the field code. To toggle between viewing the field code and the field code results, press Alt+F9.



The name of the property from the Properties dialog box.

To select a property, click the property name in the Property box in the Field dialog box. To view the Field dialog box, on the Insert tab, in the Text group, click Quick Parts, and then click Field.


Contact: { DOCPROPERTY Manager \* Upper }

In this example:

  • Contact: is the text that precedes the field result.

  • DOCPROPERTY is the field name.

  • Manager is the text for the required instruction ("Name").

  • \* Upper is an optional switch to specify that the name is displayed in all capitals.

If the name of the Manager specified on the Manager field of the Properties dialog box is Christa Geller, inserting this field in your document results in the following:


Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!