F
Filament2mo ago
Willy

Open modal on page load

I saw that it is possible to execute an action when the page is loaded https://filamentphp.com/docs/3.x/panels/pages#opening-an-action-modal-when-a-page-loads There he gives the example of passing the action through the url
/admin/products/edit/932510?action=onboarding
/admin/products/edit/932510?action=onboarding
I didn't find it in the doc, but I saw that I can do the same for a table action if I pass tableAction instead of action. My question is, how do I pass the 'record' argument to my edit action?
1 Reply
Willy
WillyOP2mo ago
I found it, if anyone has the same question you can pass
tableAction=my-action&tableActionRecord=my-record-id
tableAction=my-action&tableActionRecord=my-record-id
It also has the
tableActionArguments
tableActionArguments
in case anyone needs it
Want results from more Discord servers?
Add your server