json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

onChange is not able to update schemaForm #948

Closed chakraborty-slx closed 6 years ago

chakraborty-slx commented 6 years ago

https://plnkr.co/edit/AHemml?p=preview

I am trying to use onChange and update the schema values, but i don't see any changes, can someone point me what is wrong in it. `
$scope.schema.properties.processor = ['dym', 'dym1'];

$scope.form = angular.copy($scope.originalForm);

$scope.$broadcast('schemaFormRedraw'); ` If I change the platform , i want to update the processors with new values. But the controls itself is changing to Textbox from Select.

Anthropic commented 6 years ago

$scope.schema.properties.processor = ['dym', 'dym1']; should be $scope.schema.properties.processor.enum = ['dym', 'dym1'];