Skip to main content
A newer version of this page is available. .

Field Codes

  • 2 minutes to read

Syntax

Field codes appear between curly braces ( { } ). You can switch between displaying the field code and the result for a selected field by selecting Toggle Field Codes in the context menu.

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

{ FIELDNAME Properties Optional_Switches }

  • FIELDNAME - This is the name of the field.
  • Properties - These are any instructions or variables that are used in a particular field. Not all fields have parameters, and in some fields, parameters are optional.
  • Optional switches - These are any optional settings that are available for a specific field. Not all fields have switches available, other than those that control the formatting of the field results.

Supported Fields

Field Name Functionality
DATE Inserts the current date and time.
DOCVARIABLE Enables you to programmatically insert complex content when this field is updated.
HYPERLINK Enables you to navigate to another location or to a bookmark.
MERGEFIELD Retrieves a value from the bound data source.
NUMPAGES Inserts the total number of pages.
PAGE Inserts the number of the page containing the field.
TIME Inserts the current time.
TOC Inserts the Table of Contents.
SEQ Inserts the number of the figure/table/equations.
TC Inserts the alternate entry for the Table of Contents
PAGEREF Inserts a number of the page that stores the specified bookmark for a cross-reference.

Formatting Options

The following format switches are supported by the fields listed above:

The Numeric Format Switch are not currently supported.

See Also