+ 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.