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
Nitish 73Nitish 73 

Pass Select checkbox parameters to Controller

Hi All,

I have a visualforce page which displays thumbnails of the attached images to that record. I put up checkboxes under each thumbnail to select the ones the user wants to delete, and have a remove button at the bottom. I want to pass the parameters of the selected checkboxes into the controller and delete only the selected ones. How can I achieve this ?

Any help is much appreciated. Thanks
Best Answer chosen by Nitish 73
sharathchandra thukkanisharathchandra thukkani
You can use wrapper class for this where checkbox and attachment object can be wrapped together and do the things. 

Refer below link 

https://developer.salesforce.com/page/Wrapper_Class

All Answers

sharathchandra thukkanisharathchandra thukkani
You can use wrapper class for this where checkbox and attachment object can be wrapped together and do the things. 

Refer below link 

https://developer.salesforce.com/page/Wrapper_Class
This was selected as the best answer
Nitish 73Nitish 73
Thanks Sharath. I got it working now. Much appreciated