© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
lolmaheen

Helper Text as Action not working

in my resource file, in form under a field my helper text is rendering but i want to trigger an action when clicking on it

function in resource
public function testAction(): Action
    {
        return Action::make('test')
            ->requiresConfirmation()
            ->action(function (array $arguments) {
                dd('Test action called', $arguments);
            });
    }
public function testAction(): Action
    {
        return Action::make('test')
            ->requiresConfirmation()
            ->action(function (array $arguments) {
                dd('Test action called', $arguments);
            });
    }


PhoneInput::make('telephone')
                ->label('Phone')
                ->required()
                ->helperText(function () {

              

                    return view('forms.components.duplicate-hint' );
                })
                ->live(),
PhoneInput::make('telephone')
                ->label('Phone')
                ->required()
                ->helperText(function () {

              

                    return view('forms.components.duplicate-hint' );
                })
                ->live(),

blade file for helper text
@if(isset($duplicates) && $duplicates->isNotEmpty())
    <div>
        <button wire:click="mountAction('test', { id: 12345 })" style="color:red; text-decoration: underline;">
            Duplicate(s) found!
        </button>
    </div>
    <x-filament-actions::modals />
@endif
@if(isset($duplicates) && $duplicates->isNotEmpty())
    <div>
        <button wire:click="mountAction('test', { id: 12345 })" style="color:red; text-decoration: underline;">
            Duplicate(s) found!
        </button>
    </div>
    <x-filament-actions::modals />
@endif


but my action is not triggering
Solution
you should create this action in your pages, CreatePage, EditPage, because they are livewire components
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

Helper text
FilamentFFilament / ❓┊help
3y ago
TextColumn action not working as expected
FilamentFFilament / ❓┊help
2y ago
TextColumn action->button not working as expected
FilamentFFilament / ❓┊help
2y ago
Showing error in form field as helper text
FilamentFFilament / ❓┊help
3y ago