© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•9mo ago•
11 replies
o.m

How do I properly add save button to form?

    public function form(Form $form): Form
    {
        return $form
            ->schema([
                Section::make('Sent to existing users when they get added to a new group')
                    ->description('Add User Group')
                    ->schema(
                        collect($this->notification['options'])->map(function ($option) {
                            return RichEditor::make("formData.{$option['slug']}")
                                ->label($option['name'])
                                ->required()
                                ->columnSpanFull();
                        })->toArray()
                    ),
                View::make('filament.pages.components.edit-notification-footer'),
                Action::make('update')
                    ->label('Update')
                    ->requiresConfirmation()
            ]);
    }
    public function form(Form $form): Form
    {
        return $form
            ->schema([
                Section::make('Sent to existing users when they get added to a new group')
                    ->description('Add User Group')
                    ->schema(
                        collect($this->notification['options'])->map(function ($option) {
                            return RichEditor::make("formData.{$option['slug']}")
                                ->label($option['name'])
                                ->required()
                                ->columnSpanFull();
                        })->toArray()
                    ),
                View::make('filament.pages.components.edit-notification-footer'),
                Action::make('update')
                    ->label('Update')
                    ->requiresConfirmation()
            ]);
    }


This is my form function and I get this error
Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, Filament\Forms\Components\Actions\Action given
Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, Filament\Forms\Components\Actions\Action given


How do I properly make a save button for the form? adding Action::make causes an error
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

Add separate `save and run` button to Edit form
FilamentFFilament / ❓┊help
2y ago
Button Save and add
FilamentFFilament / ❓┊help
3y ago
Add action button to form
FilamentFFilament / ❓┊help
3y ago
Disable form and button save
FilamentFFilament / ❓┊help
13mo ago