How to add two Create Form Actions

I have a resource and inside create page I am defining create form action in header actions. But the action does not work for some reason, however the default form action works as expected.

following action does not work:

class CreateCategory extends CreateRecord
{
    protected static string $resource = CategoryResource::class;

    protected function getHeaderActions(): array
    {
        return [
            $this->getCreateFormAction(),
        ];
    }
}


Am i missing something or doing something wrong here?
Was this page helpful?