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
Neil KimNeil Kim 

List button, Visualforce page, How can I get the list that I checked.

Hello. I'd like to make custom button on list view, custom object.
It will update field value on all records that I checked.

So, I make custom button, and it's type is List button with visualforce page.

My question is,
How do I get the record lists that I checkd to visualforce code?
What variable is this data stored in?

please give me some sample code..
visualforce page, and that controller setting are maybe really helpful for me.

Thanks in advance.
Best Answer chosen by Neil Kim
V V Satyanarayana MaddipatiV V Satyanarayana Maddipati
Hi Kim,

I recommend you to change the list view button behavior to "Execute Javascript" and content source to OnClick Javascript . 

and follow this blog for further info: https://force201.wordpress.com/2014/07/23/how-to-pass-a-large-number-of-selections-from-a-standard-list-view-to-a-visualforce-page/

Thanks
Satya.

All Answers

V V Satyanarayana MaddipatiV V Satyanarayana Maddipati
Hi Kim,

I recommend you to change the list view button behavior to "Execute Javascript" and content source to OnClick Javascript . 

and follow this blog for further info: https://force201.wordpress.com/2014/07/23/how-to-pass-a-large-number-of-selections-from-a-standard-list-view-to-a-visualforce-page/

Thanks
Satya.
This was selected as the best answer
Neil KimNeil Kim
Thanks Satya. It's helpful.