> 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/form-building/context-objects.md).

# Context objects

Using Context Objects allows to set dynamic context on the Form. Merge Fields from Context Objects can be used everywhere on the Form: as Default Value, Title, Condition and any other input on the Form Item.

## Context panel

The Context Objects and Merge Fields are available on the right side panel.

![](/files/4a2fad9bb18bd6224bb9d11a7291170fd8f8fcb0)

Select the Context Object Type (1), select required Field (2), Copy the Merge Field value (3) to put it in any place in the form (4).

![](/files/0ebc84a16d49d22e03daca99f3acb522085f3ea5)

## Form context objects

<details>

<summary>Form Source Object</summary>

Allows to use merge fields from the form Source Object.

You can also use related object fields but before using you should add them to the Tools - > Fields. See more details at [Additional fields](/forms/form-building/additional-fields.md).

{% hint style="warning" %}
Changes to the Source Object fields are not saved automatically and require using the Save action.&#x20;

Changes made to the Source Object record outside of the form (ex. changes made to the record on the Salesforce record page) will not take effect on the form until it is refreshed.
{% endhint %}

</details>

<details>

<summary>System</summary>

Allows to use System data such as: Date/Time, Session ID, Force Base URL, Force Organization URL.

![](/files/ff0f74efff454449b0bd9fa786f70a29c856461b)

</details>

<details>

<summary>User</summary>

Allows to get the current User information.

![](/files/a483afd6a63f8996b8400263a75069d6777796f6)

{% hint style="warning" %}
Changes made to the User record outside of the form will not take effect on the form until it is refreshed.
{% endhint %}

</details>

<details>

<summary>Form Parameters</summary>

Allows to use parameters passed to the form.

The Form Parameters context object is case sensitive.

![](/files/c7c47b939b2829607bdd6355c187c666a058d15e)

</details>

<details>

<summary>Variables</summary>

Allows to use Variables defined at the Tools -> Variables menu. See more details at [Variables](/forms/form-building/variables.md).

{% hint style="warning" %}
When variables are used to output data on the form (added via the Context Object menu), updates to these variables will not be reflected on the form.
{% endhint %}

<figure><img src="/files/6yH1z9Qr2beXvHjIjS62" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
When using variables for logic rather than data output (e.g., passing parameters, building list conditions ect), always select them via the built-in Merge Fields picker. This ensures the correct syntax {$Form.$Variables.VariableName} is applied, allowing the system to evaluate the latest variable value at runtime.
{% endhint %}

<figure><img src="/files/S3J2lMk9eDlkWIY8mfqs" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Parameters</summary>

The Parameters context object available on the form Actions. See more detail at [Actions](/forms/form-building/form-action.md) and [Events](/forms/form-building/events.md).

</details>

<details>

<summary>Output</summary>

Allows to use output variables returned by [global action and global action group form actions.](/forms/form-building/form-action.md#global-action-and-global-action-group-action-types)

</details>

<details>

<summary>Row</summary>

Row context object is specific to [list and related list](/forms/form-components/list-and-related-list.md) form components. It allows to pass list row value(s) to form action as a parameters. Row context object is available in onChange, onSelect list events, along with the onClick event added to the standard list buttons (New, Edit, Delete, View).

Below is example setup of Account Name, stored in list row, passed to the form action when onSelect list event occurs.

Accounts List:

![](/files/32a1c8452c072fb79f5a646e837da0d870aa045a)

![](/files/ded535040edf5ecf22a93f19fab93dd525da5eeb)

After selecting Row context object, one is to choose list column value to be passed to action. Row Id is always available for selection, even if it was not added as the list column.

![](/files/74218c5d4ba2b0273c50b69104abf16630a099d3)

</details>
