© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Darkavatar23

Action Of TextInput

hi i have this piece of code, what im doing wrong ? because on the repeater or normal form suffixAction or hintAction works well, but inside the fieldset didnt work anything
Components\Fieldset::make('qr')
    ....
    ->schema([
        ...
        Components\TextInput::make('qr_link')
            ->label("Link Diretto")
            ->columnSpanFull()
            ->hintAction( // This not work Hint or suffix//
                Action::make('copyCostToPrice')
                    ->icon('heroicon-m-clipboard')
                    ->requiresConfirmation()
                    ->action(function ($livewire, $state) {//never reached
                                $livewire->js("
                                        window.navigator.clipboard.writeText('" . $state . "');
                                    ");
                                dd('copied');
                            })
            ),
        Components\Repeater::make('links')
            ->schema([
                ....
                Components\TextInput::make('link')
                    ->suffixAction( //This Work
                        Action::make('copy')
                            ->icon('heroicon-s-clipboard-document-check')
                            ->action(function ($livewire, $state) {
                                $livewire->js("
                                        window.navigator.clipboard.writeText('" . $state . "');
                                    ");
                            })
                    )
                    ->label("")
                    ->columnSpan(1)
                    ->readOnly()
            ])
    ]),
Components\Fieldset::make('qr')
    ....
    ->schema([
        ...
        Components\TextInput::make('qr_link')
            ->label("Link Diretto")
            ->columnSpanFull()
            ->hintAction( // This not work Hint or suffix//
                Action::make('copyCostToPrice')
                    ->icon('heroicon-m-clipboard')
                    ->requiresConfirmation()
                    ->action(function ($livewire, $state) {//never reached
                                $livewire->js("
                                        window.navigator.clipboard.writeText('" . $state . "');
                                    ");
                                dd('copied');
                            })
            ),
        Components\Repeater::make('links')
            ->schema([
                ....
                Components\TextInput::make('link')
                    ->suffixAction( //This Work
                        Action::make('copy')
                            ->icon('heroicon-s-clipboard-document-check')
                            ->action(function ($livewire, $state) {
                                $livewire->js("
                                        window.navigator.clipboard.writeText('" . $state . "');
                                    ");
                            })
                    )
                    ->label("")
                    ->columnSpan(1)
                    ->readOnly()
            ])
    ]),

when i press the action icon livewire do the classic update, so i think im missing something .
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

add textinput beside action
FilamentFFilament / ❓┊help
12mo ago
TextInput with follow action
FilamentFFilament / ❓┊help
2y ago
Type of TextInput numeric()
FilamentFFilament / ❓┊help
3y ago