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

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
2answers
4k 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 ...
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 $...
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
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. ...
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
1answer
686 views

How to change text encoding when inserting values inside a sharepoint list using powershell?

I'm using french words with special characters like "é" "à" etc. When I trying to insert text in my list fields using powershell, it does insert the values but the characters aren't well encoded. For ...
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
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 ...
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-...
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
2answers
809 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 ...
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 ...
2
votes
1answer
121 views

“Custom Scripts” setting inside our tenant, How it works exactly

I spent many days reading about how "Custom scripts" work for sharepoint online, but i can not fully understand it. for example we have this case. inside SP admin center >> Settings >> we have custom ...
1
vote
1answer
44 views

Is there a way where we could provide “Read” permissions to a user to a SharePoint Online site using Powershell

I am trying to create a powershell script via SharePoint Online Management Shell, where I will provide "Read" permissions to a user. Most of the articles I read is that we could only add the user as ...
1
vote
2answers
38 views

Need to have buttons on InfoPath form in a Site Page to direct to a specific URL

I have an InfoPath Designer form that I created and placed into a Site Page. Now I would like each of the buttons on this form to be able to direct to specified URL. I've tried adding the script below ...
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 ...
2
votes
2answers
1k views

Pop Up On Load SharePoint 2013

I am trying to get a modal to appear when the site loads. I created a site page called Disclaimer.aspx and stored it in the Site Pages document library. I created a text document called popup.txt ...
1
vote
1answer
44 views

Scripts Not Working in Content Editor

I have a generic out of box web part page. I have added a content editor web part on that page that links to a HTML file because I want to build my own custom form via HTML. Here is the HTML file. &...
0
votes
2answers
208 views

Get-PnPList not working correctly with subsite's subsite

I am using below code to get lists of all subsites. But it is failing after one level of sitecollections. i cant connect with each web using Connect-PnPOnline as it takes too much time. Please suggest ...
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
2answers
47 views

SharePoint site online deletion

I mistakenly launched a script that allows the removal of SharePoint online sites and I deleted a very important site. Is there a way to retrieve it?
1
vote
1answer
38 views

Can the latest versions of SharePoint support code snippets?

I want to create a dashboard at work. Due to company restrictions, our best bet is to create one in SharePoint. This means we have to extract the data from an Oracle DB and use the data to create the ...
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 ...
2
votes
2answers
14k views

Run Powershell Script from Sharepoint page

I use a PS script to create a list. Instead of a scheduled task, I wondered if I can put a link or a button on a sharepoint page, that when you click on it, it runs a PS Script on the SharePoint ...
0
votes
1answer
817 views

Create folders and subfolders in document library using client object model using JSOM/ECMAscript

Regarding the link below Create folders and subfolders in document library using client object model can i get the same functionality achieved using JSOM/ECMA SCRIPT
1
vote
3answers
276 views

Sharepoint traffic light

My boss wants me to make a traffic light system inside a list, which changes colour depinding on the values of a column, using javascript(has to be javascript!) in sharepoint 2013. I found a guide ...
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 ...
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
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
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"...
2
votes
2answers
4k views

How to identify the jobs which are running?

I need to find the jobs which are running currently. This is to check the longest running jobs. Is there any powershell sript to get this done?
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 ...
2
votes
1answer
180 views

Unable to upload a design package by using powershell scripts?

I need to Upload the Design package (.wsp file)by using Powershell scripts, I tried to run below commands but it throws an error message The term 'Import-SPDesignPackage' is not recognized Add-...
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 ...
0
votes
2answers
48 views

custom Complete button

I have been requested by my manager to create a complete button which would perform the validation of the edit form and then save the item in the list. I know this can be done through a save button ...
0
votes
3answers
40 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
2answers
266 views

An unexpected error has occurred at SharePoint 2010

I'm trying to attach a script to a list page in order to hide a column depending on the user's permissions. This is the code I put on the aspx using SharePoint Designer 2010: <asp:Content ...
0
votes
2answers
554 views

Automating SharePoint uploading

Issue Summary Working at a client site They want weekly status reports uploaded to SharePoint. I have Win10, PowerShell and URL of the SP directory Question Do you know a way to automate the ...
0
votes
1answer
5k views

SharePoint 2013 Easy Tabs - Link to Specific Tab

Goal: Hyperlink goes to/makes active specified easytab tabbed web part on page I've been going round & round, experimenting w/differing easy tabs scripts & scripts to make linking to a ...
0
votes
2answers
78 views

How to set default value for user profile property (string property)?

How to create SharePoint user profile property using powershell script with default value.Anyone suggest idea to do this.
1
vote
3answers
781 views

Sharepoint - add script to Team site?

How can i add a custom script to a team site page? I have this new page UI designer that i don't get. How do i add a web part with my own css or js code? I can not find any solution to add my own code....
1
vote
3answers
213 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
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 ...
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. ...
1
vote
2answers
2k views

PowerShell : How to pull user by Email from User Profile Store in SharePoint?

I have a requirement where I need to get a user from User Profile Store in SharePoint but the only thing I have available is Email. This field is unique in HR system. How can I pull user just by ...
0
votes
1answer
182 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 ...
1
vote
1answer
27 views

Script for searching sites with specific AD groups

I have to get the list of sites which are using any of the 3 sharepoint AD groups. Here is function responsible for this: function Search-Groups ($Web, $FilePath) { try { foreach($...
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 ...
2
votes
1answer
239 views

Get current url inside a Script Editor

I would like to open a New Item Form inside a Dialog. For this approach I'm using the following code: <script type="text/javascript"> string SiteUrl = SPContext.Current.Site.Url function ...