showCardModal / hideCardModal
Opens or closes a BetterForms card modal that renders another page.
Last updated
Was this helpful?
Opens or closes a BetterForms card modal that renders another page.
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.
showCardModal
Opens a card modal window
hideCardModal
Closes the active card modal
{
"action": "showCardModal",
"options": {
"slug": "customer-detail"
}
}To close the modal:
{
"action": "hideCardModal"
}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:
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
Last updated
Was this helpful?
Was this helpful?