+ Start a Discussion
venkatesh_d041.3888386112928691E12venkatesh_d041.3888386112928691E12 

loading please wait message in javascript custom button on standard page

I have a custom button which I've placed on a standard layout.

It has javacript in it that calls an Apex class.

But the Apex class can take up to 50 seconds to process, and during that time, I'd like to display an hourglass or 'please wait' message.

please let me know how to achive this.
Sonam_SFDCSonam_SFDC
Hi Venkatesh, 

The following thread has sample code which has a similar requirement of showing an hour glass image for loading content using jquery:
http://stackoverflow.com/questions/4355268/how-to-display-a-busy-indicator-with-jquery

Please go through..
LalitKaramchandaniLalitKaramchandani
Hi Venkatesh 
follow this url
https://lalitkaramchandani.wordpress.com/2019/04/27/loading-please-wait-for-message-in-javascript-custom-button-on-a-standard-page/