© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
aurawindsurfing

Repeater access current $record

Hi guys,

I can not figure out a way to access current record outside of repeater schema:

Section::make('Collected information')->schema([
                Repeater::make('allClientData')
                    ->label('Data Points')
                    ->deletable(fn($record) => auth()->user()->team_id === $record->team_id)
                    ->relationship()
                    ->schema([
                        Select::make('client_data_type_id')
                            ->disabled(fn($record) => auth()->user()->team_id === $record->team_id)
                            ->options(ClientDataType::all()->sortBy('sort')->pluck('name', 'id'))
                            ->label('Type')
                            ->required(),

                        Textarea::make('value')
                            ->label('Notes')
                    ])
                    ->addActionLabel('Add note')
                    ->defaultItems(0)
                    ->grid(2),
                ])->collapsible()->collapsed(),
Section::make('Collected information')->schema([
                Repeater::make('allClientData')
                    ->label('Data Points')
                    ->deletable(fn($record) => auth()->user()->team_id === $record->team_id)
                    ->relationship()
                    ->schema([
                        Select::make('client_data_type_id')
                            ->disabled(fn($record) => auth()->user()->team_id === $record->team_id)
                            ->options(ClientDataType::all()->sortBy('sort')->pluck('name', 'id'))
                            ->label('Type')
                            ->required(),

                        Textarea::make('value')
                            ->label('Notes')
                    ])
                    ->addActionLabel('Add note')
                    ->defaultItems(0)
                    ->grid(2),
                ])->collapsible()->collapsed(),


Inside schema $record works outside of it it does not. Thank you for havinga look!
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

Access current record within Widget
FilamentFFilament / ❓┊help
2y ago
access current record from custom view
FilamentFFilament / ❓┊help
3y ago
Access current record data from within getRelations
FilamentFFilament / ❓┊help
2y ago
how to access current state of repeater item?
FilamentFFilament / ❓┊help
2y ago