I just want to inject JavaScript in my SharePoint list of communication site. How do i use it
1 Answer
Unfortunately, it's not supported in the Modern Experience
.
You can't customize the page to add Script Editor with JS or custom CSS as we have done in classic mode
, meanwhile, you can go ahead with one of the following:
- Reference third-party CSS styles in SharePoint Framework web parts
- Use SPFx extensions to add your custom CSS to the page
- Using 3rd party form builder like Plumsail Forms
- Switch to the Classic Mode.
Below are the Unsupported customizations for Modern Experience
- Custom master pages
- More extensive branding will be supported later using alternative options
- Custom page templates (layout templates) and Alternative layouts
- Adding "classic" web parts on "modern" pages
- Custom CSS via AlternateCSSUrl web property
- Custom JavaScript embedded via User Custom Actions
See also
-
Thanks Mohamed, I Switch to the Classic Mode, but not able to see the content editor– JenCommented May 23, 2018 at 20:05
-
Welcome @Jen, What about the Script Editor Do you find it? Also, Have you enabled Publishing Feature? Have you enabled Custom script form SharePoint Admin Center? by the way, the changing this setting might take up 24 hours to take effect! Commented May 23, 2018 at 20:17