Effort Variables

Using petition variables in an effort can make it easier for you to add custom, target-specific text to each petition in an effort. Here's a list of variables that are currently supported in efforts: 

Variable  This will be replaced by: Example
{{ target.name }} The target's name  Abraham Lincoln
{{ target.phone_number }} The target's phone number 555-555-1861
{{ target.email }} The target's email address president16@example.com
{{ target.location.query }} The target's full location as entered in their target page. Lincoln Memorial, 2 Lincoln Memorial Circle Northwest, Washington, DC, United States
{{ target.location.latitude }} The target's latitude (when their location is converted to a point)  38.8892686
{{ target.location.longitude }} The target's longitude (when their location is converted to a point) -77.050176
{{ target.location.venue }} The target location's venue, if applicable Lincoln Memorial
{{ target.location.street_number }} The target's street number 2
{{ target.location.street }} The target's street name  Lincoln Memorial Cir NW
{{ target.location.locality }} The target's city  Washington
{{ target.location.region }} The target's state or region DC *
{{ target.location.postal_code }} The target's postcode 20037
{{ target.location.country }} The target's country US
Variable  This will be replaced by: Example
{{ target.name }} The target's name  Abraham Lincoln
{{ target.phone_number }} The target's phone number 555-555-1861
{{ target.email }} The target's email address president16@example.com
{{ target.location.query }} The target's full location as entered in their target page. Lincoln Memorial, 2 Lincoln Memorial Circle Northwest, Washington, DC, United States
{{ target.location.latitude }} The target's latitude (when their location is converted to a point)  38.8892686
{{ target.location.longitude }} The target's longitude (when their location is converted to a point) -77.050176
{{ target.location.venue }} The target location's venue, if applicable Lincoln Memorial
{{ target.location.street_number }} The target's street number 2
{{ target.location.street }} The target's street name  Lincoln Memorial Cir NW
{{ target.location.locality }} The target's city  Washington
{{ target.location.region }} The target's state or region DC *
{{ target.location.postal_code }} The target's postcode 20037
{{ target.location.country }} The target's country US

*This will always be the shortened version of the target's region (eg. MA, not Massachusetts). Depending on the data you're using, you can get the full name of the region by entering the full name in the Target's location query. (So instead of having a target at "140 Commonwealth Ave, Chestnut Hill, MA 02467", you have a target at "Massachusetts". In this case, the {{target.location.query}} variable will return "Massachusetts".)

However, more information about the target is normally better, so it's usually best to keep the full address of the target and use the shortened version of the region.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us