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

# Import Subform Data

> Pass data from a subform to a main form using Fillout.

## Overview

Values from a [subform](https://www.fillout.com/help/subforms) submission can be automatically inserted into a main form using [Answer Piping](https://www.fillout.com/help/answer-piping). By referencing subform responses, you can populate any field where answer piping is supported, such as question fields, headings, default values, labels, logic, and more.

This speeds up form completion and reduces data entry errors. For example, you can:

* Auto-fill contact information collected in a subform into the main form
* Reference prior selections to personalize questions or instructions
* Carry over calculated values or totals from a subform into summary fields in the main form

## How to import data

<Steps>
  <Step title="Choose destination field">
    On your main form, choose a field where you'd like to insert subform values to. In this example, we'll create a quote request where customers can see a summary in the end.

    <img src="https://mintcdn.com/fillout-005a867b/_-rrYYli3PyH_yMX/images/Screenshot2026-02-12at6.53.10PM.png?fit=max&auto=format&n=_-rrYYli3PyH_yMX&q=85&s=8fbad8c09b0f8a5e608a008c6925d016" alt="Screenshot 2026 02 12 At 6 53 10 PM" width="2630" height="1402" data-path="images/Screenshot2026-02-12at6.53.10PM.png" />
  </Step>

  <Step title="Select subform question">
    Type **@** to open the answer piping menu and click your **subform question**.

    <img src="https://mintcdn.com/fillout-005a867b/_-rrYYli3PyH_yMX/images/Screenshot2026-02-12at6.55.29PM.png?fit=max&auto=format&n=_-rrYYli3PyH_yMX&q=85&s=5391b30e9153a9d6aa5349cbcb6cdca2" alt="Screenshot 2026 02 12 At 6 55 29 PM" title="Screenshot 2026 02 12 At 6 55 29 PM" style={{ width:"75%" }} width="1519" height="837" data-path="images/Screenshot2026-02-12at6.55.29PM.png" />
  </Step>

  <Step title="Choose subform values">
    Choose the **specific fields or questions in your subform**. For example, let's add a quantity to each print type in the summary page.

    <img src="https://mintcdn.com/fillout-005a867b/_-rrYYli3PyH_yMX/images/Screenshot2026-02-12at6.59.42PM.png?fit=max&auto=format&n=_-rrYYli3PyH_yMX&q=85&s=cabe98743145c9646fa903084e5c8eb3" alt="Screenshot 2026 02 12 At 6 59 42 PM" title="Screenshot 2026 02 12 At 6 59 42 PM" style={{ width:"77%" }} width="1390" height="875" data-path="images/Screenshot2026-02-12at6.59.42PM.png" />

    You can also optionally show or hide fields. In our example, we'll only make print types show if they were previously selected. Check out our quick guide.
  </Step>

  <Step title="Publish and share">
    That's it! Dynamic subform values will now automatically populate forms.

    <img src="https://mintcdn.com/fillout-005a867b/_-rrYYli3PyH_yMX/images/Screenshot2026-02-12at7.17.35PM.png?fit=max&auto=format&n=_-rrYYli3PyH_yMX&q=85&s=924d1cdb2cc36735d77fbf63ba9e96f8" alt="Screenshot 2026 02 12 At 7 17 35 PM" style={{ width:"59%" }} width="1100" height="600" data-path="images/Screenshot2026-02-12at7.17.35PM.png" />

    Click `Publish` in the upper right corner to share or embed your form.
  </Step>
</Steps>

## Pass main form data

You can also do it the other way around by sending values from your main form to your subform. Check out this [quick guide](https://www.fillout.com/help/url-parameters-between-forms).

## Related articles

<CardGroup cols={3}>
  <Card title="Answer piping" icon="wand-magic-sparkles" iconType="regular" color="#FFC738">
    Insert previous answers into upcoming questions or fields.
  </Card>

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

  <Card title="Form parameters" icon="file-brackets-curly" iconType="regular" color="#FFC738" href="/url-parameters-between-forms">
    Share data between forms with URL parameters.
  </Card>
</CardGroup>
