function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.