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)

1
vote
1answer
29 views

Save Excel file in SharePoint 2013 using javascript from out of SharePoint webpage

How to save an Excel file to SharePoint 2013 from a javascript executing outside of SharePoint? I am struggling with this issue, There were errors like SP is not defined
0
votes
1answer
30 views

Ribbon save action triggered even after using return false [Page Layout Edit mode]

I have an article page where I need to do some custom validations in Edit mode(page layout). I am trying to cancel the save action using return false but the page is still saved. $('span[id="Ribbon....
1
vote
2answers
36 views

Office365 PnP Taxonomy Picker: How can i get selected/picked value from Taxonomy Picker

How can i get picked/selected value from Taxonomy Picker "input". I have have implemented my Taxonomy field like showed in this article And its working fine, the only thing i cant figure out is how ...
1
vote
0answers
25 views

Replace “&” in Autocomplete Text Bar HTML Source Editor (SP2013)

Every time a value containing an "&" is rendered, upon page refresh, another "amp&;" is added to the value; in effect, it's duplicating itself. I attempted to implement a solution I'd found ...
0
votes
0answers
24 views

View Version History from SharePoint using VBA

new to SharePoint and at the edge of my knowledge (but not comfort zone - GIMME MORE) with VBA/Java(?) I basically want to look at a SharePoint site and determine the version history; This, but with ...
2
votes
2answers
28 views

Web-Page giving error when trying to Edit or open the Ribbon

A user has added some custom JS code into a web-page, making it unusable. Basically the ribbon cannot be opened, and web-parts cannot be modified. Custom JS: <script type="text/javascript"> ...
0
votes
1answer
19 views

How to show a label on a load of javascript function ex logged in user in script editor in sharepoint webpart?

I am facing a issue.I am adding a web-part in which I am showing current user logged in script editor through embedded code.I want to show current user when sharepoint open.I am getting on click but ...
0
votes
1answer
51 views

Where can I learn more about “ctx” from sharepoint js/html control templates?

Is there really no documentation for this? To summarize the comments, no in 2015. I have searched msdn/technet and google. My most common problem is just not knowing the right keywords to search for ...
0
votes
1answer
26 views

Infopath dropdown

I want to creat a form through InfoPath - In a such a way that, if I select "Yes" option then only I should get text box to add my comments. Otherwise it should not appear in the feedback form. How ...
1
vote
1answer
27 views

How do I get the sum of items of several document libraries using JavaScript

I have document library A, document library B and document library C. Every library has kinda many items in it. Now I would like to have a counter, which counts the amount of all items and makes a ...
0
votes
1answer
32 views

Start SP 2013 workflow using JavaScript object model does not start WF

I am using a SharePoint 2013 state machine workflow. In my page I attempt to start the workflow using below both ways Method 1 - using Item ID & WF subscription name var wfName = "notification ...
0
votes
1answer
44 views

How can I add users to a list based on a Form?

In a webpart I added the following code : <script src="http://code.jquery.com/jquery-1.8.3.js"></script> <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script> &...
1
vote
1answer
51 views

How to load javascript in master page sharepoint

This is my js code : <script type="text/javascript"> var url = window.location.protocol + "//" + window.location.host + _spPageContextInfo.webServerRelativeUrl; var pngPath = '/_catalogs/...
0
votes
1answer
28 views

Save data in list as a draft

I have a condition where a forms need to be filled out by the customer. In this scenario there are two different button below the form. One is submit and the another one is save. So the use of save ...
1
vote
1answer
42 views

Site Provisioning using SharePoint-hosted or Provider-hosted?

I have been reading the OfficeDevPnP for best practices on how to create Site Templates. The best practices recommend to use Remote Provisioning using Provider-Hosted App to create Custom Sites ...
0
votes
0answers
11 views

SP2010: Simply need to figure out why my SPServices UpdatePermissions call reports success but permissions remain unchanged

Examples of how to use this UpdatePermissions or AddPermission call in JavaScript alone would be awesome and appreciated, but of course any clues or information with regards to my main question would ...
0
votes
0answers
23 views

Album in SharePoint 2013

I added the Gallerie Libary to SharePoint using this Tutorial Now I want Albums with different cover-pictures. How I can create it?
0
votes
0answers
36 views

REST API / People Search Results

In my people search results I am querying the REST api to get a link to each person's CV, which are all held in a single document library. I am returning the correct results, but rather than one CV ...
1
vote
4answers
53 views

Making async calls in for loop

I need the function addColumns(which has an async call in it) to be executed as many times as limited in the for loop ,and when the for loop is done then i want to call the function InitData. The ...
1
vote
1answer
30 views

Mark documents and show them in another Web Part

I wanted to know, if there is any way for users, to mark documents in a library and show those marked documents in a certain Web Part (customized to every user himself). I know there is a method in ...
0
votes
1answer
25 views

Creating EULA page with conditional redirect

I'm trying to create "EULA" page so everyone entering some sub-site will be compered against a list of users to see if he accepted the agreement. I'm trying to implement it by conditional redirect ...
1
vote
1answer
62 views

Getting regional settings of current user using JSOM or JavaScript

I want to fetch the regional settings of currently logged in user NOT the current web. Reason being, the regional settings and language settings is pushed through user profile service (or user might ...
0
votes
1answer
22 views

TypeError when trying to create a Document Set with JSOM

I am attempting to create a document set in sharepoint online using JSOM triggered by a button. I've found the guides referenced here on the subject, but I can't seem to find the issue in my code. ...
1
vote
2answers
38 views

How can I use REST API to filter using multiple columns in UserInformationList

How can I filter multiple columns in REST API using Name/Username when running GET request to UserInformationList? Here is my Query: var getPeoplePickerSuggestion = function(searchKey) { ...
3
votes
2answers
43 views

“eval is evil()” - But can it be a way around some of the limitations of Minimal Download Strategy?

The process of getting custom JavaScript to work with Minimal Download Strategy is quite cumbersome and especially in the prototyping phase I like to write my (smaller) scripts inline in a Content or ...
2
votes
0answers
23 views

Display Multi-field Checkbox

I have a MultiField Choice list item. By default it displays: Choice 1, Choice 2, Choice 3, Choice 4, I would like it to display like the following. Choice 1, Choice 2, Choice 3, ...
3
votes
2answers
72 views

Can we create List in another site collection using CSOM?

I have a very simple scenario. I am using SharePoint Online I have 2 site collections SC1 and SC2. Now i am executing a JavaScript function in SC1 and am trying to create a list in SC2 in a sub-site ...
0
votes
0answers
33 views

SP '13 - Calculated Column -> with Look up -> JavaScript with color output

I'm building a column that combines two Look up columns (CDF_oQ and CDF_oT) and one date (CDF_date) column. The result should be a column (the calculated Column = CDF) showing the date and the (...
1
vote
2answers
27 views

Is this the proper querying method for SP2013?

I'm having issues trying to load the proper script below to become a customized image rotator on my SharePoint 2013 platform. Can anyone help please? I want to know if I am writing the code properly......
1
vote
2answers
61 views

How to show/hide columns in OOTB SharePoint 2013 List form?

I have a requirement to make a SharePoint List Form where I have 50+ fields where fields are hidden in the beginning but if a user checks a box then the related fields shows up. I know I can achieve ...
0
votes
1answer
51 views

JavaScript just running in Edit mode

I have a view form in a list. I want to add a dropdown and populate that dropdown from Another list, so I added a scripteditor in my viewform and added the code below. I can get my code to run when I ...
1
vote
2answers
44 views

Is There a Way to Return a Value Using ExecuteOrDelayUntilScriptLoaded?

I have several functions nested under a initializePage function that gets executed once this runs: ExecuteOrDelayUntilScriptLoaded(initializePage, "sp.js"); Is there a way to set a variable like ...
0
votes
1answer
29 views

document.myform undefined in SharePoint Page Layout

I have a small form and some javascript that I am trying to add to a Sharepoint Page Layout. The script works great outside of Sharepoint. However in the SharePoint Page Layout when I used <...
1
vote
1answer
65 views

Registration form/Auto fill list - Sharepoint 2013

I'm working with SharePoint 2013 and SharePoint designer 2013. I DON'T HAVE INFOPATH. I have 2 lists, one is a training calendar and the other one is for registration to these training. Here's the ...
1
vote
1answer
34 views

Embed Yammer group with external users in SharePoint Online

The case is that we have a SharePoint Online site which allows external access by invitation only. In Yammer we have created a group for external users and have successfully added external users. From ...
1
vote
3answers
229 views

How to add a back link?

I am trying to add a 'back a page' link in SharePoint using <a href="javascript:history.back();">[Go Back]</a> But as soon as I save the page, it removes the javascript link. Is there ...
-1
votes
1answer
41 views

Caml query with more than 2 or conditions [closed]

var fieldName; var listFields; var CmalQuery; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); ...
0
votes
2answers
55 views

SharePoint Context and Caml query is not working

Here is my code.. var CmalQuery=""; var fieldName=""; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); fn(); }); ...
0
votes
1answer
36 views

