You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, so I have a page which has a button called 'Email' when user selects the button, I open a confirmation popup prompting user if they want to go ahead with sending email or abort\cancel. When user presses 'Ok' to proceed, I call the handleSubmit() event where I need to access form element values esp. the email text user has entered. I need this to. pass it on to my API. I have no idea how to access these values? in normal JS we get this by e.g. var nameValue = document.getElementById("uniqueID").value; how do we get this from a Formik form?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Ok, so I have a page which has a button called 'Email' when user selects the button, I open a confirmation popup prompting user if they want to go ahead with sending email or abort\cancel. When user presses 'Ok' to proceed, I call the handleSubmit() event where I need to access form element values esp. the email text user has entered. I need this to. pass it on to my API. I have no idea how to access these values? in normal JS we get this by e.g. var nameValue = document.getElementById("uniqueID").value; how do we get this from a Formik form?
Beta Was this translation helpful? Give feedback.
All reactions