F
Filament12mo ago
Bloom

Custom action to trigger modal of another resource

I have made custom action in my customer resource like the screenshot, i want that action to trigger payment create modal. I can go to payment.index route but i want the create modal to be open
4 Replies
Vp
Vp12mo ago
I don't think you can open another resource modal, but you can custom the action using this https://filamentphp.com/docs/2.x/admin/pages/actions#custom-forms, instead of opening another resource modal, you can open modal that have another resource forms etc And please don't repost questions
Bloom
Bloom12mo ago
The example given is inserting to the current table, i want to insert to another table
Vp
Vp12mo ago
You can put $data = new Model inside action and perform create
Bloom
Bloom12mo ago
I will try it
Want results from more Discord servers?
Add your server
More Posts