Skip to content

Transforming Field Values #3209

Answered by johnrom
genovese asked this question in Q&A
May 23, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Formik v3 will have parse and format props. You can test them out using version formik@next. I think they let you do exactly what you're requesting.

Here you would do

return <Field parse={unwrap} format={wrap} />

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@genovese
Comment options

Comment options

You must be logged in to vote
2 replies
@genovese
Comment options

@johnrom
Comment options

johnrom May 25, 2021
Collaborator

Answer selected by genovese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants