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
t.deepthi05t.deepthi05 

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

-->fruits
     ==Apple
     ==Mango
     ==orange
-->Vegetables
     ==potato
     ==tomato

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.


Thanks,
Himanshu
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.