+ Start a Discussion
raju123raju123 

Radio buttons in Standard Page

Hi,

 

Can any body tell me is there any possibility of using radio buttons in Standard Page(on Object).Please can any body give me response because this is an urgent task

 

Thanks,

Raju

Hengky IlawanHengky Ilawan

Hi,

 

No. unless you use visualforce page.

You can use HTML radio buttons and assign the selected value to a pick list field using javascript.

 

Regards,

Hengky

jd123jd123

Hi

 

 There is no Radio button datatype in salesforce.you can do throw visualforce page it very simple.

 

 Sample code

 

          <apex:selectRadio value="{!answer}">
           <apex:selectOptions value="{!items}"/>
           </apex:selectRadio>

 

Public String answer{set;get;}

public List<SelectOption> getItems() {
       List<SelectOption> options = new List<SelectOption>(); 
       options.add(new SelectOption('Yes','Yes')); 
       options.add(new SelectOption('No','No')); 
       return options; 
   } 

 

you will get the selected value from answer.

 

 

raju123raju123

Thank you very much

raju123raju123

Thank yoy jd

jd123jd123

Once your solution has done please mark it as accept as a solution.