[SOLVED] Bug when creating new schema field -> "If you define both a name and a formControlName attribute on your radio button, their values must match."

hey:slightly_smiling_face:

im getting angular error when creating new schema field:

ERROR Error:
If you define both a name and a formControlName attribute on your radio button, their values
must match. Ex:

at RadioControlValueAccessor../node_modules/@angular/forms/fesm5/forms.js.RadioControlValueAccessor._throwNameError (forms.js:1287)
at RadioControlValueAccessor../node_modules/@angular/forms/fesm5/forms.js.RadioControlValueAccessor._checkName (forms.js:1281)
at RadioControlValueAccessor../node_modules/@angular/forms/fesm5/forms.js.RadioControlValueAccessor.ngOnInit (forms.js:1224)
at checkAndUpdateDirectiveInline (core.js:22001)
at checkAndUpdateNodeInline (core.js:23265)
at checkAndUpdateNode (core.js:23227)
at debugCheckAndUpdateNode (core.js:23861)
at debugCheckDirectivesFn (core.js:23821)
at Object.eval [as updateDirectives] (FieldWizardComponent.html:21)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:23813)

I’m submitting a:

  • [x] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

throwing the error above

Expected behavior

none errors.

Minimal reproduction of the problem

create new schema field with the last version.

Environment

  • [ ] Self hosted with docker
  • [x] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 2.0.2

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Thank you very much for your PR :slight_smile:

I found a few more places also.

1 Like