Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

learn more… | top users | synonyms (2)

2
votes
2answers
32 views

Value does not fall within specified range error when adding folder - JSOM

I am attempting to use JSOM to add a folder to a pre-created folder within a specified library. In the code below, I have checked that all of the variables are functioning as expected - meaning the ...
0
votes
0answers
24 views

Distinct Values selection in list column using rest

I am selecting top 500 rows from the list using below REST API method. I want to select only distinct values for ESI_ProjectSeqNoLookupId column. Please explain in below code where to insert ...
0
votes
0answers
22 views

Dynamically display media content in pager viewer when selecting items from a list

I want to display 2 webparts - side by side - on a page. The left side is a Page Viewer web part that is linked to a panoscan image URL and the right side is a list of panoscans with a URL column. ...
1
vote
2answers
70 views

JavaScript alert in SharePoint office 365 not working

A simple JavaScript alert for script editor is not working on clicking ok. I am using sharepoint office 365.
1
vote
1answer
25 views

How can I script a link to a document in a Wiki page to open in the desktop client application?

I have a Wiki page which describes how to use an Excel spreadsheet, and includes a link. As the spreadsheet contains macros, I want it to always open in the desktop application, rather than Online. ...
0
votes
1answer
27 views

JSOM: get_lists() doesn't retrieve “Shared Documents” document library

I'm developing Sharepoint Add-ins using the Visual Studio 2015 environment. I'm using the JavaScript Object Model to develop this add-in. I want to get list of files from the Sharepoint website ...
0
votes
3answers
52 views

How i can set the “Due Date” field (on the fly) to be equal to Today date, when the “Status” dropdown list is changed to “In progress”

I am working on an issue tracking list inside SharePoint enterprise server 2013, where it contains these fields:- “Due Date” Item status Now our customer, asked us to implement this ...
0
votes
0answers
19 views

Start a workflow task and assign it with JSOM

I am trying to see if it would be possible to start an Approval or Collect Feedback workflow with JSOM. There is some documentation out there for kicking off a workflow with JSOM: ...
0
votes
2answers
18 views

Using field data with javascript in SharePoint Designer

I'm having trouble calling the field data in some javascript. Basically I need: videoFilename = 'Name that user puts into Video Name field' I thought perhaps i could just add it like in a ...
0
votes
2answers
30 views

How to automatically populate a “publish date” to be equal to today date, when selecting an item status to be = “Published”

I have an issue tracking list inside my SharePoint 2013 enterprise server. The issue tracking have these columns:- Item status. In progress, Cancelled, Published Publish Date Duration in months End ...
0
votes
1answer
45 views

Simple clientContext.get_current throws undefined error

I have just started developing with Sharepoint Add-ins. I'm using the JavaScript API. Find below my code: 'use strict'; ExecuteOrDelayUntilScriptLoaded(getAllFiles, "sp.js"); ...
0
votes
1answer
18 views

JScript runtime error on different machine for same code

I am using 3 Update panels in my code. After changing of my Virtual Machine I am getting below mentioned JavaScript error in a pop Up: Microsoft JScript runtime error: ...
0
votes
0answers
15 views

Client People Picker difference “Share” and custom

I can't wrap my head around the difference when adding a custom client people picker, and the one that's being used in "Sharing" (/_layouts/aclinv.aspx). The peoplepicker in "Sharing" resolves new ...
1
vote
0answers
35 views

REST abstraction layer WITHOUT jQuery

I am finding myself programming stuff that someone else must have done before . https://github.com/SamDHarris/SharePointStuff https://github.com/SteveCurran/sp-rest-batch-execution ...
1
vote
1answer
52 views

Color Row if Date in column = Sysdate in SharePoint Foundation 2013 using CSR

