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
Force TechieForce Techie 

Custom button with execute Javascript behavior on standard object functionallity

Hi!

 

I am new to salesforce. I have a functionailty with one custom button 'welcome' on Standard Object (Account) detail page with behavior of onclick execute JavaScript of popup modalDialogebox in the popup. I have one button 'cancel' on it and when click on 'cancel' a JavaScript function 'getMsg()' is called from Custom Button 'welcome' with alert of 'Hello' but I am unable to do this. Please help me to come out from this issue.

 

Thank you !

Force TechieForce Techie

Hi!

 

 I just wanted to clarify the requirement here,

     " A custom button 'welcome' on standard Object(Account) detail page. This button have execute JavaScript behavior onclick. This button has JavaScript function name getMsg(). This getMsg only popup alert('hello'). The modal popup also have a button 'cancel'. When user clicks on 'welcome', popup is open. On popup user clicks 'cancel' , we want to execute the getMsg() method when cancel is clicked from modal popup."

Please help me to understand how to do this.

 

Thank You!