© 2026 Hedgehog Software, LLC

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

Adding an Action to a Form Section?

Have been trying to add an action to form sections but have been unsuccessful, any solutions?

protected function getFormSchema(): array
    {
        return ([
            Section::make('Modify Balance')
            ->schema([
                TextInput::make('bal_subscriberId')->label('Subscriber ID'),
                TextInput::make('bal_amount')->label('Amount'),
                Checkbox::make('bal_setBalance')->label('Set Balance'),
                TextArea::make('bal_description')->label('Description'),
            ]),
        Action::make('updateBalance')
            ->label('Update Balance')
            ->action('updateBalance'),
            Section::make('Modify Package Limits')
                ->schema([
                    TextInput::make('limit_packageId')->label('Package ID'),
                    TextInput::make('limit_dataBytes')->label('Data Bytes (in bytes)'),
                    TextInput::make('limit_moCalls')->label('MO Calls (in seconds)'),
                    TextInput::make('limit_mtCalls')->label('MT Calls (in seconds)'),
                    TextInput::make('limit_moSms')->label('MO SMS'),
                    TextInput::make('limit_mtSms')->label('MT SMS'),
                    TextArea::make('limit_comment')->label('Comment'),
                ]),
            Action::make('modifyPackageLimits')
            ->label('Modify Package Limits')
            ->action('modifyPackageLimits')
protected function getFormSchema(): array
    {
        return ([
            Section::make('Modify Balance')
            ->schema([
                TextInput::make('bal_subscriberId')->label('Subscriber ID'),
                TextInput::make('bal_amount')->label('Amount'),
                Checkbox::make('bal_setBalance')->label('Set Balance'),
                TextArea::make('bal_description')->label('Description'),
            ]),
        Action::make('updateBalance')
            ->label('Update Balance')
            ->action('updateBalance'),
            Section::make('Modify Package Limits')
                ->schema([
                    TextInput::make('limit_packageId')->label('Package ID'),
                    TextInput::make('limit_dataBytes')->label('Data Bytes (in bytes)'),
                    TextInput::make('limit_moCalls')->label('MO Calls (in seconds)'),
                    TextInput::make('limit_mtCalls')->label('MT Calls (in seconds)'),
                    TextInput::make('limit_moSms')->label('MO SMS'),
                    TextInput::make('limit_mtSms')->label('MT SMS'),
                    TextArea::make('limit_comment')->label('Comment'),
                ]),
            Action::make('modifyPackageLimits')
            ->label('Modify Package Limits')
            ->action('modifyPackageLimits')
Solution
Run
composer about
composer about
and see what filament version you are on. You may be on a version before that was introduced.
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

Adding an action to a repeater.
FilamentFFilament / ❓┊help
3y ago
Adding a form in a filament php infolist section in action headers
FilamentFFilament / ❓┊help
2y ago
Adding a Group Action in a section header
FilamentFFilament / ❓┊help
10mo ago
Adding an action to a form in a livewire component not working
FilamentFFilament / ❓┊help
3y ago