# Add Freelucy to a form view

After installation, every `cmdb_ci` base table and its extended tables already show an **Edit Relationships** button. For other tables — including custom CI tables — you decide how Freelucy appears on the form.

Freelucy ships with two UI Formatters and one UI Action. Use whichever combination matches your users' workflow.

| Component                          | What it does                                                           |
| ---------------------------------- | ---------------------------------------------------------------------- |
| **Freelucy Edit Button** formatter | Adds a button to the form that opens Freelucy.                         |
| **Freelucy Viewer** formatter      | Embeds a read-only relationship view directly inside the form.         |
| **Edit Relationships** UI Action   | Adds an action item to the form's UI Actions menu that opens Freelucy. |

<figure><img src="https://files.readme.io/1e86aa07f5c0988de70afe0c9b8531481ccf560fed54f770ad52356312e2e2aa-image.png" alt="Freelucy components on a ServiceNow form"><figcaption></figcaption></figure>

***

## Add a UI Formatter to a form

Use this when you want Freelucy embedded in the form, or a button placed exactly where you want it.

1. Open a record on the table you're configuring.
2. Right-click the form header and select **Configure → Form Layout**.

   <figure><img src="https://files.readme.io/f56d376-fl-ui_action2.png" alt="Open Form Layout"><figcaption></figcaption></figure>
3. Add **Freelucy Edit Button**, **Freelucy Viewer**, or both, depending on what you want.

   <figure><img src="https://files.readme.io/8fb4ac73654096f967fc6bb638a32a79688e1300252fe27947eb77c47945c8b9-image.png" alt="Pick the Freelucy formatter"><figcaption></figcaption></figure>
4. Save the layout.

***

## Add the Edit Relationships UI Action to a table

Use this when you want Freelucy in the standard UI Actions menu rather than embedded in the form.

1. Open **All → System UI → UI Actions**.
2. Filter for **Edit Relationships** and open the record.

   <figure><img src="https://files.readme.io/bd8b8ae-fl-ui_action3.png" alt="The Edit Relationships UI Action"><figcaption></figcaption></figure>
3. Configure the action so it appears on the tables you want — typically by editing the table name or adding the table to the conditions.

   <figure><img src="https://files.readme.io/dbf37ed-fl-ui_action4.png" alt="Configure the UI Action conditions"><figcaption></figcaption></figure>
4. Save.

***

## What's next

Configuration is complete. Walk your users through [How relationships work in Freelucy](/freelucy/work-in-the-app/usage.md).


---

# 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.ins-pi.com/freelucy/configuration/form-view.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.
