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

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 ( - anyone know how to do this in the VF page instead?