# 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="/files/l5vTuW3kksGYIgLJWXyh" 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](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="/files/DZhEyC9K7zYOGZg7nYSG" 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="/files/y1AGCUBb2YWWixfLkVWP" alt="" class="gitbook-drawing">

#### Variables

Allows to use defined [Variables](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="/files/6N9XGHNEsApQw0iGgEyc" alt="" class="gitbook-drawing">

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

<img src="/files/HEO1ZKEYOtBtELJUaCqn" 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](x-screensteps-link://screensteps.com) and [Events](x-screensteps-link://screensteps.com).

#### Output

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

#### Row

Row context object is specific to [List and Related List](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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flexikanban.ai/components/forms/tools/context-object.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
