# Functions

## Points

![](https://476758574-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvaO9X8rr2FG8JwKkhC%2F-MLyFX2zsAjCkkms_I-s%2F-MLyNmVVTNAL4E5TkCuR%2Fimage.png?alt=media\&token=7056de3d-1e84-439f-8448-9d992b493400)

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2F75RKs11dM2qh2KufadxZ%2FPoints.gif?alt=media&#x26;token=3f66cbe4-f0bf-4796-a4a0-44b5a2fdde57" alt=""><figcaption></figcaption></figure>

This element allows us to drag the functions to change their position and from this handles change the logic of the functions, you can change the position of the functions inside and outside the callbacks

## Edit

![](https://476758574-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvaO9X8rr2FG8JwKkhC%2F-MLyFX2zsAjCkkms_I-s%2F-MLyO3ajDn1pptdL-TBi%2Fimage.png?alt=media\&token=018fdf28-9927-432a-9bb0-54b97f8bc7e2)

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FuBU79lo1K7lHnct5xrAp%2FEdit.gif?alt=media&#x26;token=83c8b4e9-1e39-4996-aac2-fb9a6e78af63" alt=""><figcaption></figcaption></figure>

It allows adding a specific name to the functions to better identify the functions, it is highly recommended to use them so as not to lose sight of the position of the controls, especially when they are quite complex logics

## Entry vars

![](https://476758574-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvaO9X8rr2FG8JwKkhC%2F-MLyFX2zsAjCkkms_I-s%2F-MLyP4VL_kj2oICke9D-%2Fimage.png?alt=media\&token=543d656f-4b66-4766-8997-7f8c537faf36)

When selected, it shows the parameters that a function needs so that it properly executes its work.

{% hint style="warning" %}
Not available in all features
{% endhint %}

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FgpVkyLbrBCv5AL3KW8sR%2FEntry%20vars.gif?alt=media&#x26;token=3b25f7f5-900a-439b-a85e-8f90abdff413" alt=""><figcaption></figcaption></figure>

## Callbacks

![](https://476758574-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvaO9X8rr2FG8JwKkhC%2F-MLyFX2zsAjCkkms_I-s%2F-MLyOpUh7sd99Twp7GL7%2Fimage.png?alt=media\&token=6fe310bb-01f9-48a3-89e1-2948c0581e29)

When selected, it shows all the possible responses that a function can trigger after executing its process, usually they are success and error responses.

{% hint style="warning" %}
Not available in all features
{% endhint %}

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FDXBCT29OfVNHQOzKl1hX%2FCallbacks.gif?alt=media&#x26;token=a2f19d44-e737-4f7f-8178-e9551d6ef230" alt=""><figcaption></figcaption></figure>

## Copy function

![](https://476758574-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvaO9X8rr2FG8JwKkhC%2F-MLyFX2zsAjCkkms_I-s%2F-MLyPE7ny0l-c-1KuQvn%2Fimage.png?alt=media\&token=b63fdcc9-8154-4975-bf2a-93bbdc0250cb)

Allows you to copy the functions within other events of the same or another control, within function callbacks and even in other events and function callbacks of another screen that are within the same project

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FIzIWf5VmqUAvcIz5M0Xr%2FCopy%20function.gif?alt=media&#x26;token=d67433b4-0018-4462-98db-b8ec2e5658ec" alt=""><figcaption></figcaption></figure>

## Delete function

![](https://476758574-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvaO9X8rr2FG8JwKkhC%2F-MLyFX2zsAjCkkms_I-s%2F-MLyPKI3XFTCXIfG1FVp%2Fimage.png?alt=media\&token=fa29cbed-66d3-4050-ab36-6603b5b7b178)

Allows to remove the functions, when removing a function, all the functions that are inside its callbacks will also be removed

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FyVXG4e0v0KPCLAzp6WWR%2FDelete%20function.gif?alt=media&#x26;token=dca5f4cd-5804-4843-9f97-9c062e89a995" alt=""><figcaption></figcaption></figure>

## Expand

![contract](https://476758574-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvaO9X8rr2FG8JwKkhC%2F-MLyFX2zsAjCkkms_I-s%2F-MLyPQfloGzf1jBIMy8I%2Fimage.png?alt=media\&token=a3ed8d92-3ecd-4c65-9ce7-beeac14bf2f4)

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FaeRmKpthnfnmn0skFnwo%2Fimage.png?alt=media&#x26;token=d1624d5d-c60f-4e16-bbb4-d512c97d9c17" alt=""><figcaption><p>Expand</p></figcaption></figure>

Allows you to expand or collapse the information (functions) of the functions

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FDuTwGi7NsYZL5YL3kgkm%2FExpand.gif?alt=media&#x26;token=a9ccbe94-d604-43ca-bca0-d12cf9d5e724" alt=""><figcaption></figcaption></figure>


---

# 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.apphive.io/reference/funciones.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.
