URL Parameters
Prefill Action Page fields, amounts, frequency, Funds, and tracking codes with URL parameters, and pass submission data to a callback URL with tokens.
URL parameters pass information from a link into an Action Page, so fields like name, email, and amount are filled in when the supporter opens the page. You can also use tokens in a callback URL to send submission details to the page supporters see after they submit. This article covers how to format URL parameters, the parameters Action Pages accept, custom field parameters, Spanish translation, and callback URL tokens.
How URL Parameters Work
Add parameters to the end of your page's link. Each parameter fills in the matching field on the page.
https://secure.anedot.com/city-food-pantry/donate?amount=25&first_name=Anna&last_name=Dote&email=annadote%40anedot.com&city=New+Orleans&state=LA&zip=70808When a supporter opens this link, the page selects a $25 amount and fills in the name, email, city, state, and ZIP code.
Formatting Rules
Start the parameters with
?after the page's link.Separate each parameter with
&.Use
+for spaces and%40for the@symbol. Encode other special characters as needed.Custom field values are case sensitive. For example, if a selection list option is in all caps, the URL parameter value must also be in all caps.
Supporter Information Parameters
first_name, middle_name, last_name
The supporter's name.
title
The supporter's title (prefix or salutation).
suffix
The supporter's name suffix.
email
The supporter's email address.
phone
The supporter's phone number.
line_1 or street
Address line 1.
line_2 or street_2
Address line 2.
city
City.
state or region
State, as a 2-letter abbreviation, such as LA.
zip or postal_code
ZIP or postal code.
country
Country, as a 2-letter country code, such as US.
occupation
Occupation. Also marks the supporter as employed.
employer_name
Employer. Also marks the supporter as employed.
Giving Parameters
amount
Selects a donation amount, in dollars, such as 25 or 25.50.
amounts
Replaces the page's suggested amounts with a comma-separated list, such as 10,25,50,100.
frequency
Selects a giving frequency the page offers: once, daily, weekly, biweekly, monthly, bimonthly, quarterly, semiannually, yearly, or biennially. If the page doesn't offer the frequency, the page's default is used.
fund_ids
Selects Funds on a page with more than one Fund, as a comma-separated list of Fund IDs. Use the Fund ID shown on each Fund's detail page in Funds, not the Internal Identifier.
fund_amounts
Sets the amount for each Fund in fund_ids, in the same order, as a comma-separated list. The page must allow allocation changes.
product_id
Selects a GOAA product the page offers. See Gift Of Any Amount (GOAA).
promoCode
Applies a promo code on an Event Page.
express_checkout_method
Selects a payment option: applepay, googlepay, or bitcoin_open_node. Bitcoin works only when it's turned on for the page.
Tracking Parameters
source_code, sc, or refcd
The submission's source code.
referrer_to_form
The referring page.
utm_campaign, utm_content, utm_medium, utm_source, utm_term
UTM codes for campaign tracking.
Source codes and UTM codes appear in the submission details and the Submissions export. See Submissions.
Page Display Parameters
embed=true
Shows the page in its embedded layout, without the page header or page background. The embed code from Share includes it.
lang=es
Shows the page's standard content in Spanish.
NationBuilder Parameters
If you use the NationBuilder integration, these parameters pass values to NationBuilder: nb_election_cycle, nb_election_period, nb_election_period_ngp_code, nb_is_private, nb_note, nb_recruiter_id, nb_recruiter_name_or_email, and nb_tracking_code_slug.
Custom Field Parameters
To prefill a custom field or hidden field, use the field's Internal Name as the parameter. For hidden fields, the Internal Name is the field's Key. See Custom Form Fields and Hidden Fields.
For example, a hidden field with the Internal Name hidden_custom_field is filled in with:
Callback URL Tokens
A callback URL sends supporters to another web page after a successful submission, instead of showing your confirmation message. To include submission details in that link, add tokens in double curly brackets, such as {{first_name}}.
{{first_name}}, {{last_name}}
The supporter's name.
{{email}}
The supporter's email address.
{{phone}}
The supporter's phone number.
{{address_line_1}}, {{address_line_2}}, {{address_city}}, {{address_region}}, {{address_postal_code}}, {{address_country}}
The supporter's address.
{{employer_name}}, {{occupation}}
The supporter's employer and occupation.
{{total_amount}}
The total amount of the submission.
{{fees}}
The fees on the submission.
{{donation_ids}}
The donation ID. Pages with more than one Fund return a comma-separated list.
{{donation_statuses}}
The donation status. Pages with more than one Fund return a comma-separated list, in the same order as donation_ids.
{{payment_method}}, {{payment_method_last_digits}}
The payment method and its last digits.
{{recurring}}, {{recurring_frequency}}
Whether the gift is recurring, and its frequency.
{{source_code}}
The submission's source code.
Custom field values are also available as tokens. Use the field's Internal Name in double curly brackets.
Example callback URL with tokens:
Related Articles
Was this helpful?

