0

We have created a SharePoint Communication site with Modern UI. We need to execute some Javascript code for chatbot integration. All we have to do is just reference some external js files.

How this can be achieved as modern UI blocks client scripting?

1 Answer 1

0

You need to create a 'classic' page because, as you mentioned, JS cannot be executed in modern pages.

To do this:

Go to: Site Content-Site Pages.

Click on 'New' then either create a 'Web part' or 'wiki' page.

Then, in that page, simply click on settings(the cog icon at the top of page) then select edit this page.

Then insert content editor web part, where you can add the JS code.

See this link for more info: http://www.isaca-northtexas.org/SharePointTraining/TrainingPages/ContentEditorWebPart.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.