FilamentF
Filament7mo ago
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()
            ]);
    }


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

How do I properly make a save button for the form? adding Action::make causes an error
Was this page helpful?