+ Start a Discussion

Add Red "Required" Line conditionally

I have a custom picklist in a Visualforce page that is conditionally required. When it is required, I want to display the standard red "required" line that you see in Salesforce pages. Using the code below, I've added in the red line. However, I'm at a loss as to how to make it conditional. Does anyone have any advice for how to add in a condition statement? Thanks!

<apex:column headerValue="{!$ObjectType.QuoteLineItem.Fields.AdServer__c.Label}" rendered="{!s.qLine.PricebookEntry.Product2.DisplayAdServer__c}" style="vertical-align:top">
                <apex:outputPanel >              
                <div class="requiredInput">
                    <div class="requiredBlock"></div>
                  <apex:selectList value="{!s.qLine.AdServer__c}" required="{!s.qLine.PricebookEntry.Product2.RequiredAdServer__c}" multiselect="false" size="1">
                      <apex:selectOptions value="{!s.adServerOptions}"/>
Blake TanonBlake Tanon
Is RequiredAdServer boolean?  if so this will work...