function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
himanshu huske 7himanshu huske 7 

jhyui

Hi,
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.

Thanks,
RituSharmaRituSharma
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