How to use variables in the script manager


Within the question text, you can use data from your list as variables.


List Variables


You are able to use any of the variables listed in the Instructions section to fill in information from your uploaded list. Just cut and paste the appropriate variable from the instructions section directly into your question text. See "Load a Call List" for more details about loading list variables.



In the example above, we are using address, polling location, and polling address.


In the example below, we are using phone, first name and email which is mapped to custom field 1. 

  • {{phone}} to display the phone dialed
  • {{first}} to display the first name of the person called
  • {{custom_field_1}} to display the variable from your list upload mapped to that field



Example of Script Preview:


TIP: No matter what data you send to use as {{custom_field_1}} through {{custom_field_6}} variables, those strings do not change. {{custom_field_1}} must always be inserted as {{custom_field_1}}.


Example of how variables look in the script preview. 



These are available to view via the Admin Script Preview Link.



Note that while you can use a space between the curly braces and the variable name (i.e. {{ address }} works the same as {{address}}), you cannot have html within the curly braces. This will not work: {{<h1>address</h1>}} Instead, if you want to apply html to a variable, wrap the whole thing in the html: <h1>{{address}}</h1>