2019.1

Table Of Contents
l
The Move Up and Move Down buttons change the order of the fields, which is
reflected in the chart.
l
OK: Click to save any changes made to the script, apply the changes in the template, and
close the dialog.
l
Cancel: Click to close the dialog without saving changes.
l
Expand: Click to convert the script generator to a regular script. Note that this action is not
reversible once the regular script has been saved.
The expanded script will use either double or single quotation marks, depending on the
Preferences (Window > Preferences >Scripting; see "Scripting Preferences" on
page1016).
l
Apply: Saves changes made to the script and applies the changes in the template
without closing the dialog. Note that the effect will only be visible on the Preview tab in
the Workspace.
Expanded Script window
When expanded, the Script window replaces all parts of the wizard below the Selector by a box
in which the script can be typed. See "Writing your own scripts" on page798.
For an overview of keyboard shortcuts that can be used in this script editor, see "Keyboard
shortcuts" on page949.
Conditional script dialog
Conditional scripts can show or hide elements on the page depending on certain conditions
and values. They can be added by right-clicking any element in a template and clicking Make
Conditional. If the current element has neither an ID nor a class, an ID will be automatically
generated. See "Showing content conditionally" on page785.
The options in the Conditional Script wizard are:
l
Name: The name of the script, making it easier to identify it.
l
Selector: The Selector or Text to apply the result of the script to.
l
Selector: Uses CSS selectors to find the element to which the script applies.
l
Text: Uses text as a trigger for the script. The script applies to all instances of the
text found in the template.
Page 922