FilamentF
Filament3y ago
Vp

Open modal and display infolist data from table inside page

What I am trying to do:
I am trying to open a modal when the table action is click, and inside that modal I want to display data using infolist.

What I did
I am stuck with opening modal and display infolist. If I use ->form() with textinput then it can open, but inside modal I want to render infolist data.
Tables\Actions\Action::make('detail')
    ->form([
        TextInput::make('title'), // if I remove this, modal cannot open and I cannot render infolist data here
    ])
    ->slideOver(),

Can anyone guide me to the correct approach, and thanks in advance.

Note: This is inside Pages make:filament-page
Solution
Haaaa. I replace form with infolist and now it's working.. I think i missed in docs
Was this page helpful?