2019.1

Table Of Contents
2. Rename the script so that it reflects what the script does.
Note
Scripts can only have the same name when they are not in the same folder.
3.
Type a Selector. The selector selects one or more pieces of text or elements from the
template, so that the conditional content script can hide or show those pieces.
An ID (for example: #conditional-script) is best if you want to show or hide one element
only.
Use a class selector (for example: .conditional) if the script should show or hide more
than one element. See "Using the Text Script Wizard" on page778 for further explanation
on selectors.
When you start the Conditional Script Wizard by right-clicking an element, the Selector
field is pre-populated with the element's ID and class (or classes). If the element didn't
have an ID or class, it gets a new ID that is generated automatically.
If you'd want to change the selector later, you can do that after reopening the script
(double-click the name of the script in the Scripts pane).
4.
Set the Action: use the drop-down to select whether to Show or Hide the element when
the condition below is true.
5.
Check the Toggle Visibility option, if you want the opposite action to be performed if the
condition evaluates to false. By default, this option is checked.
6.
Click the downward pointing arrow next to Field, to select the data field that should be
evaluated.
7.
Click the downward pointing arrow next to Condition to expand the list of conditions with
which the data field can be evaluated. The options are: Equal to, Not equal to,
Contains, Does not contain, Begins with, Ends with.
8.
Type the Value or values (each on a new line) that should be used for the conditional
check.
Values are case sensitive, unless the option Case insensitive is checked.
Dates should be entered in ISO standard notation (yyyy-mm-dd).
The selected action will be performed if the condition evaluates to true with one of the
given values.
If, conversely, the condition evaluates to false, and the option Toggle Visibility is
checked, the opposite action will be performed.
Page 785