The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [script]

Script a small non-compiled program written for a scripting language or command interpreter

64 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
78 views

SharePoint sometimes adds script in page without any reason

I have this weird problem on one of our customer's SharePoint (2010): sometimes, on different pages, the page came out broken, with a bunch of HTML and scripts inside the normal page. I started ...
3
votes
0answers
107 views

Sharepoint 2013: Get Items by Term-Tree

I have a list with a Term field. I want all Items that have the Term "Stationärer Bereich:Vertrieb" or "Stationärer Bereich:Vertriebsinnendienst" (Including the subtree Terms). This is my Termset: ...
2
votes
1answer
31 views

Color coding list custom field in SP 2013

We have a field called next due date. I'm trying to color that field if it exceeds the date. Red color if exceeds the date and yellow color if it is 1 day near to the due date. Please guide me on ...
2
votes
0answers
69 views

Link Access to a SharePoint file whose name keeps changing

I have an Access database that I would like to link to an Excel file located on SharePoint. Normally, this is easy to accomplish as SharePoint/MS Office are well integrated. The problem is, the Excel ...
2
votes
2answers
7k views

getEnumerator causing collection has not been initialized error inside of async call inside of a loop in a script editor web part

This is an issue I've been struggling with - What I am doing is using a script editor web part and when a user clicks the button, I check to see if a list exists inside of a loop (in this example, it ...
1
vote
1answer
39 views

Auto populate a lookup field with multiple entries after selecting multiple entries from a lookup

Please excuse me for the vaugness, required due to the type of work. I have a list that indicates upcoming work on various items. When the work is finished on those items, drawings need updated. As ...
1
vote
1answer
295 views

Rename a file in a Document Library - SharePoint 2013

I am wanting to rename a file name in a document library called "RenameAFile". Currently have the following file called "UD-PD-Documentattion.xlsx" and I want add "DN" before the file name "UD-PD-...
1
vote
3answers
251 views

SPServices - Cascading Dropdown dont works

i have the proplem that the Cascading Dropdown with SPServices dont works. I searched a lot in the internet and in other community-forum but i cant find a solution. I have 3 lists: Firmen ...
1
vote
0answers
81 views

Importing webPart with PowerShell through command line versus PS1 script behaves differently

If I execute the following through a PowerShell console (ran manually) I am able to get the webParts to work correctly: $list = $context.web.Lists.GetByTitle("Pages du site") $context.Load($list) $...
1
vote
0answers
174 views

SharePoint Online CSOM PowerShell Script to add permissions

I am rather new to this place I would like to ask a question about CSOM. I'd like to set unique permissions for a particular folder in a particular document, then I found the following URL on the ...
1
vote
0answers
46 views

Use MVC Bundling in Sp2013

I am trying to use MVC bundling and minification in SP2013 I don't know if I can ! I took code from simple webform aplication that work and tried make it work in my project : spcode: public static ...
1
vote
0answers
83 views

Displaying several pictures with Content Editor Web Part

I've created a script editor on my new sharepoint 2013 Version on the left side of the sharepoint site, like this: Test 1 Test 2 Test 3 I would like that by clicking on each Test line (Test 1, Test ...
1
vote
1answer
345 views

How to add a web part to a task form?

What I want to achieve: - users always forget to click the OK Button after reading a task - I want a message when someone closes the task tab like 'You closed this tab without closing the task. To ...
1
vote
1answer
672 views

Alert me How to display word document in browser window?

We need to display a word document inside the browser as part of our SharePoint application. But when we tried to achieve this, it is always showing a popup with options like Open, Save and Save As. ...
1
vote
0answers
41 views

How to Restrict the output display in power shell script

I have created the PowerShell script for list creation. Also added the custom column into the list .if I run this script through PowerShell command it automatically returns the column name when ...
1
vote
0answers
372 views

Can the SPFileCollection.Add method check if I file has changed?

I'm using the sharepoint powershell cmdlets to upload files to a document library like so: # Set the variables $WebURL = “http://portal.contoso.com/sites/stuff” $DocLibName = “Docs” $FilePath = “C:...
1
vote
1answer
198 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
1answer
146 views

Deletion of version of a Document when Version Label is known using powershell script

Is it possible that I can delete versions of a particular document when I have a pool of minor Versions available? NB: I do not want to iterate through all the item versions, but just access through ...
1
vote
2answers
530 views

How to put Script Editor inside Content Editor?

I have a javascript and in order to work, I have to use Script Editor. The reason why I want to put Script Editor inside Content Editor is because Content Editor are filled with tables, and 1 of the ...
1
vote
1answer
965 views

Extract all data as files from a SharePoint instance using Powershell

I am searching for a good way to extract all uploaded files in SharePoint using PowerShell. I saw some options to extract all documents to .csv files, but that's not what I need. If a user uploaded ...
1
vote
0answers
149 views

Script won't load

I'm having some issues with a SP 2013 site trying to access through an F5 firewall. Everything works fine internally, but outside the network, Grouped Views won't even load and the Ribbon is disabled....
1
vote
0answers
58 views

Scripts to add pages in sharepoint and data in DB sql

I am trying to make a script to insert some pages in SharePoint and insert data in other DB in same script The script and errors: ################################################################...
1
vote
0answers
261 views

GetListItems isnt working for library with metadata - PowerShell

So after searching over and over on the net for a reason for my problem. I decided to post it here. I'm trying to get all the items in my list that are in a subsite. In that subsite there are 3 ...
1
vote
0answers
662 views

VB script to automate importing sharepoint list data to excel

I need to automate pulling data from SharePoint list data to excel through writing a VB Script (not VBA). How can I import data directly from a SharePoint List into Excel using VB script? Currently, ...
1
vote
0answers
217 views

Unable to add link in the Summary Links web part by power shell script

