Skip to main content
9 votes

How to use html code in modern UI

There is a React Script Editor webpart that can enable this type of functionality: https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-script-editor However, if it is just some ...
theChrisKent's user avatar
  • 6,021
6 votes
Accepted

Connecting an html form to a sharepoint list

You can implement this by creating a Custom New Form and adding the HTML you have already created to this aspx page. This will be bound to the SharePoint List . Each SharePoint List by default has ...
Priyaranjan KS's user avatar
6 votes
Accepted

Styling Sharepoint 2013 Quick Launch Headers

Try the below CSS in Script Editor Web Part <style> .ms-core-listMenu-verticalBox > .ms-core-listMenu-root > LI > .ms-core-listMenu-item { font-weight:bold; } </style> [OutPut] ...
Mohamed El-Qassas MVP's user avatar
5 votes

Connecting an html form to a sharepoint list

There's a great solution which allows you to build a HTML form for SharePoint lists if you're okay using JavaScript and jQuery. Original solution: http://www.markrackley.net/2013/08/29/easy-custom-...
Una Lahiff's user avatar
5 votes
Accepted

How to use html code in modern UI

@theChrisKent is correct. This is the very big trade off for many SharePoint admins & devs when considering whether or not to utilize modern pages in SharePoint. I just completed an on-prem to ...
A.k.A. Fritz's user avatar
  • 1,425
5 votes
Accepted

Content editor web part issue not rendering HTML

Content Editor web part is normally used to display the contents on the screen. In your case, you have HTML and jQuery code. So you have to format your code in proper HTML format and then paste it in ...
Aakash Maurya's user avatar
4 votes

Allow user to edit content editor webpart on specific pages

Solution is explained here: ContentEditor WebPart Edit Permissions Permission "Add and Customize Pages - Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Microsoft ...
P Daubresse's user avatar
4 votes
Accepted

Credentials popup issue while adding a user to SharePoint group with REST API

For adding user to group, instead of REST API I used JSOM, now I didn't get credentials pop up. :) Adding users to a group with JSOM using following code:: addUserToSharePointGroup: function (...
Nagababu Annamdasu's user avatar
4 votes
Accepted

Check if the currently opened item is a folder or a document in EditForm.aspx

Use out of the box object WPQ1FormCtx or WPQ2FormCtx. I have seen former in SharePoint Online and the later in SP2013 on prem. The property you are interested in is WPQ1FormCtx.ItemAttributes....
Nadeem Yousuf-AIS's user avatar
4 votes
Accepted

Get all site collections for a web application - JSOM

The JS CSOM only operates on the site you are currently on (You can open another client context but you need a site URL to do so). It does not allow you to do any operations based on the webapp level. ...
Heiko Hatzfeld_MSFT's user avatar
3 votes

How to apply Content editor on whole site in SP 2013

If you want to apply script to whole site, than you have to modify your Masterpage. You cant apply scripts to whole site using content editor unless you manually place content editor webparts on each ...
SharePointMan's user avatar
3 votes

Media and Content catalog unavailable

Turn scripting capabilities on and off for SharePoint Online Tenant. It will enable\disable some features & webparts in SharePoint Online Tenant. You can follow the below mentioned link to enable ...
Hardik's user avatar
  • 7,733
3 votes
Accepted

Skipping Callout menu within context menu (ECB-Menu) in a list view of document library - SP2013

In order to get the new menu structure the easiest way will be to modify the existing view or create a new view for that document library or list. To do so perform the following steps: Go to your ...
Dikesh Gandhi's user avatar
3 votes

Single Page application without Content Editor Web Part

For SharePoint Online or SharePoint 2016+ If you're running SharePoint Online or SharePoint 2016 or later, you can develop client side webparts in SharePoint Framework (SPFx). There's lots an lots ...
Nsevens's user avatar
  • 468
3 votes

Referencing javascript library in content editor webpart

If site url like http://sp, reference the library as: <script type="text/javascript" language="javascript" src="/Style Library/Scripts/jquery.SPServices-0.7.1a.min.js"></script> If site ...
Lee's user avatar
  • 4,271
