© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Wazza

Set Select Option After createOptionForm

Hey everyone just looking for some advice, how could I set the value of the select option to the newly created on that I have created using the createOptionForm below is my select component

Forms\Components\Select::make('industry_id')
                        ->label('Industry')
                        ->relationship(name: 'industry', titleAttribute: 'name')
                        ->options(
                            Industry::all()->pluck('name', 'id')
                        )->createOptionForm([
                            Forms\Components\TextInput::make('name')
                                ->required(),
                        ])
                        ->live(),
Forms\Components\Select::make('industry_id')
                        ->label('Industry')
                        ->relationship(name: 'industry', titleAttribute: 'name')
                        ->options(
                            Industry::all()->pluck('name', 'id')
                        )->createOptionForm([
                            Forms\Components\TextInput::make('name')
                                ->required(),
                        ])
                        ->live(),


Any help would be great, thank you in advance
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

Select option is "0" after creating an entry through Select::make(...)->createOptionForm(...)
FilamentFFilament / ❓┊help
3y ago
Select::createOptionForm fill?
FilamentFFilament / ❓┊help
16mo ago
Set the Time Array to Option Select
FilamentFFilament / ❓┊help
2y ago
Select::createOptionForm not always work
FilamentFFilament / ❓┊help
3y ago