© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Raj Siva-Rajah

Using $get to get the state of parent form fields in repeaters

Hi all

Is there a way of getting the state of a parent form field in a closure in a repeater field? Eg this doesn't work:

TextInput::make('title')
    ->live(),

Repeater::make('members')
    ->schema([
        TextInput::make('test')
            ->label(function (Get $get) {
                return $get('title');
            })
    ])
TextInput::make('title')
    ->live(),

Repeater::make('members')
    ->schema([
        TextInput::make('test')
            ->label(function (Get $get) {
                return $get('title');
            })
    ])
Solution
https://filamentphp.com/docs/3.x/forms/fields/repeater/#using-get-to-access-parent-field-values
Repeater - Form Builder - Filament
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get form state of 'parent' form inside a relationship
FilamentFFilament / ❓┊help
11mo ago
Computed state in form fields.
FilamentFFilament / ❓┊help
15mo ago
Access form fields state in block preview
FilamentFFilament / ❓┊help
13mo ago
->hidden() Fields Still Get Dehydrated in Repeaters – Bug or Feature?
FilamentFFilament / ❓┊help
9mo ago