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
sangam vvsangam vv 

Guys how to solve this scenario help me?

Scenario:I have list button if i select 10 records out of  100 i want to fetch those 10 record id from javascript list button?
cloudSavvyProgcloudSavvyProg
Hi Sangam,

You can use

var ids = {!GETRECORDIDS($ObjectType.Contact)};

This statement gets selected contact ids. So choose the relevant Object.

Some more info/articles that will help you.
https://force201.wordpress.com/2014/07/23/how-to-pass-a-large-number-of-selections-from-a-standard-list-view-to-a-visualforce-page/
https://developer.salesforce.com/forums/?id=906F00000009Bx3IAE

Hope this helps.

Regards,
CloudSavvyProg
sangam vvsangam vv
its fine same thing i have one more scenario if i select 10 records if i click Javascript (custom submit for approval) it will submit other wise want to populte error message?
How to do