EditForm - can't submit form action on set on form header actions

<?php

namespace App\Filament\Resources\FormResource\Pages;

use App\Filament\Resources\FormResource;
use App\Models\Form;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
use Filament\Support\Colors\Color;

class EditForm extends EditRecord
{
    protected static string $resource = FormResource::class;

    protected function getHeaderActions(): array
    {
        return [
            $this->getCancelFormAction()->icon('heroicon-o-backspace'),
            Actions\DeleteAction::make()->icon('heroicon-m-trash'),
            $this->getSaveFormAction()->icon('heroicon-m-cloud-arrow-down')->color(Color::Teal), // ⚠️ here doesnt save??? what
        ];
    }

    protected function getFormActions(): array
    {
        return [
            $this->getSubmitFormAction()->icon('heroicon-m-cloud-arrow-down')->color(Color::Teal), // ⚠️ here yes
            //
        ];
    }
}


if i click on the submit form action (form action) it saves the data
if i click on the submit form action (header action) it does nothing

objective: save the data in the header actions too
Was this page helpful?