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
Parteek Goyal 3Parteek Goyal 3 

I want to add a pop up window on click when account is not selected

hi All,
I want to add a pop up window on click when account is not selected. this is a list view page of account. and i am adding a custom button there.User-added image
ManojjenaManojjena
HI Prateek ,

You want to display selected record in a vf page onclick of that button ,So you can display the error message in the Vf page no record selected .
and add an button to rever back to the list view .

Any way two  click event  required to user to  return back to the same position .
AshlekhAshlekh
Hi,

If you are adding a custom button on List view page then, You can write script while creating the button. And there is function "GETRECORDIDS()" which provide you the selected id of record. if "GETRECORDIDS()" is blank or null then you can show alert message.

-Thanks
Ashlekh Gera
doravmondoravmon
you can create a function in page. can called pop() method
https://developer.salesforce.com/forums?id=906F000000093cvIAA