I´m using a List with about 400 Rows, for each day one. Now i want to color each row where the Date is a Day of Weekend (Sat & Sun). This Part is wokring fine with this JS var statusColors = { ...
0
votes
0answers
18 views

I have a web part which needs to communicate to built project online web part which called Basic Info

In this case I need to add a Content Editor to make a connection between my web part and Basic Info. Is there any way to communicate between web part and Basic info without any Content Editor? I'm ...
0
votes
1answer
49 views

Refresh parent page after calendar event creation

I have created a new page with a default calendar webpart. Below is what I'm doing. Click New Event and the popup gets opened Fill-in the event details Click Save and the event gets saved Calendar ...
3
votes
2answers
58 views

Problems getting executeQueryAsync to work with Promise

I am busy with a piece of javascript which has problems working correctly. I am trying to work with a loop which contains an executeQueryAsync. When this one is executed it doesn't go straight to the ...
0
votes
2answers
56 views

All of the sudden i get “Unable to get property 'split' of undefined or null reference”

I have a SharePoint public site branded and it was working fine when out of the sudden the slider with images stopped appearing and I get this error : Unable to get property 'split' of undefined or ...
0
votes
2answers
70 views

Item Edit Form: Delete Item on “Cancel”

I am building a custom list item edit form using SharePoint Designer. I need the item to be deleted when user clicks "Cancel" button (same functionality as he would press "Delete" in ribbon). I ...
0
votes
1answer
56 views

How to include buttons in SharePoint list view?

I have a list in which I want to easily and quickly get an entry time and an exit time, so the best solution would be to have, for each item already created, two buttons. When clicking on it, it ...
0
votes
1answer
27 views

Does a Sharepoint 2013 Online hosted Add-in have to create an app and app site?

Based on these Guides: https://dev.office.com/docs/add-ins/overview/office-add-ins https://msdn.microsoft.com/en-us/library/office/fp142379.aspx Is it possible to create a SharePoint Online 2013 ...
0
votes
2answers
39 views

Disable Edit WebPart and/or Snippet link in a Script Editor Web Part on SharePoint Page?

I know it can be done with client side coding, but maybe there is a built in way to do this in SharePoint 2013. I have a web part I share with other sites, but do not want site administrators seeing ...
0
votes
1answer
34 views

Sharepoint 2013 Client Side Rich Text Editor saving troubles

I'm trying to get a rich text field from the DOM and save it via javascript and its Sharepoint Client Context.I have an XSL form that creates a Sharepoint Form Field with a structure that's something ...
0
votes
0answers
18 views

Button Changes to Green bu [duplicate]

input name="Button51" type="button" value="U" style="background-color: #FF0000" onclick="style="background-color: Green"" /> Criteria: SharePoint 2010, custom list with custom red buttons ...
2
votes
1answer
30 views

Insert JavaScript automatically to new pages added to SharePoint wiki library

I wanted to Insert JavaScript automatically to new pages added to SharePoint wiki library. Instead of users manually adding the script to each page, it should be present by default or added ...
0
votes
0answers
57 views

SPUtility not working on Custom edit Form

I have created new Custom Edit Form for one of my List and trying to set Value using SPUtility.js. I am constantly getting error Unable to get a SPField named Title(Field Name) But same piece ...
0
votes
0answers
16 views

SP 2007 makes IE to hang while running a jssor code

I'm using a jssor slider with vertical navigation (no-jquery version) on Sharepoint 2007 page within CEWP where i have replaced all the image links to images store under SP image library and ...
0
votes
1answer
43 views

In a search display template, is there a search property available for the actual text (k=…) in Srch.U or any of the search objects?

I'm trying to add the searched text value to the query string in the url (<a href='...?searchText=[something]'>Title</a>) In the search display templates, I see ctx and Srch objects ...
2
votes
0answers
34 views

Filtering Lookup Column By Expiration Date [duplicate]

Scenario: I have created a lookup column with two columns. A department column and Expiration Date column. Each Department has a Expiration Date. For example see the image. When the Department ...
0
votes
1answer
35 views

how to refresh the page when i click the asp image button? [closed]

When i click the image button, page should refresh and show the data i tried in javascipt ,jquery but i am not getting please someone help for this.. Thanks in Advance. here is my code : ...
0
votes
1answer
25 views

filtering webservice request with viewXml

Situation I have a Ajax query that gets all items from my list it gets all items (1000 ish) and the query alone takes about 1.3 seconds of the total load time of 1.5 seconds. Problem I know this ...
1
vote
2answers
70 views

Create New Document Without Opening

I have a document library with custom content type (template). When I click the "new" button in the library it lets me to choose the template for new document or folder (default functionality). Then ...
1
vote
1answer
61 views

Files move from one library to another library using jsom

Below code is working fine, but inside for-loop if I put alert,then moving multiple file but if I remove, only one file moving. I do not want any alert/pop up. Please suggest. ...
0
votes
1answer
86 views

Export Html table into Excel

I have written the code in .JS file to fetch the data from sharepoint list and display in html table. Now to take my work for next level I need to export the html table to "Excel". The below code is ...
0
votes
1answer
81 views

Button Changing colors in a SharePoint list [duplicate]

I am using SP2010 and I have a javascript that I am using to change color of a button in my document library. I have added an input button in a library column, which is calling javascript onclick. My ...
1
vote
2answers
62 views

Hide a specific list from 'View All Site Content' using JSOM/CSOM?

I see you can make a list hidden by using SharePoint Designer (http://www.sharepointdiary.com/2013/06/how-to-hide-list-or-library-in-sharepoint.html) which I am not interested in. It is okay if the ...
0
votes
1answer
23 views

Open In Explorer using Javascript outside masterpage

The following code works like a charm when executed from an aspx using the sharepoint masterpage. However, I need it to work from an html file in a document library on the same site. e.g. Works when ...
0
votes
0answers
14 views

contents of a list in EditForm.aspx disappear when a Postback function was triggerred

I have a javascript file in the masterpage that triggers postback function to change list displayed in my custom DVWP megamenu. This runs on page load in ALL page in my Site. The code is working ...
0
votes
0answers
13 views

How to detect a customize EditForm.aspx (Sharepoint 2007)

Scenario: Admin will create a custom Edit form aspx page. Q1: Is there a way a javascript can detect the new edit page of the List? Thanks
0
votes
1answer
89 views

Get person or group field from list then query user profile

I am currently working on SharePoint 2013 on premise and I am trying to use JavaScript to get the latest 3 "new starters" from a SharePoint list then return information about them such as the ...
0
votes
2answers
72 views

Jquery conditional dropdown validation question

I have multiple Sharepoint dropdowns validation but I will show only two on my code. I can't seem to find where the problem is. The logic is if the user choose from any dropdown values <> "yes" ...
0
votes
2answers
54 views

Open list element in modal view from a site page

I'm trying to include a link in a site page that leads to a specific element of a list.. I need the link to open the element détails in a modal dialog box instead of sending me directly into the ...
0
votes
1answer
40 views

Export out data view list to Excel

I have a data view list made using a linked data source of several SP lists. I tried to make it so that the data view list can be exported out as Excel, just like SP list. Is this possible? I tried ...
0
votes
0answers
15 views

CustomJavaScriptFileUrl references script twice - should it?

I'm using PowerShell to provision a SharePoint solution and I'd like to include a link to a javascript file on all pages throghout the site (SharePoint.SPWeb.CustomJavaScriptFileUrl) What seems to be ...
1
vote
1answer
49 views

how to create publishing page in pages library using ecma or rest in SharePoint 2010

I want to create publishing page in pages library via JSOM (ecma script) or REST api. Is there any way we can create in SharePoint 2010? Please let me know if anyone has any idea? Thanks, Rajeev K
0
votes
3answers
52 views

How can I have yes, flagged and no buttons in a column

I have a document library where the CEO wants to see three buttons. If he has read the document he wants to click on Yes, otherwise it will always be No. If he clicks Flag it means it needs to be ...
3
votes
4answers
197 views

Add custom JavaScript to SharePoint 2013 list

I need to add a custom JavaScript link to my SharePoint list, so it would only affect that list. I don't need to add it to any other forms. How could it be done? I was thinking, if to change .aspx ...
0
votes
0answers
44 views

Custom Thumbnail view with javascript as asset library

At the moment I am creating a teamsite for my team at sharepoint 2013. My problem: I want to create a special view for my document site. I followed these instructions from an external sharepoint ...
0
votes
1answer
52 views

Custom Ribbon Button with javascript

Hi i'm working on a sharepoint Addin i wanna create a custom ribbon button using javascript , i tryed with xml it's work fine using this code : <?xml version="1.0" encoding="utf-8"?> ...