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
Good afternoon. I am using Formik in my React js project. I'm doing a multi-step form. The form has 2 inputs where the user selects a start and end date. And then I need to put this data into an object of a certain structure to send a post request. But I'm using the tag and my input data is only inside it. How do I raise this data above and add it to the object?
The component looks like this:
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
-
Good afternoon. I am using Formik in my React js project. I'm doing a multi-step form. The form has 2 inputs where the user selects a start and end date. And then I need to put this data into an object of a certain structure to send a post request. But I'm using the tag and my input data is only inside it. How do I raise this data above and add it to the object?
The component looks like this:
That is, I need to take the start_date and end_date from the formik values add pass them to an object sqlRequest.
Help me, please
Beta Was this translation helpful? Give feedback.
All reactions