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 Word what to insert or provide to the document after determining the value of the field code, such as the current date or the number of pages. Usually, the resulting value is simply displayed as part of the document. You can toggle between viewing the result or viewing the field code by pressing Alt+F9 on Windows or fn+Option+F9 on Mac.



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 specified in the Manager field of the Properties dialog box is Christa Geller, inserting this field in your document results in the following:


Need more help?

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.