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
Alex ShAlex Sh 

select checboxes

Hi All,
I have a VF page witn drop-down field "Selection" (value1 - 'All'; value2 - 'Partial') and a list of objects. For each object there is a checkbox. If value1 - 'All' is selected in drop-down - all of checboxes should be checked in list. If value2 - 'Partial' is selected in drop-down - than I need to select at least one checkbox.
How can I do this?
Thanks!
Best Answer chosen by Alex Sh
Alex ShAlex Sh
Thank you for response.
Yes, I understand that I need to use wrapper class. But how exactly I need to do this?

All Answers

alibzafaralibzafar
Use wrapper class in your Apex Controller to do this. 

Thanks 
Alex ShAlex Sh
Thank you for response.
Yes, I understand that I need to use wrapper class. But how exactly I need to do this?
This was selected as the best answer