Custom Action in the Resource Edit Page
I’m new to Filament but so impressed with what it can do. Working on an Application resource & need a custom action “Finalize Application” next to the Save changes button of the EditApplication page.
The experience is for the user to save draft changes with the normal EditAction button & use the custom action button when they are ready to finalize their application and be done making changes. In the Edit page I added the custom action under getFormActions() and for action() it calls a finalize method.
I need to access the mutateFormDataBeforeSave() & getRedirectUrl() to change status and redirect to index when the custom action button is clicked. How do I do that and NOT trigger it when the normal Edit Action Save changes button is clicked?
The experience is for the user to save draft changes with the normal EditAction button & use the custom action button when they are ready to finalize their application and be done making changes. In the Edit page I added the custom action under getFormActions() and for action() it calls a finalize method.
I need to access the mutateFormDataBeforeSave() & getRedirectUrl() to change status and redirect to index when the custom action button is clicked. How do I do that and NOT trigger it when the normal Edit Action Save changes button is clicked?