Skip to content

Form Prefilling

You can prefill VoteAmerica tools by using URL parameters. For embeds, certain URL parameters added to the parent window can be passed to the embedded tool.

The list of accepted parameters can be viewed here:

/* Form fields */
title
first_name
last_name
suffix
address1
address2
city
state
zipcode
month_of_birth
day_of_birth
year_of_birth
email
phone

/* Hidden source fields */
source
utm_campaign
utm_source
utm_medium
utm_term
utm_content

Defaults and Overrides

In addition to allowing these parameters, we allow setting default and override UTM attributes within the embed code.

Default attributes:

data-defaultSource
data-defaultUtmCampaign
data-defaultUtmSource
data-defaultUtmMedium
data-defaultUtmTerm
data-defaultUtmContent

Override attributes:

data-overrideSource
data-overrideUtmCampaign
data-overrideUtmSource
data-overrideUtmMedium
data-overrideUtmTerm
data-overrideUtmContent