© 2026 Hedgehog Software, LLC

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

Repeater Toggle others

How to toggle others false, if current is true

return $form
            ->schema([
                Forms\Components\TextInput::make('question')
                    ->required()
                    ->maxLength(255),
                Repeater::make('options')
                    ->columnSpanFull()
                    ->relationship('options')
                    ->schema([
                        TextInput::make('answer')
                            ->required(),
                        Toggle::make('is_true').
                    ])
            ]);
return $form
            ->schema([
                Forms\Components\TextInput::make('question')
                    ->required()
                    ->maxLength(255),
                Repeater::make('options')
                    ->columnSpanFull()
                    ->relationship('options')
                    ->schema([
                        TextInput::make('answer')
                            ->required(),
                        Toggle::make('is_true').
                    ])
            ]);
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

Repeater - toggle component instead of collapse arrow
FilamentFFilament / ❓┊help
2y ago
Repeater with only one record with Toggle active
FilamentFFilament / ❓┊help
3y ago
unexpected behavior in Repeater when contain a Toggle
FilamentFFilament / ❓┊help
3y ago
How to use toggle button as action button in repeater
FilamentFFilament / ❓┊help
10mo ago