F
Filament5mo ago
sven

Custom action before EditRecord

Hi, I want to show an Action to the user when they want to publish a record. More specifically, I have a Collection model, and an Article model. A Collection has many articles. When the user wants to publish the collection, I want to show a modal to select articles to publish along with the collection. I'd like to show a modal that lets the user select the associated articles to publish with the collection. At the moment the user has to select the article records in the relation manager and publish them there. I'd like to integrate those two actions. I tried different things but can't figure out from the docs if this would be possible as there seem to be quite a lot of functions to tap into, along with custom actions etc. Any help?
1 Reply
Dimitar Papazov DEV
Please show a code sample so we can get idea where and what are you want. For now, here is an example on how to show modal on some action: https://filamentphp.com/docs/3.x/actions/modals#modal-forms
Want results from more Discord servers?
Add your server