+ Start a Discussion
himanshu huske 7himanshu huske 7 


I Have Fields First name, last name, and file upload.
file only get upload when firstname last name are populated.
so I want to show a message "enter first name and last name" when we try to upload file without first name and last name
in aura component
VinayVinay (Salesforce Developers) 
Hi Himanshu,

You can write validation for empty value in first and last name.

You may implement in two ways:
1. Use JS to validate that first name, last name etc. are not null
2. Don't enable the upload button until user has filled the necessary fields