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

# Pass a match ID to the next automation with a prefilled question

> Store a value such as a Carerix match ID in a hidden form question when you send the form by email, then use it in the automation that handles the response.

*Send a form by email with a value already filled in, such as a Carerix match ID, and use that value in the automation that handles the response. The response then updates the right match, without anyone looking it up.*

## Before you start

You need:

* A form in an email template, sent with a **Send Email** step.
* An automation that starts on the record you want to update later, such as a Carerix match.

## 1. Add a hidden question to the form

Open the **Forms** page from **Settings** and open your form. Add a **Short Text** question for the value and give it a label that says what it holds, such as **Match ID**.

Click **Display & requirements** at the bottom right of the question card and turn on **Hidden**. The respondent never sees the question, but its answer is stored with the response and stays available to automations. Then publish the form.

![The Display & requirements popup on a question card, with the Hidden switch](https://mintcdn.com/hiredata/KSEzyVecFy6FIMmL/images/forms-builder/22-display-and-requirements.png?fit=max\&auto=format\&n=KSEzyVecFy6FIMmL\&q=85\&s=8212bf63564037757d2336d944586614)

## 2. Prefill the question in the Send Email step

Open the automation that sends the email and click its **Send Email** step. Open its **Form** section (**Set up your form** when you add a new step) and stay on **Prefill Questions**. Find the hidden question and select the value from the run, such as **Match: ID**. Save the automation.

![The Form section of a Send Email step on the Prefill Questions tab, with a form question and a select for its value](https://mintcdn.com/hiredata/cyHR6dJP3wAd5ZEa/images/automations/send-email-prefill-questions.webp?fit=max\&auto=format\&n=cyHR6dJP3wAd5ZEa\&q=85\&s=f07c0c07ae124909cb06c6708d656f6b)

The link to the form in the email now carries the value. When the recipient submits the form, the value is stored as the answer to the hidden question, on the response and in the **Response** event.

## 3. Use the value in the response automation

Create a second automation. In **Setup**, select **HireData**, then **Response**, and the trigger **Completed**. Under **Form**, switch **All** off and select your form, so its questions are available as variables.

![The Setup drawer with App HireData, Object Response, Trigger Completed, and a selected form](https://mintcdn.com/hiredata/mYCMki4Cx7M3RvFn/images/automations/29-setup-drawer.png?fit=max\&auto=format\&n=mYCMki4Cx7M3RvFn\&q=85\&s=89a9377cd8fc420998e2aea5a246f438)

To see the exact variable for the hidden question, open the form, click **Test & Evaluate** and read **Automation variables**.

Then add the Carerix task that updates the match. Choose **ID** as the identifier and select the hidden question's answer as its value. See [Update fields in Carerix](https://help.hiredata.com/apps/carerix/update-fields-in-carerix-with-hiredata.md).

## 4. Test it

1. Start the sending automation for a match you can safely change.
2. Submit the form from the email you receive.
3. Open the response on the **Responses** tab of the form or the match, and check that the hidden question holds the match ID.
4. Open the run of the response automation and check that it updated the right match.

## Related

* [Send Email task](https://help.hiredata.com/reference/automations/tasks/send-email.md) lists every setting of the step, including **Prefill Questions**.
* [Form builder tour](https://help.hiredata.com/reference/forms/overview.md#display-and-requirements) explains hidden questions.
* [Test & Evaluate](https://help.hiredata.com/reference/forms/testing/test-and-evaluate.md) lists the variables a response makes available.


## Related topics

- [Filter](https://help.hiredata.com/reference/automations/steps/filter.md)
- [Loop](https://help.hiredata.com/reference/automations/steps/loop.md)
- [Pre-screen every form response automatically with knock-out questions and scores](https://help.hiredata.com/knowledge-base/cookbook/set-up-form-evaluations.md)
- [Update](https://help.hiredata.com/reference/automations/steps/update.md)
- [Automation steps and what each does in a run](https://help.hiredata.com/reference/automations/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.