© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
11 replies
Gohan

Input Blade Component Suffix Action

How do i add a suffix action to my input blade component?
<x-filament-forms::field-wrapper>
    <x-filament-forms::field-wrapper.label>
        Redirect Link
    </x-filament-forms::field-wrapper.label>
    <x-filament::input.wrapper>
        <x-filament::input type="text" wire:model="redirect_link" />
    </x-filament::input.wrapper>
</x-filament-forms::field-wrapper>
<x-filament-forms::field-wrapper>
    <x-filament-forms::field-wrapper.label>
        Redirect Link
    </x-filament-forms::field-wrapper.label>
    <x-filament::input.wrapper>
        <x-filament::input type="text" wire:model="redirect_link" />
    </x-filament::input.wrapper>
</x-filament-forms::field-wrapper>


My goal is to have a suffix action that copies whatever text is in the input field.
Solution
yeah, apparently i could do it like this:
@livewire('email-modal')
@livewire('email-modal')


i don't know why i made my life so difficulat. anyway, just have to include the implements and use
class EmailModal extends Component implements HasForms, HasActions
{
    use InteractsWithForms, InteractsWithActions;
class EmailModal extends Component implements HasForms, HasActions
{
    use InteractsWithForms, InteractsWithActions;


edit:
i have a viewfield and in that viewfield, i'm displaying another livewire component with more filament forms calling the method form(). trying to display the livewire component as is will wreck your app.

you have to define a form with a different name and give it a different state path like in here: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component
Adding a form to a Livewire component - 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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Input Blade Component Label
FilamentFFilament / ❓┊help
13mo ago
Get input value in suffix action
FilamentFFilament / ❓┊help
5mo ago
Input and dropdown blade component
FilamentFFilament / ❓┊help
3y ago
Blade Component
FilamentFFilament / ❓┊help
12mo ago