You need to sign in to do that
Don't have an account?
How I can mark Input file tag as Required when submiiting form
Hi ,
I found that required attribute doesn't work with <apex:inputFile />.
I want to put error Message for it to User. I dont want to use javascript as on page other
fields are also with required attribute. I want to Sync all Error Messages on Page when submitting
Submit button.
Other way is to use Apex function to show Message.But I think it is not solution which i want.
Your help will be most appreciated.
Thanks,
Kirtesh
There is a required attribute for this field:
since it is a java.lang.Boolean you may need to write its value in capital letters.
Here is a link, its very useful, contains the reference for all the apex tags.
Just look for the fileinput tag on the left sidebar to see all its attributes.
https://na7.salesforce.com/apexpages/apexcomponents.apexp
I know already that required attribute is given for input file.but it is not working..
you did practical with it .
Thanks for reply.
Kirtesh