# How to load a form when clicking on a tree node

Suppose you have a window containing a tree and a form depending on the node currently selected on the tree. What you want is to reload the form when selecting a node in the tree.\
You can do that manually, by binding to the "node clicked" event of the tree a javascript action containing js code to reload the form. You can use a wizard available in the tree panel definition to generate the same settings automatically.\
A few wizards are available in the settings panel for a tree in the App Designer. One of these wizards is about "Form loading when clicking a node". When selecting this item, a settings dialog is showed: once the user has selected the form, a list of required parameters is proposed on the right: these are parameters required by the form in order to read data correctly.\
For each of them, the user has to bind a value to that parameter, which can be a constant value, a variable (such as username, current date, etc.) or a value coming from the current selected node.\
In this way, the wizard has all information needed to create a javascript action and bind it to the "node clicked" event.


---

# 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://4wsplatform.gitbook.io/user-guide/core-features/3-1-25-other-wizards/3-1-25-10-how-to-load-a-form-when-clicking-on-a-tree-node.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.
