© 2026 Hedgehog Software, LLC

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

is it possible to have a Repeater in action form in a loop

I should go to sleep but I wont till resolve this 😅

in a lw component with loops for items
and each item with an action :

{{ ($this->settings)(['item' => $id]) }}
{{ ($this->settings)(['item' => $id]) }}


in that action I have a form with repeater

->fillForm(function (array $arguments) {
    $client = $this->client();
    $getIndex = $client->getIndex($arguments['index']);
    $settings = $getIndex->getSettings();

    $filterableAttributes[$arguments['index'].'-filterableAttributes'] = $settings['filterableAttributes'];
    return $filterableAttributes;
})
->form(function (array $arguments) {
    return [
        Repeater::make('filterableAttributes')
            ->simple(TextInput::make('filterableAttributes'))
            ->grid(2)
            ->statePath($arguments['index'].'-filterableAttributes')
            ->key($arguments['index'].'-filterableAttsssributes')
    ];

})
->fillForm(function (array $arguments) {
    $client = $this->client();
    $getIndex = $client->getIndex($arguments['index']);
    $settings = $getIndex->getSettings();

    $filterableAttributes[$arguments['index'].'-filterableAttributes'] = $settings['filterableAttributes'];
    return $filterableAttributes;
})
->form(function (array $arguments) {
    return [
        Repeater::make('filterableAttributes')
            ->simple(TextInput::make('filterableAttributes'))
            ->grid(2)
            ->statePath($arguments['index'].'-filterableAttributes')
            ->key($arguments['index'].'-filterableAttsssributes')
    ];

})


it looks like any sup request will lose all the data in
$arguments
$arguments
Solution
NOW I CAN SLEEEEEEP 😂
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

Is it possible to have a repeater inside another repeater?
FilamentFFilament / ❓┊help
2y ago
Is it possible to Mod a Repeater?
FilamentFFilament / ❓┊help
7mo ago
Is it possible to load a table inside an Action Form?
FilamentFFilament / ❓┊help
2y ago
Is it possible to put action form input field next to action button in a table row?
FilamentFFilament / ❓┊help
2y ago