Questions tagged [script]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
33 views

CDN files not Created in temp/deploy when shipping

I created modern script editor web part using this : https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor Enabled CDN using SharePoint Power Management Shell https://www.c-...
user avatar
0 votes
1 answer
52 views

What are the risks (if any) if we install the react-script-editor web part inside our SharePoint online tenant

I am working on a new SharePoint online tenant, and one of the requirements is to have a modern web part that is similar to the popular on-premises/classic Script Editor web part. so i found this SPfx ...
user avatar
  • 2,224
0 votes
0 answers
262 views

Automatically update All Day Event field to Yes in Event List Edit view

To precursor my ask, I have implemented the script to automatically check the All Day Event checkbox for both NewForm.aspx and EditForm.aspx in my SharePoint Event Calendar lists. There are variations ...
user avatar
0 votes
0 answers
22 views

Is there a way to remove the bottom status bar of a PowerPoint Show file shown in Script Editor?

I think I have finally found a way to force a PowerPoint SHow file (ppsx) to open properly using the Script Editor WebPart....HOWEVER.....What I would LOVE to hide or remove is the status bar (added ...
user avatar
0 votes
1 answer
121 views

Two Lists: Choice field (lookup column) in first list should auto-filter column in second list. Help!

I have two SharePoint lists on the same site. One list (List A) has a lookup field (called Select Material) that displays the variables in the "Description" column in list (List B). I have ...
user avatar
0 votes
0 answers
365 views

Can't embed code that contains script on Wiki page

I'm trying to embed some code on a wiki page in the Modern Sharepoint site but I get the following error: This HTML cannot be inserted because you don't have access to add scriptable Web Parts in ...
user avatar
  • 101
1 vote
3 answers
206 views

Unable to permanently change the font size and weight inside a sharepoint modern page (the class name keeps changinag)

I have added the list modern web part inside a sharepoint modern page >> and i need to change the font size and weight >> so using the F12 dev tools i inspected the related class (.root-...
user avatar
0 votes
2 answers
107 views

Cannot upload files to Style Library even though custom scripts is set to 'Allowed'

I am a SharePoint site admin with full control, but I am unable to upload files or create folders in the Style Library, even though I've allowed custom scripts from the central admin. The site level ...
user avatar
0 votes
1 answer
40 views

Add SharePoint page name in a webpart

I've made a HTML + CSS menu on a page which I happy with. Ideally I wanted the name of the page to appear in it. This way I can use the web part across the site and it will change the page name itself....
user avatar
0 votes
1 answer
29 views

SharePoint 2013 - Warning Prompt before sharing

I'd like to warn users before sharing a file or a site to "Everyone" by showing a pop up. Is there a way to do this ? Maybe by editing the master-page on SharePoint Designer ? Thank you for ...
user avatar
  • 5
0 votes
1 answer
45 views

Display Date from calendar list in Content editor

I have a calendar list that displays outages of various products. ex. Product 1. | 1st Jan. | server down Product 2. | 1st Jan | server down Product 3. | 5th Jan. | maintenance On top of this list ...
user avatar
  • 1
0 votes
1 answer
40 views

Cannot script check in of deeply nested draft documents using PnP

I have a site that was just migrated to SPO, and had "require checkout" turned on by default on the Documents library. Users have since bulk-uploaded a few hundred docs without checking them ...
user avatar
  • 2,660
0 votes
0 answers
49 views

Powershell Transfer files under multiple subfolders to another folder under same Document Library Sharepoint

I have a document library "Documents1" which has multiple folders (aa, bb,cc, dd, Redundant). Trying to write a powershell script to move files placed in multiple sub folders to folder "...
user avatar
0 votes
1 answer
54 views

scrap SharePoint folders?

I have an old SharePoint (not SharePoint Online) with multiple parent folders by US States and child folders with different Years. Each year has folders by Orders. I want to go check in each Order ...
user avatar
0 votes
2 answers
228 views

Remove anonymous link from SharePoint thanks to PowerShell

I am currently working on a script that should remove an anonymous link from SharePoint using Powershell. I don't know where to start and i would like to know if somebody has an idea on how to do it. ...
user avatar
1 vote
1 answer
732 views

remove an access from a specific person to a specific file or folder of Sharepoint et Onedrive using PowerShell

I am actually working on a script that should remove access from a specific person to a specific file or folder. We can share files to person from outside our organisation using Onedrive and ...
user avatar
1 vote
1 answer
61 views

Why is my SharePoint script only working for me?

I have full control permission levels over my department's SharepPoint 2013 team site. I have inserted a jquery in a script editor web part located in my list's New Form. It works perfectly for me ...
user avatar
  • 13
1 vote
0 answers
26 views

Sharepoint 2016 Live Chart Script

Does anyone have a code to input into SharePoint to create a Live Chart (Pie,Bar, Line) that receives its data from a SharePoint list. I am a novice code builder and can not seem to find the right one ...
user avatar
2 votes
1 answer
375 views

Create a document library in a sharepoint online site with python

I am trying to create a document library with a python script. I have tried doing it using Microsoft graph but I am having trouble doing with POST request and I didn't succeed. I also tried doing so ...
user avatar
0 votes
1 answer
22 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-...
user avatar
  • 156
0 votes
2 answers
697 views

Javascript to retrieve and validate file attachments in new item form

I have a requirement to inject javascript via a script editor web part into a form and validate that it's not a macro enabled Excel file (xltm or xlsm), and throw a validation error if it is and not ...
user avatar
  • 744
1 vote
1 answer
384 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
0 votes
2 answers
5k 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 ...
user avatar
  • 371
0 votes
1 answer
227 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 ...
user avatar
1 vote
1 answer
504 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 ...
user avatar
1 vote
2 answers
365 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 ...
user avatar
  • 371
2 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
36 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 ...
user avatar
1 vote
1 answer
423 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. &...
user avatar
  • 125
1 vote
2 answers
3k 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 ...
user avatar
1 vote
1 answer
1k 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-...
user avatar
1 vote
2 answers
70 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?
user avatar
  • 15
1 vote
1 answer
86 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
1 vote
3 answers
2k 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 ...
user avatar
2 votes
1 answer
43 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 ...
user avatar
  • 21
0 votes
0 answers
308 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 ...
user avatar
1 vote
1 answer
245 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"...
user avatar
  • 439
0 votes
0 answers
62 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 ...
user avatar
  • 765
0 votes
3 answers
121 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 ...
user avatar
0 votes
2 answers
195 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 ...
user avatar
0 votes
2 answers
619 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 ...
user avatar
  • 3
0 votes
2 answers
4k 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 ...
user avatar
  • 121
0 votes
1 answer
2k 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
user avatar
0 votes
2 answers
200 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.
user avatar
  • 1,095
1 vote
3 answers
1k 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....
user avatar
0 votes
0 answers
40 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. ...
user avatar
  • 1,077
1 vote
3 answers
354 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 ...
user avatar
  • 41
0 votes
1 answer
190 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. ...
user avatar
  • 91