3 votes
Accepted

Hiding fields in SharePoint Online list

You can hide the column from all forms by following below steps: Go to List settings --> Advanced settings. Set Allow management of content types? to "Yes" and click "OK". On ...
Ganesh Sanap - MVP's user avatar
2 votes

Export CEWP as .webpart file

You can just rename .dwp to .webpart and use it.
Jussi Palo's user avatar
  • 8,176
2 votes
Accepted

How to embed more than two CSS files on a SharePoint-Site

You can edit the page in SharePoint Designer and add as many CSS-links in head as you like. Add your links here, and if you use 'media' attribute, you need to add the link the old fashion way: <...
Benny Skogberg's user avatar
  • 25.5k
2 votes
Accepted

Form Validation fires even If I click outside content editor web part

First of all, your HTML should not contain <html><head></head><body>...</body></html> Then whats happening here is that $("form").validate() messes with the ...
Daniel Stölzner's user avatar
2 votes
Accepted

Can I add more than one link in a content editor web part?

You can add <style></style> tag above <script> tag. Define your css inside tag. e.g. <style> .ClassName{display:none;} </style> OR You can provide the path of your ....
Rishi Jagati's user avatar
2 votes

JS Link or Content Editor Web part in SharePoint 2013

Before getting into the analysis whether a CEWP or JSLink, you should better know that these are only just a place holders to add your JavaScript/Jquery/CSS Scripts, so choosing what to use doesnt ...
Nagarajan Muthukumar's user avatar
2 votes
Accepted

Content link URL for a content editor web part

None of the answers in the comments are correct. Correct answer : ~sitecollection/SiteAssets/js/jquery-rotator/slider.txt Several comments : You cannot point to something outside of your site ...
jeancallisti's user avatar
2 votes

Can I add more than one link in a content editor web part?

Another alternative JSLinks can reference multiple JS and CSS files, on SPOnline also to any https URI They were created in SP2013 for CSR - Client Side Rendering, but you can use them to load any ...
Danny '365CSI' Engelman's user avatar
2 votes
Accepted

Question about my Page Refresh Script on a Site Page

For 2nd issue - Can you try below...your close window should be like function closewindow(strReturnValue, result, target) { if (strReturnValue === SP.UI.DialogResult.OK) // Perform action on Ok. ...
Siddharth Vaghasia's user avatar
2 votes
Accepted

Unable to add web parts to certain pages in Sharepoint Online

Yes it appears this has changed somewhat, I'm having the same issue, from the site contents, go to site pages, then from there you can select new > web part pages, this will give you the old ...
Damj0's user avatar
  • 36
2 votes

CEWP: Passing parameters to HTML file (workflow/parameter controlled CEWP javascript)

With a CEWP SP Injects all your (HTML/JS) content server side into the ASPX page So the client doesn't know about your source files, neither is its URL included in any attributes Any URL parameters ...
Danny '365CSI' Engelman's user avatar
2 votes

Picture Library Slideshow webpart not playing?

If you are using Sharepoint 365: According to Microsoft In a recent update to Office 365 that is currently being deployed, the ability to automatically switch to new images is being deprecated for ...
Cearon O'Flynn's user avatar
2 votes

Change the contentlink based on Site collection

JSLink URLs and Tokens When you are constructing your JSLink URL there are a number of tokens you can take advantage of: ~site – reference to the current SharePoint site (or “Web”) ~sitecollection –...
TARUN's user avatar
  • 2,856
2 votes
Accepted

Using tooltips on an image map in a content editor web part Sharepoint 2010

You can add the "Title" attribute to the <area> tags to add built-in browser tool tips. For example: <img usemap="#mymap" src="data:image/png;base64,...
Thriggle's user avatar
  • 1,620
2 votes

User cannot add the Content Editor web part

Try checking the permissions of the webpart gallery at your site collection root: or site settings > Under Galleries > Master pages and page layouts > Permissions http://example.org......./...
Mathew's user avatar
  • 1,386

Only top scored, non community-wiki answers of a minimum length are eligible