Unable to get User details in SharePoint 2010

I am using following code to get user details.... function getUsers() { $.ajax({ url: "/_vti_bin/ListData.svc/UserInformationList", type: "GET", headers: { "...
0
votes
1answer
16 views

Sharepoint 2013 consult get only 100 objects

I have thes JSON, I need to get back 100+ or more items, but json only caught 100 objects : Code: function GalleryContentPopulate(url, listname, target) { var eng = false; var queryGallery = "$...
6
votes
2answers
171 views

How to retrieve choice column in sharepoint Online?

I am creating a dropdown and want to fill it with choices with my choice column of SharePoint list. Looking for solution in CSOM or JSOM. Any help is appreciated
1
vote
2answers
64 views

Can't get Javascript CSR display template to work in listview

I'm totally at wits end here. I am trying to use CSR to display custom html depending on a "case status" column. I've added the JS file to the masterpage folder and used the JS Link to connect it. No ...
11
votes
2answers
688 views

Which one is faster CSOM or JSOM

Understanding which one has better performance for performing CRUD operation in SharePoint List, CSOM or JSOM?
1
vote
1answer
25 views

Removing question separators in survey

I am creating a survey in sharepoint. I've already customized quite a bit and am now trying to divide my questions into sections. As such I would like to be able to take off the line separators for ...
0
votes
2answers
52 views

Display REST Data

I am running into few issues. Issue # 1: When I use the following REST endpoint uri in chrome I get XML back. However, IE throws an error (IE cannot display this feed). I downloaded REST API Browser ...
0
votes
0answers
18 views

SharePoint Webpart UpdatePanel (dropdown change) async Postback not working in safari browser

I am using Update Panel in my SharePoint application(web part). Update Panel having drop down post-back. It is working in IE,Chrome,Fire Fox without any issue. Issue: Same thing tested in Safari 5.1....
0
votes
1answer
35 views

Automatically update hyperlink to point to newest added document in a library

This is my first post here, so bear with me. I am reletivley new to SharePoint, however I do know my way around it. Basically on my site homepage I have promoted links set up along the top. One of ...
2
votes
2answers
54 views

Javascript Functions in Calculated column

I am trying to use javascript functions within an calculated column which is working pretty fine e.g. if I use the following formula: ="<img src='/_layouts/images/blank.gif' onload=""{" &" ...
0
votes
1answer
24 views

Show up modal in navbar

I have a navbar where I want to show a modal if I click into one item's Title. So now I show my navbar in JS menupopulator like this: function completeMenu(data, target) { var prefix = "<ul ...
0
votes
1answer
41 views

Using Javascript: hide sharepoint room site content items for users except admin

I am using a code for hiding site content items for users except admin: The below script is used to check if user is admin but currentUser.get_isSiteAdmin() always gives True: Code is below: <...