1

I am not able to add script tag in community builder as it is not supporting.Please let me know is there any way to add javascript in community builder.

3
  • try putting the javascript in the header section
    – Samir
    Feb 23, 2017 at 10:34
  • I followed the above link but script tag is not supported and it will be disabled after locker service will be integrated.Is there any other way? Feb 23, 2017 at 11:36
  • I have no documentation links on this but this sounds very reasonable from security stand point .If you can add a script tag then you might steal some info from the org ,provided hacker has access to the session Id .
    – Samir
    Feb 23, 2017 at 11:46

2 Answers 2

0

To use JavaScript on Experience Cloud pages, you need to place the JavaScript into the header of the page as noted in @Samir's answer.

However, inline scripts do not work without additional adjustments. By default Lightening Locker blocks inline scripts for security. You will need to either move your JavaScript into a Static Resource (recommended), or reduce the Locker security level to "Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts".

0

Go through the below link,this might help you solve your issue

Adding javascript to community pages

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .