Hi team,
I am working on form in that form
1)ejs-uploader(Browse button)
2)ejs-dropdownlist
3)ejs-textbox
4) ejs-button
this all component are enclosed in <form> tag
problem is not able to disable upload button,while not selecting any file.
Hi Sunil,
We have validated your reported query and prepared the sample based on your requirement. Please refer the below code snippet and sample.
[app.component.html]:
|
<button ejs-button [disabled]="!reactForm.valid" >Sync Button</button> |
Sample link: https://stackblitz.com/edit/angular-pijakq?file=app.component.html
Could you please check the above sample/code and get back to us, if you need any further assistance on this.
Regards,
YuvanShankar A
Hi, Thanks for update.
but here i if i not select any file ,and provide value for dropdownlist and textbox,upload button is enabled. i want disabled upload button if any value is not selected.
Hi Sunil,
We have validated your reported query and prepared the based on your requirement. Please refer the below code snippet and sample and ensure to add required field in the form control for uploader.
[app.component.ts]:
|
ngOnInit() { this.form = this.formBuilder.group({ name: [null, Validators.required], email: [null, [Validators.required, Validators.email]], mobile: [null, [Validators.required, Validators.minLength(10)]], upload: [null, Validators.required], }); } |
Sample link: https://stackblitz.com/edit/angular-qbc5ys?file=app.component.ts
Could you please check the above sample code and get back to us, if you need any further assistance on this.
Regards,
YuvanShankar A
Hello,
I want to disabled and enabled control (ejs-uploader) based on condition. I need two way binding like this
Hi Ishani,
We have created a new forum for your query, please follow-up using the link below,
Regards,
Shereen