ERROR Error: No value accessor for form control with name: 'recaptchaReactive'
See original GitHub issueI am using the relative form approach ( Angular 5.2 ) :
@Component({
selector: ‘my-reactive-form’,
template: <form [formGroup]="reactiveForm"> <re-captcha formControlName="recaptchaReactive"></re-captcha> <button [disabled]="reactiveForm.invalid">Submit</button> </form>
,
}) export class MyReactiveForm {
reactiveForm: FormGroup;
ngOnInit() { this.reactiveForm = new FormGroup({ recaptchaReactive: new FormControl(null, Validators.required) }); } Error : ERROR Error: No value accessor for form control with name: ‘recaptchaReactive’
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
No value accessor for form control with name - Stack Overflow
In the component, I have the following. loginForm = new FormGroup({ email: new FormControl('', [ Validators ...
Read more >no value accessor for form control with name - You.com
I fixed this error by adding the name="fieldName" ngDefaultControl attributes to the element that carries the [(ngModel)] attribute. Open side panel. No value...
Read more >[Solved]-No value accessor for form control with name
Coding example for the question No value accessor for form control with name: 'eventGraphicAttachment'-angular.js.
Read more >No Value Accessor Error in Angular Tests - Damir's Corner
Error : No value accessor for form control with unspecified name attribute. The call stack wasn't helpful at all. It included only Angular ......
Read more >ERROR Error: No value accessor for form control with name
I am using the relative form approach ( Angular 5.2 ) : @Component({ selector: 'my-reactive-form', template:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try it with importing the RecaptchaFormsModule in your module.
@Jayeshneema1 @cfood do you still see this issue? If so, could you provide code sample that results in this error?