Stack Exchange Network

Stack Exchange network consists of 174 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

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

0
votes
0answers
26 views

Hashtags are coming when export data to CSV file while using powershell script

I am running one powershell script for getting data from SharePoint document library. While run the powershell script, data came to csv file, but columns names are coming with ";#" hashtags. for ...
1
vote
3answers
57 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
21 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
33 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 ...
1
vote
1answer
56 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"...
0
votes
0answers
29 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
31 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
40 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
2answers
145 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
0answers
16 views

Filtering List items script

I'm doing filtering to list data and the code works fine but its too long, is there a better way to write this? here's some parts of my code inside one repeater there's multiple Divs and I show/hide ...
0
votes
2answers
203 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
333 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
0
votes
2answers
40 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.
0
votes
0answers
364 views

Script to Create Folders and copy using CSV

I am sorry if my question is too easy... I am newbie in Powershell scripting. This is my scenario: I have one Picture library with 9 thousand pictures, and I need to redistribute these files to a new ...
1
vote
3answers
304 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....
0
votes
0answers
23 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
59 views

What is the relation between enabling “Custom Script” and the ability for users to add Scripts Editor web parts inside office 365 sharepoint sites

I am working on an Office 365 sharepoint online team site collection. and currently inside the office 365 admin section the custom script have these options disabled:- As shown in the above picture, ...
1
vote
3answers
141 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 ...
0
votes
1answer
20 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
95 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
26 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
73 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
0answers
62 views

Cannot have two clickable images in one page?

I have created a clickable image script (using image-net) and inserted it into a content editor web part. I have then created a second clickable image script and inserted it as another content editor ...
2
votes
1answer
171 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 ...
0
votes
2answers
58 views

Format drop down menu [closed]

I found a great code here for creating a drop down menu. <select id="mySelect"> <option value="-">-</option> <option value="http://www.google.com">Google</option&...
1
vote
0answers
45 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) $...
2
votes
0answers
118 views

What scripts and other files I need to be able to show user presence and person card? [closed]

I have a page with no resource links. What SharePoint script and style files I need to show user presence indicator and to use a function ProcessImn() correctly? Now I have only a presence status ...
3
votes
1answer
73 views

How to create blank page (.aspx) but with core scripts?

I have created a blank page, but then for example ProccessImn() function or _spPageContextInfo variable is not defined. That is because there are not included .js files links I assume. But what links ...
2
votes
1answer
345 views

Sharepoint online powershell script to get digest of all subsites in a site collection

Is there someone who created a working script for SPOnline that lists in Excel compatible the URL of all subsites in a site collection? Something like this www.domain.com www.domain.com\subsiteA www....
3
votes
3answers
187 views

Is Security Trimming Possible in the Script Editor web part?

PROBLEM: I have a single web page in SharePoint that I want to Security trim. Since it's a one-off page, I don't want to change the master page I just want to lockdown this specific page using the ...
2
votes
2answers
377 views

How can I run this script against multiple sites

I have a new SharePoint deployment we are in the process of upgrading from SP2007 to SP2010. During the visual upgrade a lot of the branding element have been broken and the organisation has a ...
0
votes
0answers
59 views

Is it possible Check in all documents SharePoint 2013 using power-shell for particular user?

Is it possible Check in all documents SharePoint 2013 using power-shell for particular user. I have to check in all document which are present in site collection for all the library for particular ...
0
votes
2answers
348 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 ...
3
votes
1answer
59 views

Change font and size of button - no designer or jquery!

I have created links to document templates using the source code as opposed to URL (URL links do not open read only and not in the relevant library) - I used the guide here And have created a button ...
1
vote
2answers
122 views

Running script as a farm administrator

I'm trying to run a script that will generate all of the system account passwords. I have run it the past, but now when I try to run it I get an error that says You need to have Farm administrator ...
1
vote
2answers
567 views

How to Hide Dialog Tile using CSS in Script Editor webpart in SharePoint On premises

I am using SharePoint 2013 on premises environment. I am opening a page (Pages library) in a popup. I want to hide the dialog title using Script editor web part, and achieved the requirement ...
1
vote
0answers
118 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
1answer
93 views

How to get a managed metadata column value from first list item in a script editor webpart?

I have some list "SiteInformation". In this list there is always 1 list item. In this list item there is a managed metadata column. I would like to create some script editor webpart. Inside this ...
0
votes
1answer
353 views

Update workflow settings of existing workflow attached to a list

Workflows can be set to trigger on item created, item updated, manually and etc. I have a workflow attached to a list which is by default set to be triggered on item create event. Using powershell I ...
0
votes
2answers
532 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
0answers
34 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 ...
2
votes
3answers
217 views

Using JavaScript to force all my site collections' logos to reference the root site collection is only working on IE

I am working on a SharePoint Server 2013 and I have 4 site collections. I want to always redirect users to the root site collection if they click on the sites logo from the 4 site collections, so I ...
0
votes
1answer
141 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: ...
3
votes
2answers
261 views

Copy files from specific SP folder every morning from client

Context Using PowerShell, I was hoping to schedule a task to pull down files from specific folders on SharePoint automatically every morning. It seems fairly simple, but I cannot even manage to ...
1
vote
1answer
580 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
0answers
64 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
218 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 ...
2
votes
1answer
1k views

Powershell script to get user permissions

I need a script that will list all sites within a web application with their users and given permission. I found this script which will do basically the same I need, with one problem. It won't get ...
4
votes
1answer
469 views

Memory usage problem with powershell script

I recently had to build a powershell script to run trough all webs, subwebs, lists and items within a site collection to check what hasn't been used for a certain period. This went ok in my ...
1
vote
2answers
42 views

Help understanding powershell script

I want to list all webs in one site collection via powershell and adapted this script from the internet: Get-SPWebApplication http://site | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title,...