Using Actions in Forms as submit button

Hello,

currently I have my custom form defined as followed:
return $form
            ->schema([
                TextInput::make('Email')
                    ->type('email')
                    ->email()
                    ->label('Email')
                    ->required(),
                TextInput::make('Password')
                    ->label('Passwort')
                    ->required()
                    ->password(),
                Actions::make([
                    Action::make('register')
                        ->label('Registrieren')
                        ->button()
                    ->submit()
                ])->fullWidth()
            ])
            ->statePath('data');


I would somehow like to be able to define the action as the submit for the form. Is there any way I can achieve this?
Was this page helpful?