Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [script-webpart]

Introduced in SharePoint 2013, Script Editor Web Part allows to add JavaScript or jQuery script to your SharePoint site.

0
votes
1answer
20 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
1answer
18 views

Using Google Charts API to create Graph with more than one bar

I have a SharePoint list with 5 columns: Title (Text, filled with dates) Red (Number) Amber (Number) GreenBlue (Number) NS (Number) I have a Google Chart loading from this list, but it's only ...
0
votes
2answers
40 views

Script Editor Web Part (SharePoint 2013)

Newbie so please don't beat me up. I'm trying to run a simple javascript function using the jquery library. I've tested it on jsbin and it runs. However when I go to my SharePoint 2013 page, ...
1
vote
1answer
93 views

Add Script Editor to Upload.aspx

I would lke to add a Script Editor to the SharePoint Document Library's Upload.aspx page to do something similar to https://www.c-sharpcorner.com/article/pre-save-action-on-document-libraries-in-...
0
votes
1answer
21 views

Can I create slideshow for videos in sharepoint 2013?

I have embedded videos using script editor. When I embed multiple videos, the videos are not aligned next to each other. I want something like youtube has where you can autoplay videos, is there a way ...
1
vote
1answer
343 views

Remove Scrollbar from iFrame

I have used an iframe in my classic sp page this is referencing a modern sp site but it is has a vertical scroll bar. I have tried to override it with some css and it hasnt appeared to go away. How ...
0
votes
1answer
51 views

Using script editor to apply hover effects to certain images

I'm trying to apply some hover effects to some images on a page. I'm using the Modern script editor from here. I can't get the code right. The image is in this <div class="...
0
votes
0answers
32 views

SPO: Populating 5 buttons' value(s) with the Title field of 10 most recent items in of a List

The use case here is a New Task Form with a Script Editor. In the New Task Form, there's a field called 'CompanyId', which relates the Task to a Company in the List: 'Companies'. In the Script ...
3
votes
1answer
542 views

Is there a way to have Script Editor web parts or Content Editor web parts back inside sharepoint online modern pages

I am new to the sharepoint online modern pages world. Now i read a lot about it and decide to start using it instead of the classic web pages. now the SP modern pages provides some useful features and ...
0
votes
0answers
27 views

Filter (Hide/Show) list items with buttons

Team, I have an action list with a column called "Team". Action list items can have the values; Team A Team B Team C I want to enable users to filter the action list by selecting a team, or view ...
0
votes
2answers
81 views

Search Box (list web part) Error: TypeError: Unable to get property 'split' of undefined or null reference

Team, When I attempt to use the search box in a list web part I get the error, "TypeError: Unable to get property 'split' of undefined or null reference" Setup: On a Sharepoint 2016 page, I have ...
0
votes
2answers
75 views

JSOM running only in Edit mode of Script Editor

I am using script editor for JSOM which includes java-script and css tags. My jsom code is working fine only when URL is http://portalurl?PageView=Shared&InitialTabId=Ribbon.WebPartPage&...
1
vote
1answer
320 views

How to use Sharepoint CSR to conditional hide row

Team, I've got a list to record a shift roster. I have two Date/Time columns recording (1) Start of the shift and (2) End of the Shift. I want a view that only shows who is rostered on right now! I ...
1
vote
2answers
253 views

Sharepoint javascript not working AND still script still displaying on web part

I'm attempting to insert a chatbot into a Sharepoint 2010 (or 13 - not sure) page via javascript that: waits 3 seconds after page loads then pops up a chatbot iframe It works perfectly as designed ...
0
votes
1answer
165 views

Changing the Timeline Size

I have been struggling to find any info on this so I'm hoping somebody here can assist. End Goal: To have a page containing multiple web parts. One of which is a timeline without the list items being ...
3
votes
1answer
313 views

Add script editor to page JS

I have a request to add Script Editor Web Part using JSOM ! Is it possible? If yes How can do this? Thanks
0
votes
1answer
264 views

Can't see the script editor I added to the home page

I have a SP 2013 site. I am using scripteditor almost on all of the pages to add javascript, but looks like the home page is a bit special. I added a scripteditor to edit the home page, I also added ...
0
votes
2answers
439 views

Converting Jquery in Script Editor to its own Webpart

How do I convert Jquery that I am using in the Script Editor into its own Webpart? <script src="https://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script> <script ...
0
votes
1answer
40 views

How can i decrease the distance between two script editor?

I have got two banners in my home page. But there is more distance between two banners. I want them be more closer.
0
votes
1answer
126 views

Resizing columns in a Gantt view

were can I find a script that will allow me to set the column width in a GANTT view fore SharePoint 2013
2
votes
0answers
186 views

View Last Published Version

I am trying to create a document library, which has a default view of the most recently published major version. If anyone checks-out a document to create a draft, I want other editors to be able to ...
1
vote
1answer
603 views

Disable Date & Time field - Sharepoint Online

I have 3 date fields into my list, but I want to disable one of them. Column name = Fecha I try to achieve it adding Script Editor like this: Code: <script src="https://ajax.googleapis.com/...
1
vote
2answers
2k views

Insert JavaScript into Web-Part

I have inserted into my Home.aspx a list with Web-Parts like this: Now I want to know how can I apply JavaScript to this list? Note: I want to display an image depending of selected of one field
1
vote
1answer
83 views

Sp.Js Error When Running CAML Queries

I have added the below code to a (non-Publishing feature enabled) page in SPO to grab some items from another list and render them out; have done this sort of thing before without an issue (code is ...
1
vote
1answer
547 views

Allow users to use “Embed Code” or Script Editor webpart without full control

Is it possible to give users with Contribute permissions the possibility to embed code or insert a script editor webpart? All I can find online is about SharePoint Online but I am working on a ...
1
vote
1answer
1k views

CAML Query to Get Single List Item Failing

So this is about the third script I've copied (this time from C# Corner) in an attempt to get a CAML query working but as with the others, I can't get it to work. Starting to get pretty upset about it ...
4
votes
2answers
791 views

Facing issue in binding Kendo UI grid with SharePoint list

I am facing the issue in binding Kendo UI grid with Sharepoint List. I am getting following error, Uncaught TypeError: $(...).kendoGrid is not a function I have added scripts in the following order,...
1
vote
0answers
32 views

Create some logic to join a site collection

I would like to create some "join" button on each site collection. A visitor can press on this button if he would like to join this site collection. I would like to add some list item with the ...