You need to sign in to do that
Don't have an account?
Vigneshwaran Loganathan
hi frnz.
How to make apex:inputfile as required?
i have used the following code,
<apex:inputFile value="{!objAttachment1.body}" filename="{!objAttachment1.name}" required="true">
</apex:inputFile>
It dint workout. Any help on how to achieve this?
Thanks.
<apex:page controller="documentExt">
<apex:pageMessages />
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:inputFile value="{!d.body}" fileName="{!d.Name}" required="true"/>
<apex:commandButton value="Save" action="{!Save}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
--yvk