I am unable to make input file field required as like standard required in salesforce.
I am not using any javascript for this.
I have set Required Attribute to True. But the error occurring when I don't select a file is not user friendly.
Can anyone help me out for this?
See here for an example of the error message.
Best Answer
Use the
required
attribute - Quoting the official documentation