When using Formik in a React application, with a form that has multiple buttons defined like this:
<button type="submit" name="action" value="unlock">Unlock account</button>
<button type="submit" name="action" value="delete">Delete account</button>
How do I obtain the name and/or value of the pressed button?
I did tried adding the field action to my initialValues, but it remains blank.