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
shinerajbshinerajb 

Display Radio buttons vertically

Hai,

 

I want all these radio buttons vertically.Please do help me,now its coming horizontally

 

 

<apex:selectRadio id="typical" onclick="alert(this.value);" > <br/>
<apex:selectOption itemValue="0" itemLabel="Increasing Revenue" />
<apex:selectOption itemValue="1" itemLabel="Reducing Costs" />
<apex:selectOption itemValue="2" itemLabel="Reducing Time, Effort or Cycles for Employees" />
<apex:selectOption itemValue="3" itemLabel="Reducing Time, Effort or Cycles for Assets" />
<apex:selectOption itemValue="4" itemLabel="Reducing RIsk" />
</apex:selectRadio>

 

Shine

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

apex:selectRadio has an attribute named 'layout'.  If you set the value to 'pageDirection' the options will be laid out vertically.