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
SH_OMSH_OM 

How to display an alert in VF from a list button if no records selected

I have a list button that appears on the enhanced list view and has "Display Checkboxes (for Multi-Record Selection)" checked.

It calls a VF page and it should present an error if no records are checked. The help docs show you how to do this in JS (https://help.salesforce.com/HTViewHelpDoc?id=links_useful_custom_buttons_mass_delete.htm&language=en_US) - anyone know how to do this in the VF page instead?