> For the complete documentation index, see [llms.txt](https://docs.flexikanban.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flexikanban.ai/components/forms/using-form/how-to-build-the-link-to-the-form.md).

# How to build the link to the Form

Link to the form can be built with two ways:

* Combine relative or absolute URL of form page with necessary parameters
* Use BUILDFORMLINK function

### Use of form page URL

This way is suitable for URL/Navigate actions:

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2F8mH4QxOJAOHN2me3qRaO%2Ffile.excalidraw.svg?alt=media&amp;token=d9daefb8-7cad-405f-b4d4-1a9d3496d188" alt="" class="gitbook-drawing">

* Add an "Navigate to URL" (1) action to necessary form.
* Set URL Value (2) to relative or absolute path to form page or component:
* * Absolute path depends on server/organization you refer to.
  * Relative path may depend on page structure and will refer to the current server/organization; e.g., relative path can be like this: **/lightning/cmp/c\_\_FormPanel**
* Select which browser window the page will be opened in (3) - the same  or new window/browser tab.
* Add the necessary parameters (4).

Parameters for Form, used in this example, are:

* **style** = some CSS styles, that will be applied to Form container;
* **variables** = JSON with variables that should be passed to Form opened (optional);
* **formId** = ID of Form to open (may be set directly or via [merge fields](https://docs.flexikanban.ai/standard-kanban/tools/using-merge-field-picker.md));

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2FlGYm0DQlHNzmvZu6qZrv%2Ffile.excalidraw.svg?alt=media&amp;token=ad25a142-5233-41cf-bdbe-6153b164e7b1" alt="" class="gitbook-drawing">

After being configured and saved, this action will open a necessary Form with variables set and styles applied.

### Use of BUILDFORMLINK() function

This way is good for places where link should be generated as HTML, instead of script-driven actions. For example, it is good to build links in email messages. This function allows to build as simple URL, as correct HTML <mark style="color:red;">`<a>`</mark> tag with custom inner text.

The BUILDFORMLINK() function can be selected via merge field picker and should be called in this way:

<mark style="color:red;">`BUILDFORMLINK(form_id, record_id, mode, context_fields, parameters, entire_height, as_html_tag_optional, text_optional)`</mark>

See description of function arguments in the [proper article section](https://docs.flexikanban.ai/references/functions.md).

Function should be wrapped with FORMULA\[] operator and can be validated with [formula builder.](https://docs.flexikanban.ai/standard-kanban/tools/using-formula-editor.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flexikanban.ai/components/forms/using-form/how-to-build-the-link-to-the-form.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
