Save form from a header action
Is it possible to save a form from a header action (or before a header action?
Let's say I have the following header actions in an edit form
Is there a way to submit the form before any of those actions is executed? Or somehow submit it inside the button action itself?
I tried this but it doesn't work
Or if there's a way to detect if a form has been changed and then ask for a confirmation to save before proceeding? Any ideas are welcome.
Let's say I have the following header actions in an edit form
Is there a way to submit the form before any of those actions is executed? Or somehow submit it inside the button action itself?
I tried this but it doesn't work
Or if there's a way to detect if a form has been changed and then ask for a confirmation to save before proceeding? Any ideas are welcome.