> For the complete documentation index, see [llms.txt](https://docs.anedot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anedot.com/action-pages/advanced-features/url-parameter.md).

# 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=70808
```

When 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 `%40` for 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

| Parameter                                | What it fills in                                   |
| ---------------------------------------- | -------------------------------------------------- |
| `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

| Parameter                 | What it does                                                                                                                                                                                                                                 |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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](https://docs.anedot.com/settings/finance/funds.md), 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)](https://docs.anedot.com/action-pages/advanced-features/gift-of-any-amount.md).                                                                                       |
| `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

| Parameter                                                             | What it records                  |
| --------------------------------------------------------------------- | -------------------------------- |
| `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](https://docs.anedot.com/action-pages/action-page-basics/submissions.md).

## Page Display Parameters

| Parameter    | What it does                                                                                                                  |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------- |
| `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.                                                                                 |

{% hint style="info" %}
`lang=es` translates the page's standard content only. Translate custom field labels and other custom content yourself in the Page Builder.
{% endhint %}

## 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](https://docs.anedot.com/action-pages/page-builder/custom-form-fields.md) and [Hidden Fields](https://docs.anedot.com/action-pages/page-builder/hidden-fields.md).

For example, a hidden field with the Internal Name `hidden_custom_field` is filled in with:

```
https://secure.anedot.com/city-food-pantry/donate?hidden_custom_field=special
```

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

| Token                                                                                                                                  | Value                                                                                                                  |
| -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `{{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:

```
https://www.example.com/thank-you?source_code=EMAIL_APPEAL&first_name={{first_name}}&last_name={{last_name}}&email={{email}}&total_amount={{total_amount}}
```

## Related Articles

* [Share An Action Page](https://docs.anedot.com/action-pages/action-page-basics/share-an-action-page.md)
* [Custom Form Fields](https://docs.anedot.com/action-pages/page-builder/custom-form-fields.md)
* [Hidden Fields](https://docs.anedot.com/action-pages/page-builder/hidden-fields.md)
* [Submissions](https://docs.anedot.com/action-pages/action-page-basics/submissions.md)
* [Advanced Features](https://docs.anedot.com/action-pages/advanced-features.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.anedot.com/action-pages/advanced-features/url-parameter.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
