+ Start a Discussion

Radio within a Radio Button

I am displaying radio button is visualforce page.I have a requirement where when i click a radio button value it has populate it child radio buttons under it. i.e in the following way


So from the above example initially it has to display fruits and vegetables when i click on fruits(Apple,Mango,Orange) have to display and when vegetable is selected (Potato,tomato) have to be displayed
Himanshu ParasharHimanshu Parashar
Hi Deepthi,

You can achieve this using <actionfunction> method and rerender attributes. here are the steps.

1. Onselect event of fruits you can pass that value to controller and popuplate child items same thing for Vegetables.

Let me know if you need more details.

Salesforce Certified Developer | Administrator | Service Cloud Consultant

P.S.  If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.