You need to sign in to do that
Don't have an account?

red mandatory symbol for picklist field
Hello,
I have a picklist fields. I have added validation rule to check if the field has some value. But i want to have the red icon adjacent to the field like other mandatopry field has
I have a picklist fields. I have added validation rule to check if the field has some value. But i want to have the red icon adjacent to the field like other mandatopry field has
Hi Sandrine,
You can make picklist field mandatory from the Record Page Layout.
Go to your picklist field, a wrench is displayed when you highlight the field on the page layout and select the Required checkbox and save.
Please, let me know if this helps.
All Answers
Hi Sandrine,
You can make picklist field mandatory from the Record Page Layout.
Go to your picklist field, a wrench is displayed when you highlight the field on the page layout and select the Required checkbox and save.
Please, let me know if this helps.
You can mark it red by using the <apex:InputField> tag, include the required="true" attribute
<apex:inputField ..... required="true">
when you put it on the VF page
Thanks
Anand
If your using Selectlist tag mark requied field with red color as below.
<div class="requiredInput" >
<apex:outputpanel >
<div class="requiredBlock"/>
</apex:outputpanel>
<apex:selectList value="{!selctValue}" multiselect="false" size="1" required=true" >
<apex:selectOptions value="{!lstValues}" />
</apex:selectList>
</div>
If your <apex:InputField> tag, include the required="true" attribute
<apex:inputField value="{!val}" required="true">
If you get the answer, please mark it as the correct answer. It will be a help to others who are facing the same problem later.
Best Regards,
-Vivek
I am using standard page. No VF