© 2026 Hedgehog Software, LLC

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

Form Wizard with dynamic enabled/disabled submit button

I have a Filament Resource Form for creating a record.
This Form contains a Wizard with a few steps.
In the last step I need the submit button only to be enabled if a checkbox is checked.

I use the function getSubmitFormAction():

public function getSubmitFormAction(): \Filament\Actions\Action
{
return parent::getSubmitFormAction()
->disabled(function (Forms\get $get) {
return $get('confirm') == false;
});
}

Apparently this does not work:
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization

This makes sense to me, but how do I achieve the submit button to be enabled only if the checkbox is checked?

Any help would be very appreciated
Solution
make sure the checkbox is live()
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

Wizard submit button
FilamentFFilament / ❓┊help
3y ago
Wizard form submit
FilamentFFilament / ❓┊help
2y ago
Hide submit button on wizard
FilamentFFilament / ❓┊help
2y ago
Wizard form submit on next?
FilamentFFilament / ❓┊help
3y ago