Have any idea to turn radio input value to boolean? #1903
-
it does look like the input radio type value alway return string , even value setted to boolean type
so when submitting form data, it will get string type is any idea to change value type from react-hook-form ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is native input behavior. however you can use Controller to parse value: https://codesandbox.io/s/react-hook-form-parse-and-format-textarea-furtc |
Beta Was this translation helpful? Give feedback.
-
@wildfrontend: sounds just like my earlier question about transforming the value returned by a controller. |
Beta Was this translation helpful? Give feedback.
This is native input behavior.
however you can use Controller to parse value: https://codesandbox.io/s/react-hook-form-parse-and-format-textarea-furtc