Back to Devexpress

Field Codes

aspnet-114110-components-rich-text-editor-mail-merge-field-codes.md

latest2.9 KB
Original Source

Field Codes

  • Jun 17, 2021
  • 2 minutes to read

Syntax

Field codes appear between curly braces ( { } ). Select the Toggle Field Codes context menu command to switch between a field result and field code.

Field code has the following syntax:

{ FIELDNAME Properties Switches }

  • FIELDNAME - the name of the field.
  • Properties - instructions/variables used in a particular field. This is an optional element.
  • Switches - an additional parameter that provides more information. This is an optional element. Refer to the Format Switches section for a list of supported format switches.

Supported Fields

Field NameFunctionality
DATEInserts the current date and time.
DOCVARIABLEAllows you to programmatically insert complex content when this field is updated.
FILLINDisplays an input with prompt text and inserts a user’s response.
HYPERLINKAllows you to navigate to another location or bookmark.
MERGEFIELDRetrieves a value from the bound data source.
NUMPAGESInserts the total number of pages.
PAGEInserts the number of the page containing the field.
TIMEInserts the current time.
TOCInserts the Table of Contents.
SEQInserts the number of the figure/table/equations.
TCInserts the alternate entry for the Table of Contents
PAGEREFInserts a number of the page that stores the specified bookmark for a cross-reference.

Format Switches

The fields support the following format switches:

The Numeric Format Switch is not currently supported.

See Also

Demo: Fields