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
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
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
How to do