+ Start a Discussion
micwamicwa 

Required

I would like to make a dropdown field required but it doesn't display the red line.

Why does this not work?

 

<apex:pageBlockSectionItem > <apex:outputlabel>x</apex:outputlabel> <apex:selectList value="{!nam}" size="1" required="true"> <apex:selectOptions value="{!options}"/> </apex:selectList> </apex:pageBlockSectionItem>

 

 

 

micwamicwa

Actually the required works but instead the error looks strange, can I change that?

 

j_id0:j_id8:block:j_id40:j_id42:AccountName: Validation Error: Value is required.