> For the complete documentation index, see [llms.txt](https://academy.any2info.com/any2info-academy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.any2info.com/any2info-academy/no-code-platform/app-studio/app-logic/forms/forms-events/form-life-cycle.md).

# Form life cycle

Since version 4.3 form definitions support events. In version 4.3 we only supported the "On form open" event but since 4.5 we support a number of new events.

Currently supported form definition events:

* On form open
* On form created
* On form saved
* On new form saved
* On form updated
* Before form saved
* Before form deleted

### When are events triggered

Below are three scenarios shown and when the events are triggered. All the steps are color coded.

**Blue**: actions which take place on the client (Web or app)

**Light blue**: conditions

**Yellow**: Are the events, when an event is executed all related action (Linked fields, calculations, action flows) are executed before the flow continues

**Green**: server side actions

#### Open form

<figure><img src="/files/8LsRbqkjzjEyKfq3y0F2" alt=""><figcaption></figcaption></figure>

#### Save form

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

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

#### Delete form

<figure><img src="/files/9Ep9QVtidLhnkzlYp7qd" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://academy.any2info.com/any2info-academy/no-code-platform/app-studio/app-logic/forms/forms-events/form-life-cycle.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
