# showCardModal / hideCardModal

Card modals are page-based modal windows. They are different from `showModal` / `hideModal`, which control the standard Sweet Modal dialog.

Use `showCardModal` when you want to open another BetterForms page inside a modal window.

## Action Summary

| Action          | Purpose                      |
| --------------- | ---------------------------- |
| `showCardModal` | Opens a card modal window    |
| `hideCardModal` | Closes the active card modal |

## Minimal Example

```json
{
  "action": "showCardModal",
  "options": {
    "slug": "customer-detail"
  }
}
```

To close the modal:

```json
{
  "action": "hideCardModal"
}
```

## Notes

* `showCardModal` creates a BetterForms window and loads another page into it.
* `hideCardModal` closes the active card modal through the runtime event bus.
* These actions are separate from `showModal` / `hideModal`.
* For the full card modal option set, use the page-level reference here:
  * [Card / Window Modals](/reference/form-settings/card-modals.md)

## Common Uses

* open a record detail page from a list
* show a child form without leaving the current page
* build modal workflows that still use BetterForms pages and hooks


---

# 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.klai.studio/reference/actions-processor/actions_overview/showcardmodal.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.
