How to display radio buttons in vertical direction in Salesforce

To display checkbox options in vertical direction, layout property is used.

Example:

<apex:selectRadio value="{!searchCategory}" layout="pageDirection" >
    <apex:selectOption itemValue="Member__c" itemlabel="Member"/>
    <apex:selectOption itemValue="Blog__c" itemlabel="Blog"/>
    <apex:selectOption itemValue="Photo__c" itemlabel="Photo"/>
</apex:selectRadio>


Cheers!!!

No comments:

Post a Comment