© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Lara Zeus

repeater - anonymous action - fillForm

I have a repeater with anonymous action to open a modal inside a resource as:

Repeater::make('sections')
                ->label('')
                ->schema([
                  TextInput::make('name'),
                  Actions::make([
                      Action::make('more-options')
                          ->fillForm(function ($data, $record): array {
                              dd($data, $record);
                              return [
                                  'name' => $get('name'),
                              ];
                          })
                          ->form(function(){
                              return [
                                  TextInput::make('name')
                              ];
                          })
                          ->action(function (Set $set, $data) {
                              $set('name', $data['name']);
                          }),
                    ]),
])->relationship(),
Repeater::make('sections')
                ->label('')
                ->schema([
                  TextInput::make('name'),
                  Actions::make([
                      Action::make('more-options')
                          ->fillForm(function ($data, $record): array {
                              dd($data, $record);
                              return [
                                  'name' => $get('name'),
                              ];
                          })
                          ->form(function(){
                              return [
                                  TextInput::make('name')
                              ];
                          })
                          ->action(function (Set $set, $data) {
                              $set('name', $data['name']);
                          }),
                    ]),
])->relationship(),

and I want to get the data of the repeater item
tried Get $get, $state, $data, $record

but I am always getting only the first item in the Repeater when trying to access the record
not sure what to inject there in
fillForm
fillForm


BTW the same code works just fine when not inside a repeater!
any idea?
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

Action `fillForm` not working inside Repeater
FilamentFFilament / ❓┊help
6mo ago
Anonymous Action doesn't work correctly inside repeater?
FilamentFFilament / ❓┊help
3y ago
testing repeater / fillForm / fill default item
FilamentFFilament / ❓┊help
2y ago
repeater action
FilamentFFilament / ❓┊help
4mo ago