Transform object structure to id in onSubmit #2969
Unanswered
gadzhimari
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. There is a method called "mapValuesToPayload" in oldest version of Formik^ where we can map our structure into another when we submit the form. Let say, I have autocomplete component, which return array of objects
but my backend need only array of ids. Where you make this transformation, on submit callback or somethere else?
Beta Was this translation helpful? Give feedback.
All reactions