Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Formly field value depends on another field value #768

Open
Ahmadburghol opened this issue Feb 19, 2018 · 1 comment
Open

Formly field value depends on another field value #768

Ahmadburghol opened this issue Feb 19, 2018 · 1 comment

Comments

@Ahmadburghol
Copy link

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

  • ERROR failed to convert exception to string
  • ERROR CONTEXT failed to convert exception to string

Thanks,

@avbentem
Copy link

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?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants