1.5

Table Of Contents
Script wizards
Wizard types
Script wizards are simplified interfaces for common scripts in templates:
l
Text Script: This is the default script that is created when a data field is dragged from the
Data Model onto the page. See "Variable Data" on page497.
l
Dynamic Image Script: Provided that its selector refers to an image, this script
dynamically changes the image for each record. See "Dynamic Images" on page508.
l
Email Scripts. The Email To Script is automatically added to any new Email context; it
defines where the email should be sent for each record. Other Email scripts define other
recipients, the subject of the email that is sent, and the PDF password. See "Email
header settings" on page320.
l
Barcode Script: This script controls the contents of a Barcode. It is automatically added
when a barcode is added to a template. See "Barcode" on page379
l
Business Graphic Script: This script controls the contents of a Pie Chart, Bar Chart or
Line Chart.
The result of the script can be either text appearing on the page, an email address or subject,
the barcode data, or a JSON string that is written to the attribute of an HTML element.
Options
Here are the options visible in Script wizards:
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
Wizard Results: Displays a list of the data that is sent to replace the content that matches
the script's selector:
l
Prefix: Static text to use before the set field. For example in Dynamic Image scripts,
the default prefix is images/.
Page 591