© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
howdu

How to modify the form opened from a select option?

E.g I want to adjust the form columns to two, by default it's one. I don't want to use
Grid
Grid
components everywhere.

Is there a way of modifying the
form
form
from within
editOptionAction
editOptionAction
?
Select::make()
  ->editOptionForm(CustomResource::getFormSchema())
  ->editOptionAction(fn (Forms\Components\Actions\Action $action) => $action->modalWidth('screen'))
Select::make()
  ->editOptionForm(CustomResource::getFormSchema())
  ->editOptionAction(fn (Forms\Components\Actions\Action $action) => $action->modalWidth('screen'))
Solution
I found what I needed - you use Closure in
editOptionForm
editOptionForm
to access the form object.

->editOptionForm(fn (Forms\Form $form) => $form
    ->schema(CustomResource::getFormSchema())
    ->columns()
)
->editOptionForm(fn (Forms\Form $form) => $form
    ->schema(CustomResource::getFormSchema())
    ->columns()
)
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How the get the option label from a select
FilamentFFilament / ❓┊help
2y ago
How to filter select option from another select value
FilamentFFilament / ❓┊help
3y ago
how to translate the option in a Select?
FilamentFFilament / ❓┊help
3y ago
How to modify the Modal Form position
FilamentFFilament / ❓┊help
5mo ago