@Jeff - Displaying the Required Red Bar for a Control


/ Published in: Other
Save to your folder(s)

Credits to Jeff Douglas


Copy this code and paste it in your HTML
  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>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.