[V4] InfoList with forms in Filament modals!

I'm trying to make the modal with filament form and text entry together. Is that possible? Upper top of the modal is text entry or custom text entry, bottom is form input.
Solution:
No that's replacing an entire modals content. On an action you can do: ->form() ...
Jump to solution
13 Replies
Dennis Koch
Dennis Koch4mo ago
You can mix and match Forms and Infolists in v4. What issues are you having?
Shaung Bhone
Shaung BhoneOP4mo ago
sth like that
No description
Shaung Bhone
Shaung BhoneOP4mo ago
That is modal
toeknee
toeknee4mo ago
What issue are you having? Thats just a view field above for the comments and a form a textarea below? Then you can use them in one?
Shaung Bhone
Shaung BhoneOP4mo ago
Yeah I want to use That I show you is only design
toeknee
toeknee4mo ago
Yes it is the same as I do for my notes modal. The form is the add note and the notes above are the other livewire components just rendered as a view
No description
Shaung Bhone
Shaung BhoneOP4mo ago
Is livewire component?
toeknee
toeknee4mo ago
It's just a couple of filament actions, with a form on the action, then sub actions for the additional actions. The comments are a livewire component / blade view
Shaung Bhone
Shaung BhoneOP4mo ago
like that?
Solution
toeknee
toeknee4mo ago
No that's replacing an entire modals content. On an action you can do: ->form() right? So pass in:
->form(fn($record) => [
Livewire::make(Comments::class, ['model_id' => $record->id])
->key('comments'),
Textarea::make('comment')
])
->form(fn($record) => [
Livewire::make(Comments::class, ['model_id' => $record->id])
->key('comments'),
Textarea::make('comment')
])
For a rough example
toeknee
toeknee4mo ago
In theory then you could use the TextEntry etc
Shaung Bhone
Shaung BhoneOP4mo ago
Thank you so much. I got it.

Did you find this page helpful?