How to change the value of React-Select using React-Hook-Form #4973
-
I'm using react-hook-form to manage my forms I want to change the value of react-select with external conditions but how do I do this with react-hook-form The code sample I've written. I want to get the selected value on the radio and set it to react-select https://codesandbox.io/s/react-hook-form-controller-v5-forked-ndh54?file=/src/index.jsx note: if the react-select value changes, the radio does not need to be changed either. the main purpose is to manipulate react-select from radio |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you can use |
Beta Was this translation helpful? Give feedback.
you can use
setValue
apihttps://react-hook-form.com/api/useform/setvalue