© 2026 Hedgehog Software, LLC

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

How to display infolist in a table column action with a relation record.

I want to display an infolist when a user clicks a column. I can easily do that using ViewAction. However, instead of the record iteself, I want to set the $record->customer as the infolist model.
Is there something similar to fillForm for infolists?
TextColumn::make('name')
    ->action(function (HasTable $livewire, ?ExpiryReport $record) {
        return ViewAction::make('View Customer')
            ->record($record->customer)
            ->infolist([
                TextEntry::make('CRN')
                TextEntry::make('NAME')
                    ->label('Name'),
                TextEntry::make('ADRS')
                    ->label('Address'),
                TextEntry::make('parentCrn')
                    ->label('Parent'),
               TextEntry::make('info.code')
                   ->label('Code'),
            ])
            ->slideOver();
    })
TextColumn::make('name')
    ->action(function (HasTable $livewire, ?ExpiryReport $record) {
        return ViewAction::make('View Customer')
            ->record($record->customer)
            ->infolist([
                TextEntry::make('CRN')
                TextEntry::make('NAME')
                    ->label('Name'),
                TextEntry::make('ADRS')
                    ->label('Address'),
                TextEntry::make('parentCrn')
                    ->label('Parent'),
               TextEntry::make('info.code')
                   ->label('Code'),
            ])
            ->slideOver();
    })
Solution
maybe

TextColumn::make('name')
    ->action(
        ViewAction::make('view_customer')
            ->infolist([
                TextEntry::make('customer.CRN')
                ...
            ])
    )
TextColumn::make('name')
    ->action(
        ViewAction::make('view_customer')
            ->infolist([
                TextEntry::make('customer.CRN')
                ...
            ])
    )

?
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Infolist Table Column
FilamentFFilament / ❓┊help
3y ago
How to display custom table column?
FilamentFFilament / ❓┊help
3y ago
Pass record to infolist from action
FilamentFFilament / ❓┊help
2y ago
How to access record in infolist
FilamentFFilament / ❓┊help
2y ago