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');
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?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server