How to set redio button checked by api response? #3494
-
I have one form contains some data which I need to populate data from API. I have wriiten the API and set it to get data via vuex. My form also contains some radio field which I need to set to checked according to API data.
My goal is to set any one of those radio if |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The field should be set to |
Beta Was this translation helpful? Give feedback.
The field should be set to
checked
automatically ifv-model
matches thevalue
of the radio button. Can you create a minimal example on codesandbox? (leave out the API bit).