© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
5 replies
Arnold Schwarzenegger

Get input value in suffix action

Ok I'm probably missing something obvious, but how do you get the
TextInput
TextInput
value in a
suffixAction
suffixAction
?
    public function infolist(Schema $schema): Schema
    {
        return $schema
            ->statePath('data')
            ->components([
                TextInput::make('foobar')
                    ->live()
                    ->suffixAction(
                        Action::make('update')
                            ->label('Update')
                            ->action(fn(Get $get, $state, $data, $value) => dd($value, $data, $state, $get('foobar')) // All empty
                            )
                    ),
            ]);
    }
    public function infolist(Schema $schema): Schema
    {
        return $schema
            ->statePath('data')
            ->components([
                TextInput::make('foobar')
                    ->live()
                    ->suffixAction(
                        Action::make('update')
                            ->label('Update')
                            ->action(fn(Get $get, $state, $data, $value) => dd($value, $data, $state, $get('foobar')) // All empty
                            )
                    ),
            ]);
    }


FWIW, this is a custom page but inside a resource
Solution
Hey thanks for the reply. It was missing the
public array $data
public array $data
declaration. I thought since it was extending
Filament\Pages\Page
Filament\Pages\Page
, it would already have that
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

Input Blade Component Suffix Action
FilamentFFilament / ❓┊help
13mo ago
Suffix Action in Repeater Field
FilamentFFilament / ❓┊help
16mo ago
suffix action in the wrong place
FilamentFFilament / ❓┊help
14mo ago
Suffix Action on table
FilamentFFilament / ❓┊help
3y ago