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

Processing related list checkboxes from a custom button

I can't seem to find the answer to this anywhere.  I've got a related list with checkboxes for mutli-select, along with a custom button called Do Anything (see the image below).


I'm trying to understand how to recognize, in the coding of the button, which checkboxes were checked and which were not.  This seems trivial but I can't find any supporting documentation about this anywhere.







GETRECORDIDS is the solution

You can find an example in the online help by looking for "Getting Record IDs"


and, in the visualforce documentation:


and, since your VF code would be passed a standard set controller, then in the Apex documentaion:


(and you can see that the {!selected} in the VF documentation refers to the getSelected() method on the list controller you're being passed.)


best, Steve.

Perfect, thanks all!



Could you get the soltution for accessing checkboxes in the related list in your controller. Please provide some inputs for the same.



MLamb2005 wrote:
Perfect, thanks all!