Hi all,
I add a button on opportunity form using these properties of ribbon work bench
my js is shown below
function test()
{
debugger;
var width = 650 ; var height = 500;
var posLeft = (( screen.width - width ) / 2 ) ;
var posTop = (( screen.height - height ) / 2) ;
url = "win-us94vrpdbek/.../aw_PaymentMethodWhenOpportunityCloseAsWon"
window.open(url,'name', 'status=no, width=' + width + ',height=' + height +',top=' + posTop + ',left=' +
posLeft +',scrollbars=no,toolbars=no,menubar=no,location=no, align=center');
}
It do nothing when I clicked to the button. Please suggest me where I wrong.
Thank you
*This post is locked for comments
In the button properties, Did you select corresponding command in the command properties?
Hi - could you post your ribbon xml from the xml tab in the ribbon workbench please? The most common mistake is not setting the command on the button.
Thanks
Hi Abdul Can you please confirm the following;
You need to call the JavaScript function, create the JavaScript Function Action for that command. Click on Actions lookup and click on Add button. Select JavaScript Function Action. Your function name should be test without parentheses ().
You need to associate command to button.
Add some alerts that will make sure that button is calling your function. declare url variable.
Are you able to access URL that you trying to open from browser?
Best Wishes, Raz
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156