How to use variables in the script manager

Within the question text, you can use two types of variables:

  • Data from your list
  • Previous question answer

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

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}}.

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>

Previous Question Answer Variables

You can also use answers to previous questions as variables in the question text by inserting the question name wrapped in curly brackets.

  • TIP: Previous answer variables are especially useful in GOTV scripts, volunteer recruitment, or donation request calls where you need to confirm script responses back to the target at the end of the call.

Below in our GOTV template, we use the values if there are any for the following questions: transportation, transportation_new (a similar question to transportation, but shows in a different question branch), from_where, and time_vote.