Table: Trigger Modal from Action in Another Modal #6185
Replies: 4 comments 11 replies
-
Currently modals cannot be nested |
Beta Was this translation helpful? Give feedback.
-
This is just a suggestive option. For Filament pages, this might help you. Call this when the first action is finished. $this->displayMountedAction('message', ['body' => 'Some text']); trait CanCallMountedAction
{
public function displayMountedAction(string $action, ?array $data = []): void
{
$this->mountAction($action);
if ($data) {
$this->getMountedActionForm()->fill($data);
}
}
} |
Beta Was this translation helpful? Give feedback.
-
I try to render an action button within a view that is loaded by an action. Although the button renders successfully, clicking on it does not open the modal. Do you have any ideas on how to make this work? |
Beta Was this translation helpful? Give feedback.
-
Hello @danharrin, I need to trigger one modal based on the action of a previous modal. That is the kind of scenario which you refer to as nested modals. I also read your comment about Filament not supporting nested modals. Is there a workaround this? |
Beta Was this translation helpful? Give feedback.
-
I have the following action code in a table, that opens a modal:
When the user clicks the submit button, I'd like to close that modal and open this modal from another action:
Is that possible?
Beta Was this translation helpful? Give feedback.
All reactions