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]

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

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 ...
1
vote
1answer
122 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
1answer
125 views

Powershell set field value based on folder name

I need to find a way using Powershell to set the value of a field in a document library based on a folder name. So for example if there is a folder called "00170" and there is a field named "Reference"...
1
vote
1answer
721 views

Add a separator between certain columns on New/Edit Form on SharePoint 2013 OOTB

I have the following modified version of Curtis Weir's field hiding script from dmcinfo.com which I want to run using the SharePoint OOTB Script Editor: <script src="//code.jquery.com/jquery-...
1
vote
1answer
307 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
602 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
1answer
148 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
141 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
1answer
857 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 ...
0
votes
1answer
61 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
48 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
14 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
328 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
1answer
34 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
1answer
111 views

office-ui panel in script editor hidden after displaying for secoonds

When I paste the below code into a Content Editor WP on SP2016 or SPO it seems to be fine, looks nice and I get no js errors while running it. But on clicking the button, the panel displays for a ...
0
votes
1answer
310 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
1answer
660 views

Unable to get property 'PageManager' of undefined or null reference SP2013

I've just created a new custom list on my site, with a simple list, one text column, no javascript, no CEWP, just a very basic vanilla function. Running the page with PF12 open, the error "Unable to ...
0
votes
1answer
218 views

How to find out per PowerShell Script if a Solution is activated and where it is activated

i have a Solution with the name My.Solutionname as the result of it i have a WSP with the name My.Solutionname.wsp It includes one Site and one Web scoped Feature. I have a SharePoint 2013 Farm ...
0
votes
1answer
118 views

How can I generate a report to display all users' access to a site?

I would like to generate an Excel (or CSV) file to have a list of all users and what type of access they have to a certain 2010 site? This site is secure, but I do have administrative permissions to ...
0
votes
1answer
210 views

powershell script to exe with command line arguments

I use the following PowerShell code taking command line arguments for creating site collections and it works fine. However when I convert it into an exe and execute it? param( [string]$siteUrl,[...
0
votes
1answer
114 views

script in script webpart find a specific image in an image library in sharepoint

I want to write my costume photo slider in script editor web part. I already have the script for basic photo slider, now I want to use a specific images in an image library. What is a quick easy ...
0
votes
1answer
58 views

OpenLayers 3 zoom to mouse location pulls off to the left in SharePoint

I am currently creating a web application using OpenLayers 3 that aims to be embedded into SharePoint using the Script Editor tool. For the purpose of this question assume I am just using a basic map ...
6
votes
0answers
77 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
105 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: ...
1
vote
0answers
72 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
150 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
41 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
81 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
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
354 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
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
66 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 ...
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
241 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
605 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
212 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
60 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
697 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
42 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
71 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
60 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
0answers
3 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
31 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
23 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
0answers
47 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
35 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
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
0answers
103 views

Sharepoint 2013 - replacing links in Picture Slideshow

I'm using SP2013. The links in the OOTB Picture slideshow link directly to the image. I need to change the array that is default with some sort of script (which I'm not great with). I did find this ...
0
votes
0answers
649 views

How to load script from hive in display templates

I'm trying to load a script from the hive in my display template. I've tried <script src="/_layouts/15/1033/comany/js/bootstrap.min.js" type="text/javascript"></script> and <...
0
votes
0answers
1k views

Run PS Script from workflow SP2013

I saw the great feature developed by iLoveSharePoint here. But this is for SP 2010, and 2013 compatibility is not sure. Have you heard about any other stuff to do the job ? Running powershell scripts ...