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
Vp2y 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
BloomOP2y ago
The example given is inserting to the current table, i want to insert to another table
Vp
Vp2y ago
You can put $data = new Model inside action and perform create
Bloom
BloomOP2y ago
I will try it

Did you find this page helpful?