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
0answers
7 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. ...
0
votes
2answers
24 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
34 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 ...
-1
votes
0answers
21 views

SP.FieldUserValue Properties am geting some Values as [Object][Object] inthe function GetListData()… listItem.get_item(fields[i]) [on hold]

var fieldName; var fields = []; var listFields; var CmalQuery; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); ListName ...
2
votes
0answers
19 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, ...
2
votes
2answers
49 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
28 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
26 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
39 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
0answers
24 views

Querying Lists in 2013 via Javascript and JQuery [on hold]

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 am using Cycle as my jQuery base I have ...
0
votes
1answer
42 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
30 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
24 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
52 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
28 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
207 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
37 views

Caml query with more than 2 or conditions [on hold]

var fieldName; var listFields; var CmalQuery; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); ...
0
votes
2answers
43 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
29 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
12 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 = "$...
4
votes
2answers
151 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
52 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 ...
9
votes
2answers
627 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
21 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
44 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
10 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
29 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
49 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
0answers
26 views

How to export html data to pptx using jquery? [closed]

Can anybody please guide me how to export html data to pptx(PowerPoint Presentation) using jquery?
0
votes
1answer
22 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
39 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: <...
0
votes
2answers
50 views

get primary and secondary site administrators using javascript

Trying to retrieve the primary and secondary site administrators using javascript and show them in the labels on custom Access Denied page. Using the code below(inline javascript) to do that but ...
0
votes
1answer
43 views

SharePoint online REST API: how to get custom field list

I also want to get the custom columns via REST, If you fire up Google Postman or Advanced REST Api client you can get a desired json response for the query below. https://mydev/sites/site1/_api/SP....
0
votes
0answers
18 views

How to open specific help article?

I want to open a specific help article in a custom help article, but I can't figure out the override key format that brings you directly to the article. The JS variable navBarHelpOverrideKey is set ...
0
votes
1answer
30 views

Display Person's Documents in People Search Results Display Template

All, I am building a people results display template that needs to include a link to an individual's CV in a document library. I've used a SPServices Getlistitem to query the list, but I can't get ...
4
votes
1answer
66 views
+50

How to call external ADFS secured WCF Service within Sharepoint via Javascript in an ADFS environment?

Previously on our little Sharepoint environment: We used integrated windows authentication for everything. On some of our sharepoint sites we integrated some custom javascript application logic that ...
0
votes
2answers
43 views

JSLink: How can you access a list item's properties which are not added to the view?

In order to render certain controls in a view via JSLink, I need to check several conditions based on some fields we would like to keep hidden (not just uneditable in a grid view). How can I do that ...
0
votes
1answer
25 views

Is there any way to put global loading message while every pages postback in SharePoint 2013?

In entire SharePoint site i want to put global loading message while every page postback, if user navigate from one page to another page it shows loading message until another page loads. is it ...
0
votes
0answers
25 views

Javascript no longer works after loading a SSRS Viewer Web Part

I have a sharepoint 2013 page with three web parts. Two are list web parts and one is a SSRS Report viewer web part. I've added the following scripts to the page via a CEWP. <!-- Name: ...
0
votes
0answers
13 views

Accessing App List from a SharePoint Page

I have created a SharePoint Add-in. It contains a list 'UserDetail'. Most of the examples I see in the web show to access SharePoint Data (List/Library) from Add-ins. Is there a way to access Add-in ...
0
votes
1answer
36 views

error : collection has not been initialized on deleting an item from list

Below is the function and its fetching the Amount and uno but it throws an exception on clientContext.executeQueryAsync(). Here is the Code: function delRec() { var uno; var itemArray = []; ...
0
votes
0answers
7 views

Enabling item scheduling on a publishing library via JSOM

Alright, I'm trying to enable item scheduling similar to this this post but via JSOM in sharepoint online through a sharepoint Add-in/App. From the web console I've already looked into properties of ...
1
vote
0answers
17 views

New Office365 SiteContents : adds more items in menu

In new SharePoint the menu is in menuData.SettingsData: How can I adss new menu items?
5
votes
3answers
259 views

Custom ECB-Menu Item which copies the Link of the document into the Clipboard

I would like to add an Item to the Edit Control Block Menu (ECB-Menu) (red marked in Screenshot), which copies when clicking on this Item (onClick) the link of the chosen document into the Clipboard. ...
1
vote
1answer
23 views

Using resx file from javascript code inside elements.xml

I'm looking for changing my title using a file .resx. I thought i'll just have to change title with my resx file for example : title : Resources:MyFile,MyTitle but it's not working <...
1
vote
2answers
43 views

How to access custom property from User Profile using jquery

Environment : SP 2010 I have a custom property in User Profile called CompanyCode. I need to fetch this property using javascript/jquery in a master page. Can anyone let me know how to fetch custom ...
1
vote
0answers
19 views

How to reference total count of columns & Items within a SPS2013 List on another List

Looking for the total count of Columns and Items from an existing SPS2013 list to be visible on another SPS 2013 list part of the same site collection.