Use Action inside a custom field

Hello, i have a error in my custom field, because i have 2 form submit buttons.
Field:
class ObjectPaymentFunction extends Field
{
  protected string $view = 'forms.components.custom-field';
}


forms.components.custom-field.blade.php:
<x-dynamic-component
    :component="$getFieldWrapperView()"
    :field="$field"
>
  <div>
    {{ $this->billCreatedAction() }}
    <x-filament-actions::modals />
  </div>
</x-dynamic-component>


EditCustomer:
class EditCustomer extends EditRecord
{
  public function billCreatedAction(): Action
    {
        return Action::make('billCreated')
            ->label('Close')
            ->requiresConfirmation()
            ->action(function () {
                dd('billAction');
            });
    }
}


The error:
The action is shown correctly, also the modal is asking for confirmation.
But on confimation the save Button in the backgound on the create page is triggered. And the record is saved. But the modal is still open.

Is there a way to separate the "confimation form" on the edit page?
Was this page helpful?