You need to sign in to do that
Don't have an account?
How to hide the Required field symbol in visualforce page
Hi All,
I need Required input field in visual force. I given as Required = "true".
<apex:inputField value="{!reg.Confirm_Password__c}" style="margin-left:-400px;" required="true"/>
It's working. But i don't want " | " this symbol as red mark. I want Star symbol as red color. Here, i am using <sup Style="color:Red">*</sup> tag for Star symbol. How to hide the " | " symbol.
Thanks in advance
Thulasi
I need Required input field in visual force. I given as Required = "true".
<apex:inputField value="{!reg.Confirm_Password__c}" style="margin-left:-400px;" required="true"/>
It's working. But i don't want " | " this symbol as red mark. I want Star symbol as red color. Here, i am using <sup Style="color:Red">*</sup> tag for Star symbol. How to hide the " | " symbol.
Thanks in advance
Thulasi
Make Required="false"
And before inputfield tag use this.
<span style="Color:red;font-size: 150%">*</span>
Thanks for ur reply,
My problem is, i am using inputFields in table format. I set all fields in one format. finally, i given requred to one field. But, the red mark is not showing beside the inputfield. it is showing some outside.
<apex:pageBlockSectionItem id="pbsi13">
<apex:outputText value="Website" />
<apex:outputPanel layout="block" styleClass="requiredInput">
<span style="Color:red;font-size: 150%">*</span>
<apex:inputField value="{!Account.Website}" label="Website" required="false" />
</apex:outputPanel>
</apex:pageBlockSectionItem>
screenshot: