You need to sign in to do that
Don't have an account?
SurajCovelix
Making a field required on the VF page not working
Hi,
I am trying to make a field required in my VF page but its not working for some reason.
VF code :
<apex:outputLabel value="First Name" for="firstname"/>
<apex:outputPanel styleClass="requiredInput" layout="block" id="pwPanel" >
<apex:outputPanel styleClass="requiredBlock" layout="block"/>
<apex:inputText value="{!FirstName}" id="firstname" required="true"/>
</apex:outputPanel>
What's the matter?
Hi,
Please see this working code :-
Hi
Thease are the links you can refer for your requirement.
http://boards.developerforce.com/t5/Visualforce-Development/Required-Mark-for-a-input-text-field-in-a-visualforce-page/m-p/245659#M32212
http://boards.developerforce.com/t5/Visualforce-Development/inputText-with-required-quot-true-quot-doesn-t-generate-a/m-p/93162#M5884
Did this post answers your question ..if so please mark it as solution
Thanks
field required will work for only input field not for output field
Highlight it
required="true"