ViewAction on custom page
I created a custom page that's using the Table builder package with a ViewAction. When I click on view in the table, it pops open the modal but there's no content. I have the form schema defined but I can't for the life of me figure out how to connect the form with the ViewAction modal. Is this doable? Thanks.
7 Replies
Can you share your
getTableActions()
?
In a filament resource the view form gets populated automagically from the form schema but in this case I'm not sure how to tell the ViewAction to use that.
Ah I see! I thought you were having problems displaying the custom form. So this is about filling the form with the correct info when the modal opens?
Filament
Actions - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
Thanks, I'll give this a try! The modal does open but it's empty and I wasn't sure how to tell it to use my Form schema like it does in a filament resource.
So it looks like the generic ViewAction doesn't work in a custom page, right?
I think it works but indeed, there's probably not much difference between a ViewAction and a base Action in your context. The ViewAction will make all fields disabled by default...
It does work and you pointed me in the right direction - thank you. I needed to attach the form to the action iteself
Bingo!