© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•9mo ago•
3 replies
varovas

Infolist RepeatableEntry view entry action.

Hi, I cant figure out how to make repeatable entries with action that opens entry in new tab. Check my code below. Why I cannot inject current repeatable entry in function:

RepeatableEntry::make('completedTestAttempts')
    ->label(false)
    ->state(function (User $student) {
        return $student->completedTestAttempts()
           ->with(['exam', 'questions', 'category'])
           ->whereNotNull('completed_at')
           ->orderBy('completed_at', 'desc')
           ->limit(10)
           ->get()
           ->toArray();
     })
     ->schema([
       TextEntry::make('exam.name')
           ->label(__('Name')),
           \Filament\Infolists\Components\Actions::make([
               Action::make('overview')
                  ->url(fn (TestAttempt $testAttempt): string => $testAttempt->getUrl())
                  ->label(__('Overview'))
           ])
     ]),
RepeatableEntry::make('completedTestAttempts')
    ->label(false)
    ->state(function (User $student) {
        return $student->completedTestAttempts()
           ->with(['exam', 'questions', 'category'])
           ->whereNotNull('completed_at')
           ->orderBy('completed_at', 'desc')
           ->limit(10)
           ->get()
           ->toArray();
     })
     ->schema([
       TextEntry::make('exam.name')
           ->label(__('Name')),
           \Filament\Infolists\Components\Actions::make([
               Action::make('overview')
                  ->url(fn (TestAttempt $testAttempt): string => $testAttempt->getUrl())
                  ->label(__('Overview'))
           ])
     ]),
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

Custom Infolist Entry Action
FilamentFFilament / ❓┊help
2y ago
infolist with RepeatableEntry
FilamentFFilament / ❓┊help
3y ago
infolist how RepeatableEntry relationship how can edit each entry ...
FilamentFFilament / ❓┊help
3y ago
Infolist FileUpload entry
FilamentFFilament / ❓┊help
13mo ago