I want to add links to the summary link web part using the power shell script. I have found a script for it on this link, but is it not working as per the requirement. I have a publishing website and ...
1
vote
0answers
61 views

Market Watch NewsFeed for SharePoint 2013

Currently working on an Intranet site. I want to add an app or script or newsfeed that provides stock market data updates on an SharePoint Intranet site. An example is from MarketWatch as shown in the ...
1
vote
0answers
722 views

Background image loads slow

I have tried to methods to add background image to my SharePoint site. But both of the methods loads very slow. the background loads white first then picture after a few seconds. Methode 1: Using ...
1
vote
0answers
45 views

help in adding a http link in script editor - cant get it to work

Im trying to add the link below to open in a new windows using showSPDialog newRows +="<p><span><a onclick='/showSPDialog(\' + viewurl + \');/' href='#'><img src='/Test/...
1
vote
0answers
72 views

Insert script in DIP Sharepoint 2013

When uploading a document I have a choice field called "Document Type". The choice values are values such as PDF, Word, E-mail and such. When I upload a document with file extention .docx the Document ...
1
vote
0answers
62 views

One script for several views in a templated custom list

I have a custom list (MOSS/SharePoint 2007), and several views (around 7). Now I would like to know if it's possible to apply a script through a CEWP for all the views, without add a webpart, select a ...
0
votes
1answer
12 views

New Language pack not working properly

Installed a new Language pack in SP2016 server. Everything is working fine except one drive. One drive opens blank for the new language. On console I am getting below error: Script error for "odsp-...
0
votes
0answers
14 views

Call On-Premises WCF Service using Script Editor Webpart on SharePoint Online

I would like to call an On-Premises WCF Service from an ajax call in a script editor webpart but i've not been able to do so. This is a very simple WCF I'm trying to call from SharePoint Online. ...
0
votes
0answers
34 views

Document Open In IE

I have a pdf documents stored in SharePoint document library. By default the document open in Edge as the browswer is fine for some of the other documents in the library but the others I want to open ...
0
votes
0answers
23 views

Picture Library Slideshow Web Part Image Resize

So I have a folder with some images with the same dimensions and I am trying to have a slideshow in the homepage with these images. Everything is working fine except that there is a significant white ...
0
votes
1answer
76 views

validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again

I am working on 2 classic online team sites. one site is the root which contain the real list, and the other is acting as the infrastructure site which contain some custom scripts and pages which i am ...
0
votes
0answers
191 views

Set-SPOUser : File Not Found

I have a script that adds a user or group to everyone one drive for business. The input file has a list of users that the script run against. Below is the set-spouser command. Set-SPOUser -Site $...
0
votes
0answers
127 views

Implementation of auto refresh all for excel file in sharepoint

i have excel file stored in sharepont. Excel has power query connection to remote db. My goal is to setup automatic refresh of query connction in order to have up to date date in excel. Googling for ...
0
votes
1answer
636 views

How to hide a List View column in Modern SharePoint

I have a List in a SharePoint Online site that uses the Modern experience. I want to hide a column, but need to stay in Modern. The easy way I found was inserting a few lines of Javascript in a Script ...
0
votes
1answer
70 views

Does the “Custom Script” setting inside the sharepoint admin center affect modern sites (Communication or Team sites)

I did many tests and reading and i did not find a clear answer if the "Custom Script" setting inside the sharepoint admin center affect modern sites (Communication or Team sites). for example i did ...
0
votes
1answer
15 views

Sharepoint script for long path ways and some file types

I have heard that there is a script that we can run on the files and folders before migration and it helps us to not the have errors like "long path way" etc. This script as i know run in powershell ...
0
votes
1answer
620 views

Adding Item to SharePoint list using Jquery

I am trying to create a button on SharePoint online classic page which will submit to a list. From there a flow will run. Just a question I have found an example how this can execute. A few ...
0
votes
0answers
58 views

Removing Weekend Days From Calendar as web part

I wish to edit my 2013 Calendar web part and remove Saturday and Sunday from showing if possible so it only shows the work days of the week. I've tried the scripts shared on this tread: Removing ...
0
votes
0answers
45 views

How to show SharePoint List content on html based website?

Is it possible to show SharePoint List data on Static Website without using C# or CSOM? To Expand further - Can use only scripts to do the job and thus trying to ascertain if Websites can read and ...
0
votes
3answers
48 views

SharePoint JavaScript - Check user info list for mandatory empty fields and redirect users

I'm trying to create a JavaScript script which will load when a user opens the SharePoint site. The code will fetch the ID of the current user and checks if there are any empty fields within the user ...
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. ...
0
votes
1answer
60 views

How to access all the different properties of SP List using powershell?

How to access all the different properties of SP List using powershell? I am only able to access "Title" property at the moment with $list.Title. I want to access its URL & versioning properties. ...
0
votes
2answers
712 views

Tiles not centered within web part in Sharepoint 2013

I am completely new to SharePoint and trying to design/create a page as requested by the company I work for. The issue I'm having is all the tiles I've created within a web part are aligned left. I ...
0
votes
2answers
954 views

Set background colour of description in tiles

my tiles look like this: I know how to change the darker background (from heading) but how can I change the background of the description (shows up when going with mouse over tile) and the ...
0
votes
1answer
447 views

How can I manage to avoid the underline in a text-decoration: none

I am trying to solve the problem with the underline in a text-decoration: none. This is the script I have: p { padding: 5px 0; } a:link { text-decoration: none; } a:visited { text-decoration: ...
0
votes
2answers
5k views

How can I display an SVG in SharePoint 2013

I have an SVG file created with links to navigate to other pages. If I open this file directly in a browser it displays, scales and is selectable as it should be. When I embed the code in SP 2013 in ...