© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
12 replies
Thigah Alattass

Select [all options] of dropdown inside repeater

I have (not multiple) select inside a repeater
i use the repeater when i want to select more than one option
i need to be able to select all options either by add a new option to dropdown or any other way such as radio

 Forms\Components\Repeater::make('featuresTest')               
                ->itemLabel(fn (array $state): ?string => Feature::query()->where('id',$state['feature_id'])->first()['name']?? null)                  
                ->relationship()
                    ->schema([
                        Forms\Components\Select::make('feature_id')
                            ->label('Feature')
                            
                            ->options(function(callable $get){
                                $test_type = $get('../../type');
                                if(!$test_type){
                                    return ['Please, Enter the type first'];
                                }
                                return Feature::where('type',$test_type)->pluck('name','id');
                            })
                            ->required()
                            ->reactive()
                            
                            ->columnSpan([
                                'md' => 7,
                            ])
 Forms\Components\Repeater::make('featuresTest')               
                ->itemLabel(fn (array $state): ?string => Feature::query()->where('id',$state['feature_id'])->first()['name']?? null)                  
                ->relationship()
                    ->schema([
                        Forms\Components\Select::make('feature_id')
                            ->label('Feature')
                            
                            ->options(function(callable $get){
                                $test_type = $get('../../type');
                                if(!$test_type){
                                    return ['Please, Enter the type first'];
                                }
                                return Feature::where('type',$test_type)->pluck('name','id');
                            })
                            ->required()
                            ->reactive()
                            
                            ->columnSpan([
                                'md' => 7,
                            ])
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

Populating Repeater Select Dropdown
FilamentFFilament / ❓┊help
3y ago
Repeater Select Morph - disable sibling options
FilamentFFilament / ❓┊help
15mo ago
Repeater Inside Repeater
FilamentFFilament / ❓┊help
7mo ago
Form Select component select all options method
FilamentFFilament / ❓┊help
3y ago