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)

0
votes
1answer
16 views

Looping through CQWP li's

I have a CQWP that executes the following JS: var projectstartdt = $(".hiddenProjectStartDate").html().split(/\-|\s/); var ProjectStart = new Date(projectstartdt.slice(0,3).join('/')+' ...
0
votes
1answer
25 views

Java Script With Sharepoint Designer 2013

How can I Implement the following : I Created Custom Edit Form for my custom List with tow field ( title , checkedIn ), when you click save button i want to show alert message (yes/No) , if You choose ...
0
votes
1answer
23 views

Javascript help with retrieving data from list SP2010

I would like to retrieve data from a list that has 2 columns but 4 fields. Ex. I need the calculation from monthly & yearly cost from group 1 and calculations for monthly cost & yearly cost ...
0
votes
1answer
20 views

How to check page layout from javascript of current page in sharepoint 2013?

Does anyone know how to check page layout from javascript of current page in sharepoint 2013? Ideally I would prefer to not use any ajax calls. Thanks
0
votes
2answers
68 views

How to add an default Image to SharePoint list item?

I have a column named photo How can I add a default image in a list item, which in my case is photo? for example If a user does not have the proper image for an item, or if he forget to add image. ...
0
votes
2answers
44 views

Filter Conditon in Rest API query Not Working

Here ESI_ProjectSeqNoLookup/Id is a Lookup Column so expand used and filter ESI_AFENo type is Hyperlink or Picture. This query is not working. query.RestQuery = ...
0
votes
1answer
28 views

Filter Condition in Rest API query with passing textbox value

The below mentioned query is correct or not because i am not getting the textbox values. #txtAFENo. It is textbox id , passing directly the textbox value. query.RestQuery = ...
0
votes
1answer
31 views

SharePoint Apps and Promises / Deferred when performing work on data

I have found allot of resources which point out how to handle a simple promise or deferred Async call in SharePoint apps. (for example) But I cant understand how to properly use a promise if I am ...
0
votes
1answer
25 views

Javacript with MDS loads each way only one time

i like to do a simple javascript execution with MDS and without MDS. To do this, I have used this Javacript only executed on first page load HowTo to get work. The Problem i have, is that the script ...
3
votes
2answers
249 views

jQuery CDN reference in SP Online MasterPage changed magically

My custom MasterPage deployed to SharePoint Online contains two links to JavaScript libraries on CDN's. Like this: <script type="text/javascript" ...
0
votes
3answers
38 views

Javascript file mapped to a Lists

One of my SharePoint List running on SharePoint 2013 has a Content Editor WebPart which is mapped to a Javascript file. If I save the SharePoint List as a Template, will it store the Content Editor ...
0
votes
2answers
19 views

How to connect non-sharepoint site to create items in SharePoint (both on same machine)

Scenario: I've created a custom list 'TestList' in SharePoint On this same server, I created a simple (non-SharePoint) website in pure HTML Please how can I connect the form on this ...
0
votes
1answer
38 views

Add a script to all SharePoint lists?

Recently I've added a script for one of my Custom Lists in SharePoint Enterprise 2013 which will make Sticky Headers. It was very use full and now all of my users asked for the same capability in ...
0
votes
1answer
29 views

How to get specific string from the email content that store in the SharePoint and show the string in the another column?

If the email store to document library (not as attachments to other list items). How I could just retrieve the specific string from the email text for the current user and show the result in the ...
3
votes
2answers
191 views

Display online users (SPO)

I have a requirement for SharePoint Online users to see what other users are currently online. Is there a way to achieve this with client-side code? Javascript/jQuery?
0
votes
0answers
38 views

Copy list item value to another in SharePoint using REST API

I am trying to auto increment a value for a specific column in SharePoint list. How to copy list item ID value to another column of of a SharePoint list (e.g ProjectID). I tried this code ...
1
vote
2answers
32 views

JS Error in sp.runtime.debug.js

sp.runtime.debug.js?rev=VFkBZgkYpbAZS6abSrBqIg%3D%3D:2814 Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. This is in: sp.runtime.debug.js ...
0
votes
1answer
23 views

Search Driven Navigation for SharePoint Online

I'm trying to set up search-driven navigation for SharePoint Online on my site collection. I'm following this: ...
0
votes
1answer
62 views

Javascript csom to get lookup/person or group value

I am trying to get values of few lookup columns and person or group column of my list using the below code var context = SP.ClientContext.get_current(); var web=context.get_web(); var ...
0
votes
1answer
24 views

Why is my SharePoint site still caching an old javascript library I stopped using?

I have copy and pasted a html form with libraries attached being linked in embedded code. I've gotten rid of all references to one library but I'm still getting the following error: (Internal ...
0
votes
1answer
21 views

Start Workflow from ModalPopup and close it using jquery

I am calling workflow from modalpopup on form submit and closed popup after it. Here is the code on submit button ECS_ProviderSubmit.js: ...
0
votes
2answers
22 views

SP13: Upload Image and Appear on a Page

Scenario: I am not sure if this is an out of box way to do this. If I upload a photo to a library I want the photo to appear on the home page in particular section of the page with a border...etc. ...
0
votes
1answer
38 views

Retrieve list items using Search API

My requirement is to retrieve list items using search API instead of rest API. I have used a content type for the list but I am unable to retrieve the items in the List.This is due to the incorrect I ...
0
votes
1answer
51 views

Add current user (read) to contributor permission group on page load

I want to add current user(read) to contributor permission group on page load but below code is alerting 'undefined': var user; var spGroup; function AddUserToSharePointGroup() { var clientContext = ...
0
votes
3answers
60 views

JavaScript not running in Script Editor

I have a script editor web part on a page in my site. I have the following code in it: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> ...
0
votes
0answers
20 views

Make this code to Asynchronous to Synchronous call in Javascript using for loop [duplicate]

I am having values in result[15452,33616] when using for loop ,The for loop for i=0 it takes the value of result[0]=15452 ,it is not going to async function.The loop continuing ,after loop over only ...
0
votes
2answers
43 views

update list code doesn't seem to working

I am trying to update to update list when user clicks on "Edit" button but below code doesn't seem to be working.. <h1 align="center">DemoList</h1> <table id="maintable"> <tr> ...
1
vote
0answers
66 views

SharePoint 2010: Use JavaScript to Create Document Library List Item from Content Type

I have two document Content Types with a Document Template attached. The Document Template has quick parts (document properties) that reference back to fields in the content type. We are required to ...
1
vote
2answers
28 views

Add a Comment to Field items on a List

Basically I am attempting to replicate Excel's ability to add a comment to an item on a list. (The little popup boxes that can be added to Excel cells that come up with a mouse hover or click) I would ...
0
votes
1answer
51 views

SharePoint Query String Filter not working with space

I am creating a url that looks like this: "http://servername/sites/mywebsite/sitespages/page.aspx?ProcessName=my initial process" But when I redirect SharePoint to that page using: ...
0
votes
2answers
34 views

How do I insert the referring page URL into list column in SP2010?

I have a feedback form (newform.aspx) which will be linked to from many different collaboration sites in SP2010 site collection. I would like to capture the referring page and insert it into the form. ...
0
votes
4answers
49 views

Hide empty columns in view

its possible to hide empty column(s) from view(webpart) in Sharepoint 2013? I was looking for any javasript solution, but unfortunately i have found only solution for boxed style. Hide columns from ...
0
votes
2answers
46 views

How to give group visitors permission to run custom JS?

I have a custom JS file located in siteassets in the homesite https://companyxxx.sharepoint.com/SiteAssets/scripts/custom.js I have added this JS file in the masterpage of one of my collections and ...
0
votes
1answer
36 views

Sharepoint 2013 REST Retrieve list info presave items

I have successfully retrieved a specific item using REST with SP2013. Issue is that value is populated AFTER page load hence I cannot do a comparison on PreSave event. It shows as undefined and later ...
0
votes
1answer
54 views

SP.ArrayListEnumerator check if length = 0

I have one object in my code that is of type SP.ArrayListEnumerator, and I want to check if its length is 0 or not. How do I do that using JavaScript?
4
votes
0answers
57 views

Replacing SOD with fetch (handling JS library dependencies - *in the future*)

Anticipating a future, I am experimenting with User Custom Actions in the new Document Library View Microsoft has so kindly provided to the First Release Office365 tenants. Since there is almost ...
0
votes
0answers
22 views

How to Dynamically Change a Value in the Column of the Current Item Through Clicking Hyperlink in Email

I have a script on Content Editor Web Part that me and my coworker tested on a list called TextTestList. The requirement is: When user clicks a hyperlink in email, received from a Workflow, that ...
0
votes
1answer
32 views

Can UserCustomActions run on a web only?

In a site collection there is a particular subsite where I need to apply a UserCustomAction. It will be a basic JavaScript function that prompts for acknowledgement and sets a cookie. The need to do ...
2
votes
1answer
51 views

Call Javascript code in Custom Ribbon Action for office 365

I want to call my javascript code in custom ribbon action in SharePoint online. I tried this code. <?xml version="1.0" encoding="utf-8"?> <Elements ...
0
votes
1answer
67 views

Color a cell based on content in list

I am a JavaScript and SharePoint novice. I would like to change the cell color based on contents using Client Side Rendering and JavaScript. I have had good luck with changing rows with you fine ...
2
votes
1answer
48 views

How do you create a new document in a Sharepoint Document library based on an existing content type using REST?

I have a document library with a content type called 'Letter' attached to it. The 'Letter' content type has a MS Word document template attached to it. I would like to know how, using REST, to create ...
0
votes
1answer
30 views

Why javascripts referenced in JSLink are cached by browser (max-age=31536000)?

Context Recently, I noticed that browsers cache the javascript files that have been referenced from the JSLink property of a OOB list form. Analyzing the network traffic with chrome dev tools, I can ...
0
votes
1answer
46 views

Javascript error on navigation in related items list

I have a Display View (ListFormWebPart) of an Item with a related items list on SP2013. This related view shows 10 items per page and as standard there is the naviagation to see other items: Once I ...
1
vote
1answer
20 views

Edit Column SharePoint

So I'm changing a SharePoint column from multiple lines of text to single and I don't want to change any other data that is previously inputted already until they go back in and try to change. I'm ...
0
votes
1answer
49 views

Can I do traditional web dev with Sharepoint Online?

In other words, can I use a typical IDE like WebStorm, create some HTML, Javascript and CSS, then stick it on my Sharepoint site and will it work? Here is a sample of what I'm trying: <!DOCTYPE ...
0
votes
0answers
24 views

check group permission with javascript

I am developing a sharepoint add-in for Office 365 and I need to check groups permissions for my site. Has anyone some ideas?
0
votes
1answer
28 views

Javascript changes to get the correct picture for slideshow webpart

I'm referencing article: http://www.markrackley.net/2014/03/17/sharepoint-20102013-tip-of-the-day/ to have a webpart for Tip of the Day. In my case the message will ideally be Tip of the month. Now ...
0
votes
1answer
63 views

SharePoint Online sharing, NoScript Isnt enabled on the hostsite

I've created some functions that is really about sharing objects with external users via the JSOM api in SharePoint. var result = SP.Web.shareObject(ctx, urlToDocument, ...
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
23 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 ...