F
Filament3mo ago
Ava

editAction -> form -> columns(2)

How can I add two columns to my editActions modal? I wasnt the name and slug input beside each other in the editAction modal.
Solution:
try Group ```php use Filament\Forms\Components\Group; ......
Jump to solution
9 Replies
LeandroFerreira
LeandroFerreira3mo ago
are you using a simple resource?
Ava
AvaOP3mo ago
I dont know what you mean by simple resource.
LeandroFerreira
LeandroFerreira3mo ago
is it a custom page?
Ava
AvaOP3mo ago
Yes its a custom page, but I need the form inside the model to have columns just like a normal edit form would have.
Ava
AvaOP3mo ago
No description
Ava
AvaOP3mo ago
Like this. But from editAction modal
Solution
LeandroFerreira
LeandroFerreira3mo ago
try Group
use Filament\Forms\Components\Group;
...

->form([
Group::make([
TextInput::make('field1'),
TextInput::make('field2'),
])->columns(2)
])
use Filament\Forms\Components\Group;
...

->form([
Group::make([
TextInput::make('field1'),
TextInput::make('field2'),
])->columns(2)
])
Ava
AvaOP3mo ago
Thank you @Leandro Ferreira, I knew you had the answer. I was overlooking it but I searched and didt find in docs.

Did you find this page helpful?