You need to sign in to do that
Don't have an account?
Nirmala Kuchi
Is it possible to use Javascript in email templates?
Hi Everyone,
Is it possible to use javascript in Email templates?
I'm getting below error when I try to include inline javascript or external js file(included from static resource):
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src https://cs85.salesforce.com". Either the 'unsafe-inline' keyword, a hash ('sha256-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'), or a nonce ('nonce-...') is required to enable inline execution.
Is it possible to override the meta tag and enable script?
My requirement is to send ChartJS components over email.
Thanks!
Is it possible to use javascript in Email templates?
I'm getting below error when I try to include inline javascript or external js file(included from static resource):
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src https://cs85.salesforce.com". Either the 'unsafe-inline' keyword, a hash ('sha256-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'), or a nonce ('nonce-...') is required to enable inline execution.
Is it possible to override the meta tag and enable script?
My requirement is to send ChartJS components over email.
Thanks!
May I suggest you please refer the below link for reference.
- https://success.salesforce.com/answers?id=90630000000gqGwAAI
Hope it will be helpful.Thanks
Rahul