1.4

Text script dialog
The Text Script Wizard is used first and foremost for the replacement of placeholders on the
page, and is created automatically when dragging a data field or a detail table on the page. It
also appears when adding a QR Code in order to determine the data added to that barcode.
The result of this script is either the text appearing on the page, or the QR Code data.
Here are the options visible in the Text Script Wizard:
l
Name: The name of the script, making it easier to identify it.
l
Find: 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.
l
Selector and Text: Uses text as a trigger for the script but only applies to text within
the specified Selector.
l
Wizard Results: Displays a list of the data that is sent to replace the result of the script:
l
Prefix: Static text to use before the set field.
l
Field: A drop-down to select which field contents to use in the script. Note that only
fields from the Recordtab are displayed, not from any detail tables.
l
Format: A special formatting modifier applied to the Field. The available formatting
functions depend on the field type in the data model. For example, text fields can be
set to uppercase or lowercase. Date fields can be set to long and short dates or
different time displays.
l
Suffix: Static text to use after the set field.
l
[+]: Adds a new line to the Wizard Results. Note that by default there is no line return
between fields in the list. Adding <br> in the Suffix or Prefix field can establish a line
return.
l
[-]: Removes the currently selected line in the Wizard Results list.
l
Arrow Up: Moves the currently selected line up one position.
l
Arrow Down: Moves the currently selected line down one position.
l
Options group:
l
Insert method: Defines where and how the script inserts its results:
l
HTML: Inserts the result as processed HTML. If the result includes HTML tags
and elements, they are inserted into the source code, and displayed as their
result. For instance, <b>this is bold</b> will be displayed as this is
bold.
Page 519