formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.23k stars 406 forks source link

Formly field value depends on another field value #768

Open Ahmadburghol opened 6 years ago

Ahmadburghol commented 6 years ago

Hi,

am trying to change field value that depends on another field value,

`expressionProperties: {

        'templateOptions.onChange': function($viewValue, $modelValue, $scope) {

          COMPONENT.myForm.controls['anotherField'].setValue('hi');

        }

}` after the execution of this function, the value changed but the console gives me this errors

Thanks,

avbentem commented 6 years ago

Not a solution to your problem, but: adding a line debugger; to your code might actually change the error message into something like ERROR RangeError: Maximum call stack size exceeded.

(Also: I feel this issue needs a much more descriptive title. And what progress did you meanwhile make?)