Validation/Pre-Action on Submit within a Wizard
Heya! I'm trying to have the Wizard I have created perform a step that occurs before or within the submit action that provides an additional piece of functionality. In this case, the task is to take a payment and if the payment fails, consider it 'validation failed' which displays a message on the screen and aborts the submit process.
What would be even better is that a modal pops up to handle this, but at this point I'm at the path of least resistance.
What would be even better is that a modal pops up to handle this, but at this point I'm at the path of least resistance.
- I have looked for any life cycle hooks and couldn't see any in the overarching Wizard class that are helpful.
- I have tried passing in 'Set' to the submit function and setting the validation error and then throwing Halt