You need to sign in to do that
Don't have an account?
Roscoe
Error using encodeURIComponent() in s-Control
I am unable to use encodeURIComponent() function in s-Control - it is failing when I declare the variable as follows:
var strBillingAddress = encodeURIComponent({!Account.BillingAddress});
Any help is greatly appreciated!
Thank you
var strBillingAddress = encodeURIComponent(123 Main St.);
Which it doesn't know how to deal with. Instead, put single quotes around the merge field like this:
var strBillingAddress = encodeURIComponent('{!Account.BillingAddress}');
And it will resolve to:
var strBillingAddress = encodeURIComponent('123 Main St.');
Which is what you want.