> ## Documentation Index
> Fetch the complete documentation index at: https://fillout.com/help/llms.txt
> Use this file to discover all available pages before exploring further.

# Send data between forms using URL parameters

> Send data from a main form to a subform with Fillout's URL parameters.

## Overview

When embedding a [subform](https://www.fillout.com/help/subforms#subforms) within a main form, you can pass field answers or values (e.g., name, email, and order ID) from the main form to the subform using URL parameters.

This removes the need for users to re-enter information. For example, you can:

* Pass a user’s name or email for additional details in a subform
* Transfer order or project IDs for tracking submissions
* Pre-fill contact info in follow-up or feedback subforms

## How to send data

<Steps>
  <Step title="Add a URL parameter in your subform">
    Open your subform and follow the steps above. In our example, we have the order form as the main form and a subform for selecting products.
  </Step>

  <Step title="Connect the parameter to your main form">
    Click the subform field's <Icon icon="gear-complex" iconType="solid" />. Scroll down to **Advanced** and `Configure` the information you'd like to pass to your subform.

    <img src="https://mintcdn.com/fillout-005a867b/hiHXuwXcGWiXZ1S2/images/Screenshot2025-11-10at5.30.14PM.png?fit=max&auto=format&n=hiHXuwXcGWiXZ1S2&q=85&s=f52c40043bce3acd13259d8639e0102c" alt="Screenshot 2025-11-10 at 5.30.14 PM.png" width="2636" height="1439" data-path="images/Screenshot2025-11-10at5.30.14PM.png" />

    To add a new subform field, check out [this short guide](https://www.fillout.com/help/subforms).

    Click `+ Add new` and select the URL parameter from your subform in the left. Then, map this to corresponding field in your main form.

    <img src="https://mintcdn.com/fillout-005a867b/hiHXuwXcGWiXZ1S2/images/Screenshot2025-11-10at5.47.58PM.png?fit=max&auto=format&n=hiHXuwXcGWiXZ1S2&q=85&s=d45f0555e86d39ded7d4ef78bc054347" alt="Screenshot 2025-11-10 at 5.47.58 PM.png" title="Screenshot 2025-11-10 at 5.47.58 PM.png" style={{ width:"59%" }} width="1014" height="478" data-path="images/Screenshot2025-11-10at5.47.58PM.png" />
  </Step>

  <Step title="Publish and share">
    That's it! The field where you set the URL parameter as the default value will now be pre-filled automatically.

    `Preview` your form first to ensure it's working as you intended it to. Then, click `Publish` and share or embed your form.
  </Step>
</Steps>

## Send subform data

You can also do it the other way around by passing values from your subform to your main form. Check out this [**quick guide**](https://www.fillout.com/help/import-subform-data).

## Related articles

<CardGroup cols={3}>
  <Card title="URL parameters" icon="brackets-curly" iconType="regular" color="#FFC738" href="/url-parameters">
    Pass information to a form to support pre-filling.
  </Card>

  <Card title="Subforms" icon="diagram-nested" iconType="regular" color="#FFC738" href="/subforms">
    Collect repeated data with compact nested forms.
  </Card>

  <Card title="Import subform data" icon="file-fragment" iconType="regular" color="#FFC738" href="/import-subform-data">
    Pass data from a subform to a main form.
  </Card>
</CardGroup>
