# 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&#x26;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));

<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&#x26;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).

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