Questions tagged [cewp]

CEWP stands for Content Editor Web Part. You can use a CEWP to add formatted text, tables, hyperlinks, and images to a Web Part Page. CEWP is a powerful tool, for the reason that one can insert codes (e.g. in JavaScript/JQuery) to customize the web page.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

When creating a subsite using custom template in SPO Classic Site, Does the id of html elements change?

I have a SPO Classic site. In of the forms, I have CEWP that needs to access the html elements present in the page. Now this site will be used as template. I wish to know if the code will continue to ...
raeAlteR's user avatar
0 votes
1 answer
203 views

Running modern 2022 native Web Components in Microsoft365/SharePoint Online

I am an old CEWP user. Haven't used SharePoint in years. For a new Online project I have been asked to explore if my team (some 50+ autistic people with distance to the labor market) can work on a ...
Danny '365CSI' Engelman's user avatar
0 votes
1 answer
70 views

jQuery code not running

I have a piece of jQuery code (an accordion widget that rolls text out and back in to one of several headers when clicked) from someone else in a CEWP that doesn't want to run. I have multiple ...
Dewey's user avatar
  • 11
0 votes
0 answers
83 views

Modal JS not working in Chrome for Calendar CEWP

On a site page, I have a Calendar CEWP and the following JS in a script editor. The calendar events pop up in a modal in IE but they do not in Chrome. Can anyone identify why it is not working in ...
seaandtea's user avatar
0 votes
0 answers
191 views

Where is the NewForm, DispForm, and EditForm on SP 2019?

Trying to find out where the New, Disp, and Edit form pages are on SP 2019. Migrating from 2016 to 2019 and we had some customized forms using JavaScript. The 2016 pages used CEWP to add the ...
adams-j's user avatar
  • 307
0 votes
1 answer
70 views

SharePoint Online o365 Content- and Script Editor WebParts still missing in classic sites

I am tenant administrator and still got the following problem: I allowed custom scripts in sharepoint admin center and waited 24h I tried the same with the script: Set-SPOsite https://.sharepoint....
Tku90's user avatar
  • 3
0 votes
1 answer
729 views

CSS was ignored due to mime type mismatch

I am working on client side web part using JavaScript and CSS for customization. I have added custom css and JS into the page and I am getting the message on console of the browser i.e. CSS was ...
users1100's user avatar
  • 3,230
0 votes
1 answer
86 views

Content Editor Web Part making page uneditable

I am new to Sharepoint Online and was trying to insert data to sharepoint list from sharepoint page containing cotent editor web part but I guess there is some problemwith my code or something which ...
Krishna's user avatar
3 votes
2 answers
803 views

CAML Query Last List Item Where Status = New

I have a SharePoint 2013 custom list and a requirement to load the last list item where Status = New. I first tried SPGetLastItemID with a CAML query filter - however, that method only returns items ...
RnR93's user avatar
  • 77
0 votes
2 answers
408 views

ctag parameter is getting added to js file on web page Sharepoint online

I am working on CEWP.when I am trying to debug the javascript file.On button click i called a function but function is not getting called becos js file not loaded properly .At the end of js file some ...
Swetha's user avatar
  • 389
0 votes
1 answer
163 views

CEWP and Script editor webparts missing in our SharePoint Online Tenant

CEWP and Script editor webparts are missing in our SharePoint Online sites. Custom Scripts is allowed for self created sites but prevented only for personal sites. This I checked in SharePoint Online ...
George's user avatar
  • 1,522
1 vote
2 answers
904 views

How to Sort or Filter by Group By Total - SharePoint Online

I have a long list of companies (3,500+) in a classic SharePoint list. I am trying to identify when there is a duplicate company. Right now I am grouping the Company Name field and scanning through ...
Sarah P's user avatar
  • 11
1 vote
0 answers
118 views

With CSS : How do i make all content on the page to fit to page?

I looked up most of the questions on here about fit to page but my case may be a little different. On my page, I have the followings: [Header ] Title (picture from assets) 6 world clocks marquee ...
Masarubae's user avatar
0 votes
1 answer
232 views

Office 365 - Save Conflict error when upload Publishing page

I have some Publishing pages aspx. When I tried to upload file to Site Contents - Pages, I got error page popup like that: "Sorry, something went wrong Save Conflict Your changes conflict with those ...
Varsha's user avatar
  • 47
0 votes
2 answers
2k views

@media print page breaks getting ignored when printing an html form placed in content editor webpart

When I add the following styling to my html page, @media print { .pdf-break-after { page-break-after: always !important; } } Adding this in a content editor webpart. When I try to print ...
mohd tahir's user avatar
  • 2,406
0 votes
0 answers
40 views

JavaScript in CEWP modifying nearby list webpart - losing functionality when sorting/filtering

If loading JavaScript by CEWP onto a SharePoint page you can do nice things like changing background color of the list items by value or adding datepicker functionality for items on the list view. ...
PhilFancy's user avatar
  • 1,107
1 vote
2 answers
2k views

content editor webpart link with different site collection

I have 2 site collection A and B. I have a CEWP in site collection A and a document library in site coll B which contain a script in txt file. I want to copy the link of txt file from B and put it in ...
Brishal's user avatar
  • 1,205
1 vote
3 answers
543 views

How to use JQuery/JavaScript in SharePoint site

I am new for here and sharepoint. I would like to ask a question regarding Javascript for Sharepoint page. I am sorry if it was asked before. I have found a script which is called "let-it-snow.min....
Burak Tutal's user avatar
1 vote
1 answer
1k views

How to display 'last modified' date on publishing page using content editor web part?

For a number of pages within my site, I need to display the date that the page was last modified. I know this is possible using a custom view for the page library, but for my purposes, that is not an ...
Seantheco-op's user avatar
4 votes
3 answers
8k views

Hide/Show columns in Custom List based on dropdown selection

I am trying to hide a column on page load and when a value is selected from a drop-down list, have the hidden dropdown appear. I am able to hide the column but when I choose the value in the drop-down,...
Natalie's user avatar
  • 65
0 votes
1 answer
389 views

Can script read the properties of a Content Editor Web Part?

I am working on a script, it's in AngularJS, but it could be jQuery or just JavaScript for the sake of this question. The script is inside a Content Editor Web Part. I want to provide configuration ...
CigarDoug's user avatar
  • 1,063
3 votes
1 answer
3k views

<FORM> tags are not supported in the HTML specified in either the Content property or the Content Link property

I've got two SharePoint Online site collections. One is rather old, the other one was created about two hours ago. There is an HTML file located in _catalogs/master/webparts/test.html with the ...
Denis Molodtsov's user avatar
1 vote
0 answers
242 views

How to implement ModalDialog.showWaitScreenWithNoClose in Sharepoint Online using CEWP in custom list?

I am new to Sharepoint developing/web development and I am trying to create a "loading..." box to occur until the page is finished. I want to use the Sharepoint modal dialog that is already available ...
brigh5421's user avatar
1 vote
1 answer
335 views

displaying HTML RSS feed using CEWP

I'm trying to use a CEWP to display an RSS feed via an HTML page. When I link to the web page in the CEWP, the RSS feed displays perfectly in the web part. However, it seems as if the rest of my site ...
collin's user avatar
  • 11
2 votes
1 answer
33 views

Need only myself to be able to view the ribbon - but I do not have access to the Master Page to be able to use Security Trimming

I only need to do this for one page on the site. I need to hide the ribbon so that only I can see it. I cannot access the Master Page, so was hoping there was some script that could be added to a ...
lizbrady's user avatar
1 vote
1 answer
23 views

Choose the Workflow depending on a Lookup Field option

I have 3 different Workflows (A, B, C), and a Lookup Field with 3 different Options (A, B, C too). I want when I choose Option A, then the Workflow A begin to work when I send the form. Same with B ...
Jorge Nitales's user avatar
1 vote
3 answers
1k views

CSS: Hide empty column on SharePoint List

How do you delete or make hidden this additional column that sticks out from the header row? Can this be done using the HTML or Content editor? See attachments below. Content Editor: <style ...
vier111's user avatar
  • 145
0 votes
1 answer
43 views

SP2010 - Referencing javascript from HTML in CEWP

I have a webpage that uses javascript that I'm trying to implement in my SharePoint 2010 site, but I'm running into some trouble with the javascript. I've tested everything outside of sharepoint and ...
Roo's user avatar
  • 11
0 votes
1 answer
685 views

How to use Chosen JQuery in Sharepoint

I know how to implement a Chosen field in an HTML file, but how can I set the code, so the Chosen.js is applying the behaviour in a Lookup field? I found about Chosen.js here, but sadly found ...
Jorge Nitales's user avatar
0 votes
1 answer
125 views

Link a file to CEWP that lives in another site collection

I'm creating a Page that contains a CEWP which will link to an HTML file. The plan is to template that site/page and use it across multiple sites and collections. I want to link the HTML from 1 ...
Batman's user avatar
  • 1,458
0 votes
1 answer
1k views

How to create Mirrored List with different columns

It seems a bit confused, I will try to explain. When I create an Item in a List X, I want that it automatically creates an Item in List Y only with the Title of the item in List X. I am working ...
Jorge Nitales's user avatar
0 votes
1 answer
962 views

CEWP - Javascript to output html content to email body

All, I am not very familiar with javascript. However, using the following code I can successfully open, output to a new browser page, and print the contents of webpart. This part works as needed. ...
user62801's user avatar
0 votes
1 answer
75 views

Hide Workflow properties

In Sharepoint 2013 on-premises I am creating a Workflow Interface. Actually I would like to avoid users to see the Workflow process on a List, so they just can see the Status but not click on it and ...
Jorge Nitales's user avatar
1 vote
1 answer
647 views

Highlight Rows in a List based on Workflow status field

Actually I got a code which works really nice when I use it in a list depending on a normal field. When I try to Highlight the rows considering the Workflow Status it doesn´t work, Any advises? I ...
Jorge Nitales's user avatar
1 vote
1 answer
378 views

Add or update a SP List with a username

I have two scripts that work on their own, I found them and got them to work by searching online, but I'm not sure how to combine them. The first script will replace an HTML tag with the id logUser ...
user avatar
0 votes
2 answers
1k views

CEWP does not support <form> tag in jQuery file

I added jQuery to my Sharepoint page. When I reference the jQuery file uploaded in my library, I get this error message: <FORM> tags are not supported in the HTML specified in either the ...
infodev's user avatar
  • 153
1 vote
2 answers
157 views

Programmin only in CEWP or Without any API

I am quite new here... Right now I am about to design a Workflow site in SharePoint but I have to limitations: 1- I´m not allowed to use any API, only Notepad++ (Portable, of course) 2- No SharePoint ...
Jorge Nitales's user avatar
2 votes
0 answers
36 views

Custom CEWP loaded in HTML page layout causes other webparts to disappear

I have a custom html page layout. I've saved a custom webpart and added it to the Webpart Gallery. The custom webpart has simple HTML [a table with a few <i> classes to utilize Font Awesome], ...
user2004758's user avatar
0 votes
1 answer
859 views

Responsive CSS to center (horizontal align) X number of button images in CEWP

I created a row of buttons that enlarge on hover on a Sharepoint 2013 webpage , here is the code: ​​​<style type="text/css"> .thumbnail { position:relative; width:100px; height:100px; display:...
supertrip86's user avatar
1 vote
1 answer
788 views

How to display html objects in Content Editor Web Part horizontally?

I'm trying to create a row of clickable buttons that enlarge on hover using a Content Editor Web Part. Here is the code: <style type="text/css"> .thumbnail { position:relative; width:100px; ...
supertrip86's user avatar
1 vote
1 answer
41 views

Can't hide Displayform ribbon,using CEWP or CSS in 2010

I have been trying to hide the Manage and Actions ribbon on DisplayForm.aspx, using a browser inserted CEWP and just entering: <style type="text/css"> #s4-ribbonrow {display:none} </style&...
user1606338's user avatar
2 votes
0 answers
80 views

Correct way to save special chars in CEWP content link

I have a content editor web part. I have content, it is stored in a file on the site collection in a Folder of the site collection (not a doc lib) to hide it from the users as it contains html ...
BinaryJam's user avatar
  • 495
1 vote
2 answers
2k views

Creating a Basic Web Part Page using JSOM

I'm trying to create a basic Web Part page using JSOM for SharePoint 2013 and in this page I want to add a CEWP. Could someone direct me in the right direction on how to do this?
ermalsh's user avatar
  • 235
1 vote
3 answers
354 views

Own .html page stored in SharePoint 2013?

Which way is the preferred when you want to built a Single Page Application within SharePoint. I mean i can put my .js into some Library and my HTML to a Content Editor WebPart, but my question is if ...
BOG's user avatar
  • 614
3 votes
1 answer
262 views

Content Editor WP or Script Editor WP won't show Content when Saving List as Template

I created a List Template with a Content Editor Web Part in it and I made sure to click the "Include Content" button when I created the template but my list template does not have the Content Editor ...
ermalsh's user avatar
  • 235
0 votes
1 answer
862 views

SVG images not showing in SharePoint 2010 Content Editor Web Part with IE11

Ultimately, I am trying to use D3js.org in a SharePoint 2010 CEWP to visualize some data. However, after loading a script I just get a blank web part. I can successfully run jQuery in CEWP so I assume ...
linesd's user avatar
  • 23
0 votes
1 answer
621 views

SharePoint 2010: How to display the list item id in CEWP on Display Form

On the display form, I have added a CEWP which has some text. I want to append the list item ID at the end of the text. How can this be done? Note: Don't have access to SP Designer
Kay's user avatar
  • 393
1 vote
2 answers
2k views

Media and Content catalog unavailable

My enterprise has recently activated SharePoint online and I'm able to create sites and subsites. Unfortunately, when I try adding webparts to my page, I only get a handful of webpart catalogs : ...
MonsieurPoivron's user avatar
0 votes
1 answer
716 views

Overflow when using Web Part

I created a dropdown menu using sharepoint list. The issue I'm having is that the sub menu items are getting cut off. The way I'm showing the menu is through the content editor web part linking to an ...
Batman's user avatar
  • 1,458
1 vote
0 answers
109 views

Using CEWP to apply css to a table on sharepoint 2013

I am in the process on adding css to a CEWP for a table within a webpage. I have tried different CSS and nothing is working. It is a basic table that just needs the border black due to the border ...
Laws's user avatar
  • 11