Replies: 1 comment
-
You could
<Formik onSubmit((data) => writeToDb(uID, {acceptedTerms: (data.terms ? "1" : "0"), /*...*/ }
//... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Formik output checkbox value as true (if checked) or false (unchecked). How can I convert the output to '1' or '0' for checkbox as database query require it to be string format instead of boolean. I am using Yup schema to define it as follows:
bombillazo pls help. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions