# Context Object

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.

Expend "Context" panel (1):

* Context Objects (2)- objects that have sense in current form context
* Context Field (3)- fields of selected context object
* Merge Fields (4)- resulting code of field to be used

Select the Context Object, select required field, copy the Merge Field value to use it in any place in the form:

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2Fc6DmQ0M1SVdxaIwasXEC%2Ffile.excalidraw.svg?alt=media&#x26;token=7cae96a6-951b-48fc-8548-d3e1f0d91c2a" alt="" class="gitbook-drawing">

### The form Context Object Types:

#### Form Source Object:

Allows to use merge fields from the form Source Object.&#x20;

You can also use related object fields but before using you should add them. See more details at [Additional Fields](https://x-screensteps-link/screensteps.com).

{% hint style="info" %}
Note!  The form Source Object context object is a static type and even you change the field value on the form, the old values will be used. To use dynamically changed values use $Form context object. Keep in mind that such option is available only when it is an option at the current menu.&#x20;
{% endhint %}

#### System

Allows to use System data such as:

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2FtEfYkJdLRwJ7NOGTUoL7%2Ffile.excalidraw.svg?alt=media&#x26;token=49e53cde-df39-4484-90ea-37a2dfe0efbc" alt="" class="gitbook-drawing">

{% hint style="info" %}
Note! The User context object is a static type and will be replaced on form load.
{% endhint %}

#### Form Parameters

Allows to get parameters passed to the form.

The Form Parameters context object is case sensitive.

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2FGXAJnXs8kZBCYsw1nkNK%2Ffile.excalidraw.svg?alt=media&#x26;token=8cbac2a6-a13d-423e-bc1d-9f0203070ab7" alt="" class="gitbook-drawing">

#### Variables

Allows to use defined [Variables](https://x-screensteps-link/screensteps.com).

Variables can be Static and Dynamic depend on usage context.&#x20;

Whenever you see in the constructor definition {$Variables.varName} - it uses Static type.

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2FP5JhFIdN0MRHgEaEfzuj%2Ffile.excalidraw.svg?alt=media&#x26;token=3190c3e5-fcd6-461b-8bfc-55773766f455" alt="" class="gitbook-drawing">

When you see {$Form.$Variables.varName} - it uses Dynamic type.

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2FXqKU8Pkbmof4dXOnX9jT%2Ffile.excalidraw.svg?alt=media&#x26;token=907fafe8-4b93-4a9b-bd28-6b7544880a0f" alt="" class="gitbook-drawing">

{% hint style="info" %}
Note! {$Form.$Variables.varName} can be used only when it is an option at current constructor menu.&#x20;
{% endhint %}

#### Parameters

The Parameters context object available on the form Actions. See more detail at [Actions](https://x-screensteps-link/screensteps.com) and [Events](https://x-screensteps-link/screensteps.com).

#### Output

Allows to use output variables returned by [KanBan Action/KanBan Action Group action type](https://x-screensteps-link/screensteps.com).

#### Row

Row context object is specific to [List and Related List](https://x-screensteps-link/screensteps.com) 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).
