You need to sign in to do that
Don't have an account?
Pavan Kemba
onClick Javascript
I have a custom button and have implemented onClick Javascript as below
But on click of the button i get the follow error
Please help me fixing this.
var url = '{!myvar}' if (url != '') { if({CONTAINS(url,"+")}){ {SUBSTITUTE(url, "+","%2B") } } window.open(url); } else { alert('Report URL was not found.'); }
But on click of the button i get the follow error
A problem with the OnClick JavaScript for this button or link was encountered: Unexpected string literal "+". Expected a parameter pattern or a ')' in parameter list.
Please help me fixing this.
Let us know if it helps