© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
9 replies
jals65

TextInput with follow action

Hi, I'm traying to build a text input with a suffixAction that follows the url typed on the input.

\Filament\Forms\Components\TextInput::make('test')->url()->suffixAction(
            Action::make('follow-url')
                ->icon('heroicon-m-globe-alt')
                ->url(function ($data) {
                    return $data->url();
                })
                ->openUrlInNewTab()
        )
\Filament\Forms\Components\TextInput::make('test')->url()->suffixAction(
            Action::make('follow-url')
                ->icon('heroicon-m-globe-alt')
                ->url(function ($data) {
                    return $data->url();
                })
                ->openUrlInNewTab()
        )


How can I get the value typed on the text input?
Solution
->live()
->suffixAction(fn($state) => dd($state))
->live()
->suffixAction(fn($state) => dd($state))
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

Action Of TextInput
FilamentFFilament / ❓┊help
2y ago
add textinput beside action
FilamentFFilament / ❓┊help
12mo ago
Custom TextInput with suffix actions
FilamentFFilament / ❓┊help
2y ago
TextInput numeric with step
FilamentFFilament / ❓┊help
3y ago