# Event

To provide efficient interaction between the user and the form one can use the following events to trigger various form actions:

### Form/Nested form events

**onLoad** - occurs when form has been loaded

**onBeforeSave** - occurs before form has been saved (form standard 'Save' button or 'Save' form api action)

**onAfterSave** - occurs after form has been saved (form standard 'Save' button or API > 'Save' form action)

**onActivate** - occurs when form has been activated (Navigate > 'Return Back' form action or navigating back via breadcrumb for linked forms)

### Form input events

**onChange** - occurs when the value of an element has been changed

### Button events

**onClick** - occurs when a button is clicked

### List events

**onChange** - occurs when the value of any of list checkboxes has been changed.

### Form event setup

* Select the element on the form (1)
* Click "Add New" button (2)

<img src="/files/3qidvIcICMEFTmBEU1fD" alt="" class="gitbook-drawing">

Provide required event details:

* Select event type (3)
* Provide conditions if necessary (4)
* Click "Add" button to tie actions to the event (5)
* Select existing actions (6) or click "+" icon to create new ones (7)
* Pass conditions if necessary (8)

Save changes.

<img src="/files/0lFjHa4BTNtUVvOtMQ8m" alt="" class="gitbook-drawing">


---

# 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/event.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.
