© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Ansori

How to make loading button on form submit?

Hello, I've created a custom page that implements the HasForm interface. However, I noticed that when I submit the form, the button does not display a loading or disabled indicator like when using the resource. I've attempted to add wire:loading.attr="disabled" to the filament button, but it still does not seem to be working. Does anyone have an idea?
<x-filament::page>
    <x-filament::form wire:submit.prevent="submit">

        {{ $this->form }}

        <x-filament::button type="submit" wire:loading.attr="disabled">
            Submit
        </x-filament::button>
    </x-filament::form>
</x-filament::page>
<x-filament::page>
    <x-filament::form wire:submit.prevent="submit">

        {{ $this->form }}

        <x-filament::button type="submit" wire:loading.attr="disabled">
            Submit
        </x-filament::button>
    </x-filament::form>
</x-filament::page>
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

disable submit button on form
FilamentFFilament / ❓┊help
3y ago
disable submit button on widget form
FilamentFFilament / ❓┊help
2y ago
Help: Loading indicator on submit button.
FilamentFFilament / ❓┊help
4mo ago
submit button not showing up on form?
FilamentFFilament / ❓┊help
2y ago