I\'m trying to add an external function to my formik form submit button. But the submit button is calling the function without validating the form.
I\'ve tried: