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
1 answer
34 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 ...
user avatar
  • 11
0 votes
0 answers
29 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 ...
user avatar
0 votes
0 answers
79 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 ...
user avatar
  • 307
0 votes
1 answer
37 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....
user avatar
  • 3
0 votes
1 answer
412 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 ...
user avatar
  • 3,230
0 votes
1 answer
65 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 ...
user avatar
3 votes
2 answers
541 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 ...
user avatar
  • 77
0 votes
2 answers
259 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 ...
user avatar
0 votes
1 answer
138 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 ...
user avatar
  • 1,460
1 vote
2 answers
622 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 ...
user avatar
  • 11
1 vote
0 answers
64 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 ...
user avatar
0 votes
1 answer
163 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 ...
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 ...
user avatar
  • 2,376
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. ...
user avatar
  • 1,097
1 vote
2 answers
1k 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 ...
user avatar
  • 1,195
1 vote
3 answers
411 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....
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 ...
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,...
user avatar
  • 65
0 votes
1 answer
334 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 ...
user avatar
  • 1,051
3 votes
1 answer
2k 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 ...
user avatar
1 vote
0 answers
227 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 ...
user avatar
1 vote
1 answer
295 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 ...
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 ...
user avatar
1 vote
1 answer
17 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 ...
user avatar
1 vote
3 answers
916 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 ...
user avatar
  • 145
0 votes
1 answer
42 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 ...
user avatar
  • 11
0 votes
1 answer
657 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 ...
user avatar
0 votes
1 answer
120 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 ...
user avatar
  • 1,438
0 votes
1 answer
761 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 ...
user avatar
0 votes
1 answer
622 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. ...
user avatar
0 votes
1 answer
74 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 ...
user avatar
1 vote
1 answer
638 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 ...
user avatar
1 vote
1 answer
360 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
  • 11
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 ...
user avatar
  • 153
1 vote
2 answers
153 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 ...
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], ...
user avatar
0 votes
1 answer
769 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:...
user avatar
1 vote
1 answer
781 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; ...
user avatar
1 vote
1 answer
40 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&...
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 ...
user avatar
  • 495
1 vote
2 answers
1k 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?
user avatar
  • 135
1 vote
3 answers
349 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 ...
user avatar
  • 614
3 votes
1 answer
236 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 ...
user avatar
  • 135
0 votes
1 answer
844 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 ...
user avatar
  • 23
0 votes
1 answer
609 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
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 : ...
user avatar
0 votes
1 answer
636 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 ...
user avatar
  • 1,438
1 vote
0 answers
99 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 ...
user avatar
  • 11
0 votes
1 answer
396 views

I would like to create a customize grid view on a sharepoint page in SP2013

I would like to create a customize grid view in SharePoint using a list that has already been created. the tools I have to do so are SharePoint designer and a CEWP. I have some coding experience but ...
user avatar
  • 11
0 votes
1 answer
1k views

Open Infopath forms in a new window from Forms Library

I have a forms library with a few Infopath forms in them. I want to make it so that clicking on the form will open it in a new window/tab. I have added a CEWP with Javascript to give the hyperlinks ...
user avatar