Hi, i’v created a form using Formik which contain 2 radio buttons. Yes and No. I got a request to make those <Radio /> buttons return Boolean value true or false. I’v manage to return ‘true’ or ‘false’ as a string but that is up to no good.
I use Yup for validation and in initalState for buttons i have -> accepted: true as initial value.
I have tried to put value on buttons ‘true’ and ‘false’ and then to use function to transform it to Boolean value, but again, i only get a string.
Anyone have some simple solution?