Posted By

Xhitman on 08/19/10


Tagged

Visualforce


Versions (?)

@Jeff - Displaying the Required Red Bar for a Control


 / Published in: Other
 

URL: http://blog.jeffdouglas.com/2008/11/16/displaying-the-required-red-bar-for-a-control/

Credits to Jeff Douglas

  1. <apex:pageBlockSectionItem >
  2. <apex:outputLabel value="Category 1" for="cbxlevel1"/>
  3. <apex:outputPanel styleClass="requiredInput" layout="block">
  4. <apex:outputPanel styleClass="requiredBlock" layout="block"/>
  5. <apex:selectList value="{!selectedLevel1}" id="cbxlevel1" size="1" required="true">
  6. <apex:selectOptions value="{!level1items}"/>
  7. <apex:actionSupport event="onchange" rerender="cbxlevel2"/>
  8. </apex:selectList>
  9. </apex:outputPanel>
  10. </apex:pageBlockSectionItem>

Report this snippet  

You need to login to post a comment.