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
anurajanuraj 

Radio Button in a Horizontal

Hi

Please tell me how to arrange radio button in Horizontal view.

And want to add action on it. I want to display some checkbox, radiobutton, textinput on the selection of the radiobutton

please help me.

Thanks

Anuraj

Best Answer chosen by Admin (Salesforce Developers) 
Chamil MadusankaChamil Madusanka

Hi,

 

Try this example.

 

<apex:selectRadio id="one" value="{!SelectedValue}" layout="pageDirection">
          <apex:selectOption itemValue="One" itemLabel="one"></apex:selectOption>
          <apex:selectOption itemValue="Two" itemLabel="two"></apex:selectOption>
          <apex:selectOption itemValue="Three" itemLabel="three"></apex:selectOption>         
      </apex:selectRadio>

 You need to add the attribute layout with the value 'pageDirection'

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

 

Chamil's Blog

All Answers

ReidCReidC
anurajanuraj

Hi

   I have created athe radioutton but it is in a row

eg :

Daily  , month , year

 

but i want them in 

Daily

month

year

 

Format so please help me.

thanks

Anuraj

Chamil MadusankaChamil Madusanka

Hi,

 

Try this example.

 

<apex:selectRadio id="one" value="{!SelectedValue}" layout="pageDirection">
          <apex:selectOption itemValue="One" itemLabel="one"></apex:selectOption>
          <apex:selectOption itemValue="Two" itemLabel="two"></apex:selectOption>
          <apex:selectOption itemValue="Three" itemLabel="three"></apex:selectOption>         
      </apex:selectRadio>

 You need to add the attribute layout with the value 'pageDirection'

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

 

Chamil's Blog

This was selected as the best answer