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
1
vote
2answers
27 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 ...
0
votes
2answers
35 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 ...
0
votes
0answers
30 views

VueJS SPA in SharePoint CEWP

I am following some online tutorials on how to create a SPA in VueJS, now I want to deploy it in my SharePoint site using CEWP. I ran npm run build copied dist folder to Site Assets, and referenced ....
0
votes
1answer
34 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 ...
0
votes
0answers
6 views

O365 sharepoint sites created from a template don't match the templated site (random differences)

We are doing SharePoint development in our third online (O365) environment and have experienced the following issue in each system. After a site is templated and a new one is created based on that ...
1
vote
2answers
82 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 ...
1
vote
0answers
25 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 ...
0
votes
1answer
47 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 ...
0
votes
2answers
127 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 ...
0
votes
0answers
24 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. ...
1
vote
2answers
531 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 ...
1
vote
3answers
173 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....
0
votes
1answer
424 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 ...
4
votes
3answers
3k 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,...
0
votes
1answer
192 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 ...
3
votes
1answer
1k 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 ...
1
vote
0answers
146 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 ...
1
vote
1answer
200 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 ...
2
votes
1answer
32 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 ...
1
vote
1answer
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 ...
0
votes
3answers
329 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 ...
0
votes
1answer
35 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 ...
0
votes
1answer
442 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 ...
0
votes
1answer
91 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 ...
0
votes
1answer
158 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 ...
0
votes
1answer
164 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. ...
0
votes
1answer
40 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 ...
1
vote
1answer
507 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 ...
1
vote
1answer
243 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 ...
0
votes
1answer
689 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 ...
1
vote
2answers
113 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 ...
2
votes
0answers
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], ...
0
votes
1answer
362 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:...
1
vote
1answer
662 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; ...
1
vote
1answer
37 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&...
2
votes
0answers
54 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 ...
1
vote
2answers
950 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?
1
vote
3answers
314 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 ...
3
votes
1answer
143 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 ...
0
votes
1answer
624 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 ...
0
votes
1answer
560 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
1
vote
2answers
806 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 : ...
0
votes
1answer
457 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 ...
1
vote
0answers
82 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 ...
0
votes
1answer
367 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 ...
0
votes
1answer
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 ...
0
votes
1answer
198 views

CEWP to set Infopath field value not working

I have an infopath form web part on my web page along with a CEWP. I'm using javascript in my CEWP to set a field on my Infopath form to some value when a button is clicked. For some reason I can't ...
1
vote
1answer
163 views

Determine all sites with active script editors

Can somebody help me to determine all the sites which have content editor web parts active on the SharePoint Farm? Both publishing and non publishing sites. Is there a script? I found one at Finding ...
1
vote
0answers
42 views

Accessing JavaScript libraries for basic tasks

I ran into an error while trying to gain access to the required libraries for JavaScript development. I copied this code straight from Microsoft's documentation, however when it is executed on my ...
2
votes
0answers
149 views

Target Audience in CEWP Snippet not working

I am trying to add a CEWP snippet with Target Audience applied to a Page Layout. However the Target Audience is not working when I add a CEWP as a snippet. However, if I apply a CEWP to a Web Part ...