> For the complete documentation index, see [llms.txt](https://docs.work-relay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.work-relay.com/forms/best-practices/how-to-pass-variable-as-a-parameter-to-a-form.md).

# How to pass variable as a parameter to a form

{% stepper %}
{% step %}

## Create a variable

On the Process Builder, drag and drop **"Define Variable"** from the Actions section (1):

![](/files/dceb69e37640324e23f6ef641156a3cbb0c69452)

On the **"New Step Action"** popup, provide an Action name (2) and choose **"Text"** as a variable type (3):

![](/files/b923b420634464f8432f04f8608ecde21cc4fea3)

Provide a variable name and value:

![](/files/8a2d8b2d7ca78048b88cfa92ca738659bc597d0e)

Click **'Save'**.
{% endstep %}

{% step %}

## Edit the form layout parameters

Choose the process step that uses a form (4). Click the process step, then click **"Edit"** for Layout Parameters (5).

![](/files/8da394d6b2265c5ec212e0b221a50aead6e8a6cd)
{% endstep %}

{% step %}

## Add the variable as a parameter

Click **"Add New"** (6) on the parameters pop-up. Select **'$Variables'** as a data source (7). Select your variable as a context object item (8):

![](/files/2f3b1cfcc305511c430c76f92ad07185b47861b2)
{% endstep %}

{% step %}

## Save the parameter

Provide a parameter name. Place the cursor into the **"Parameter Value"** input and click **"Insert"** to paste the merge field value (9):

![](/files/b18a51fabe778c01a4253cc9ec52f6f293c85d71)

Click **"Apply"** to save changes.
{% endstep %}
{% endstepper %}
