New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-fill model value - set multiple values #941
Comments
https://github.com/json-schema-form/json-schema-form/wiki/Documentation#copyvalueto This might help. Other than possibly needing a $scope.$apply() though, I don't see anything wrong with your code or why it wouldn't work like you are expecting. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Question
I have multiple yes/no radio buttons and I have one that I want to use to set the values for all the others, a "All Yes/All No" radio button. I have a callback on the change to set the model values, but it doesn't actually update the ui.
I also have a need to be able to pre-populate the form with saved answers if a user comes back to the form, which I assume will be a similar function.
How do I set the model value and get the ui to update with the correct values?
Here is what I'm doing when the user toggles the all yes/no radio.
Here is my form schema for that particular all yes/no field
The text was updated successfully, but these errors were encountered: