© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago
Aikido

Multi record form

Hello, I need to display in edit form multiple records one single TextInput. What I'm trying to make is Translations page List/Edit/Delete resource. Each translation have [id, key, language_id, value, tenant_id]. Visually it MUST look like I open edit form for a KEY and there is displayed ALL records with same KEY. All records must be grouped by tenants (i manage multiple sites in single CMS). Inside record each TextInput represents one record. I have reached this with mutateFormDataBeforeFill (in comments) and with two repeaters.
                Repeater::make('translations')
                    ->schema([
                        Repeater::make('records')
                            ->schema([
                                TextInput::make('value')->label(''),
                            ])
                            ->itemLabel(fn (array $state): ?string => $state['language']['name'] ?? null)
                    ])
                    ->itemLabel(fn (array $state): ?string => $state['tenant']['label'] ?? null)
                Repeater::make('translations')
                    ->schema([
                        Repeater::make('records')
                            ->schema([
                                TextInput::make('value')->label(''),
                            ])
                            ->itemLabel(fn (array $state): ?string => $state['language']['name'] ?? null)
                    ])
                    ->itemLabel(fn (array $state): ?string => $state['tenant']['label'] ?? null)
But problem: Repeater is to "fat" for vertical scroll. I need it to use only TextInput. In other resource i was used custom form generation with methods and foreach's, but here I can't access mutateFormDataBeforeFill generated data inside form() method. As I understand mutateFormDataBeforeFill return isn't parsed to $form directly. Is there a way to make it thicker?
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

Multi-use form section??
FilamentFFilament / ❓┊help
2y ago
Multi form in v3
FilamentFFilament / ❓┊help
2y ago
Form in view record
FilamentFFilament / ❓┊help
11mo ago
Multi record update with custom column
FilamentFFilament / ❓┊help
15mo ago