© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
3 replies
br

Infolist Repeatable with custom state

With filamentphp 3 I try to render an entity history using infolist repeatable with text entries for field name, old value and new value. Though I am not able to get my field values shown. It seems like the number of repititions is correct (2). This is my code:

RepeatableEntry::make('mydata')
    ->label('Field Changes')
    ->columnSpanFull()

    ->state([
        //'mydata' => [
            [
                'field_name' => 'a field',
                'old_value' => 'an old value',
                'new_value' => 'a new value',
            ],
            [
                'field_name' => 'another field',
                'old_value' => 'another old value',
                'new_value' => 'another new value',
            ],
        //]
    ])

    ->schema([
        TextEntry::make('field_name'),
        TextEntry::make('old_value'),
        TextEntry::make('new_value'),
    ]),
RepeatableEntry::make('mydata')
    ->label('Field Changes')
    ->columnSpanFull()

    ->state([
        //'mydata' => [
            [
                'field_name' => 'a field',
                'old_value' => 'an old value',
                'new_value' => 'a new value',
            ],
            [
                'field_name' => 'another field',
                'old_value' => 'another old value',
                'new_value' => 'another new value',
            ],
        //]
    ])

    ->schema([
        TextEntry::make('field_name'),
        TextEntry::make('old_value'),
        TextEntry::make('new_value'),
    ]),


What is the correct approach to make this work?
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

InfoList Repeatable Entry Eloquent Children
FilamentFFilament / ❓┊help
2y ago
Pagination / Lazy Loading InfoList / Repeatable
FilamentFFilament / ❓┊help
3y ago
Repeatable Entry Actions Loading State
FilamentFFilament / ❓┊help
2mo ago
Custom Table repeatable entry
FilamentFFilament / ❓┊help
2y ago