![]() ![]() They determine how different sections of the context are handled. When output is generated from a template, Control Scripts run before all other scripts, when a record is merged with a context. There are three types of scripts in the Designer: Control Scripts, Standard Scripts and Post Pagination Scripts. However, when you want to do something that goes beyond what you can do with a Wizard, like creating a conditional paragraph with a condition that is based on a combination of data fields, you have to write the script yourself. In an Email context, you are provided with a number of Script Wizards to set the sender, the recipients and the subject of the email. For dynamic images, you can use the Dynamic Image Script Wizard. Paragraphs can be made conditional with a Conditional Script Wizard. For a block of variable data, such as an address, the Text Script Wizard is a perfect fit. ![]() Most scripts can be made using one of the Script Wizards. This topic explains how scripts work and how you can create and write a script. ![]() It takes each record, one by one, and runs all scripts for it (in a specific order, see The script flow: when scripts run). When Connect generates the actual output – letters or emails -, it opens a record set and merges it with the template. Every bit of information in your communications can be made entirely personal, using scripts.Ī script is a small set of instructions to the program, written in JavaScript. Personalization can be taken a lot further than just inserting names and addresses, and hiding or showing text or images. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |