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
tganikumartganikumar 

How can we develop visualforce page with Radio buttons

Hi, I would like to display my visualforce page as like below 0(radio button) Name----------------- ---------------------------------------------------------------------------------- 0(raduo button) Class------------------ ---------------------------------------------------------------------------------------- 0(radio button) Subject-------------- -------------------------------------------------------------------------------------- If I select first radio button only name field enable all other fields should disable. Any help is Appreciated
Chamil MadusankaChamil Madusanka

Use following example

 

<apex:page >
  
  <apex:form >
      <apex:selectRadio layout="pageDirection">
          <apex:selectOption itemLabel="One" itemValue="1"></apex:selectOption>
          <apex:selectOption itemLabel="Two" itemValue="2"></apex:selectOption>
          <apex:selectOption itemLabel="Three" itemValue="3"></apex:selectOption>
          <apex:selectOption itemLabel="Four" itemValue="4"></apex:selectOption>
      </apex:selectRadio>
  </apex:form>
</apex:page>

 And you can use following link for more information

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_selectRadio.htm

 

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.