How to validate a modal form before extraModalFooterActions runs?
I have a modal with a form and a custom footer button. I need to validate the form when this custom button is clicked, before its own logic runs.
However, the action's ->before() hook is never triggered, so I can't run validation.
Here is a simplified example of my code:
Is there a way to validate the form before proceeding to the modal footer action? (I don't want to validate by ->required())
However, the action's ->before() hook is never triggered, so I can't run validation.
Here is a simplified example of my code:
Is there a way to validate the form before proceeding to the modal footer action? (I don't want to validate by ->required())