Add "Save/Create and Back" beside "Save/Create" button in edit and create page
I know how to change redirect url after submitting the form, but how to create another button for redirect to list after submitting the form?
2 Replies
Check how
getFormActions()
is done in CreateRecord
:
https://github.com/filamentphp/filament/blob/2.x/packages/admin/src/Resources/Pages/CreateRecord.php#L140-L147
If you copy this method in your own CreateItem
class, you can insert a custom action to do what you want.I think you're right... Thanks for the suggestion...