© 2026 Hedgehog Software, LLC

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

collect repeatable entry in a table

The problem : I want to collect the options in one table , in the view page of the product .
What I did : I searched how but I found nothing
How can I do it please ? thank you !
php  RepeatableEntry::make('options')
                                ->schema([
                                    Components\TextEntry::make('option')->label('Option'),
                                    Components\TextEntry::make('value')->label('Value'),
                                    Components\TextEntry::make('qte')->label('Quantity'),
                                    RepeatableEntry::make('subOption')
                                    ->schema([
                                        Components\TextEntry::make('sub_option')->label('Option'),
                                        Components\TextEntry::make('value')->label('Value'),
                                        Components\TextEntry::make('qte')->label('Quantity'),
                                    ])->columns(3)->columnSpanFull()->hidden(function() use ($infolist){
                                        //hidd if the count is 0
                                        if(count($infolist->record->subOptions) === 0){
                                            return true;
                                            }
                                    }),
                                ])
                                ->columns(3),
php  RepeatableEntry::make('options')
                                ->schema([
                                    Components\TextEntry::make('option')->label('Option'),
                                    Components\TextEntry::make('value')->label('Value'),
                                    Components\TextEntry::make('qte')->label('Quantity'),
                                    RepeatableEntry::make('subOption')
                                    ->schema([
                                        Components\TextEntry::make('sub_option')->label('Option'),
                                        Components\TextEntry::make('value')->label('Value'),
                                        Components\TextEntry::make('qte')->label('Quantity'),
                                    ])->columns(3)->columnSpanFull()->hidden(function() use ($infolist){
                                        //hidd if the count is 0
                                        if(count($infolist->record->subOptions) === 0){
                                            return true;
                                            }
                                    }),
                                ])
                                ->columns(3),
25.11.2023_10.46.45_REC.png
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 Table repeatable entry
FilamentFFilament / ❓┊help
2y ago
repeatable entry
FilamentFFilament / ❓┊help
13mo ago
repeatable entry
FilamentFFilament / ❓┊help
2y ago
Repeatable entry using table error like this
FilamentFFilament / ❓┊help
5mo ago