AUTOTEXTLIST

Syntax:

AUTOTEXTLIST field-argument [ switches ]

Description: Creates a shortcut menu based on AutoText entries in the active template. The list can vary based on the styles applied to the AutoText entries. text in field-argument is inserted into the document.

A complex field XML implementation shall be used, and the field-argument text shall be placed in one or more runs between the separate and end parts of the <fldChar> element.

Field Value: text in field-argument.

Switches: Zero or more of the following field-specific-switches.

\s field-argument

Specifies that the list is to contain entries based on the style specified by text in this switch's field-argument. Without this switch, entries of the current paragraph style appear. If there are no entries for the current style, all entries appear. The style can be a paragraph style or a character style.

\t field-argument

text in this switch's field-argument specifies the text to show in the ScreenTip.

example:
{ AUTOTEXTLIST "List of salutations" \s Salutation \t "Choose a salutation" }

causes the following to be displayed: In the document, the Salutation list; in the ScreenTip, Choose a salutation, and on the shortcut menu, the list of entries whose style is Salutation.