Questions tagged [script-webpart]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
22 views

Collapse all grouped sublists by default in Sharepoint using jQuery

I'm trying to edit script editor webpart in Sharepoint 2013 online (chrome removed) so that all grouped sublists would be collapsed by default. It's already set to collapsed by default in document ...
0
votes
2answers
37 views

Search Refinement Webpart not showing

I have 2 questions. Pardon me if i am supposed to post one question at a time. I am trying to add Search Box, Search Refinement and Search Results web parts to my sharepoint online page. Issue is i ...
1
vote
2answers
51 views

Main field wont save his position

I am actually doin a wiki page and try to make the view perfect. My problem is the following. When i'm in editing mode everything looks fine. My menue on the left and my main on the right are on the ...
1
vote
1answer
47 views

List View – Priority Color

I've viewed List View - Priority Color by Shannak and can get it to work on a task list, but not on a regular list. Below is a sample of what I'm trying to accomplish. The code I'm using is: <...
0
votes
1answer
43 views

To display the webpage again, Internet Explorer needs to resend

I have the code from Here to my document library The script basically opens the edit form when you Drag & Drop files into Document library. The code seems to work fine, however I am getting ...
0
votes
1answer
39 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
115 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
269 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
293 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
22 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
696 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
68 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="...
3
votes
1answer
617 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
2answers
99 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
99 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
388 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
375 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
220 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
381 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
362 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
515 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
43 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
190 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
259 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
754 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
3k 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
92 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
668 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
909 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
33 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 ...