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

Save data in list as a draft [on hold]

I have a condition where a forms need to be filled out by the customer which is designed using Nintex form designer. In this scenario there are two different button below the form. One is submit and ...
1
vote
1answer
28 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
3answers
214 views

Query Membership of Active Directory Group in Security Group in Sharepoint

I have a Sharepoint group, and within this group, is an Active Directory group. I want to know if I can send a query to find if the current user is a member of the AD group, from Javascript. I do ...
1
vote
3answers
7k views

Get list items created by logged in user with REST api

How can I get all list items created or changed by the currently logged in user with this function? What's the correct query? // Getting list items based on ODATA Query function getListItems(url, ...
0
votes
0answers
16 views

How to make use of Office dev PnP provisioning template

I need some guidance on how to make use of the Office dev PnP provisioning template for SharePoint online. Basically, I am trying to make my SharePoint site responsive without tampering with the ...
11
votes
4answers
6k views

Can't upload a non-text file to SharePoint App via REST API

I am using the following REST code to add a file as an attachment to a SharePoint 2013 list item. <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <SharePoint:ScriptLink ...
1
vote
1answer
690 views

How to get server datetime without postback using JSOM or services

My application page may be long time without reloading, and user changed system date and time. And I need to know datetime from server, not from client.
0
votes
0answers
9 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
16 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?
1
vote
1answer
961 views

ClientPeoplePicker is undefined

I'm trying to get ClientPeoplePicker control with following code. function setCPP(userAccountName, controlName) { var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "...
0
votes
0answers
22 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
3answers
36 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
24 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 ...
1
vote
1answer
35 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
19 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 ...
0
votes
1answer
708 views

SharePoint New and Edit Form Javascript Date Time Field

I have a custom list that contains a date time field. The client requested we trim the time portion of the field to only show two available appointment times of 8:30 am and 1:30 pm. In order to do ...
0
votes
1answer
15 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
27 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
37 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 ...
0
votes
1answer
1k views

Full-Calendar Js not showing events

I have created an html page in which i have palced the full-calendar code. the script retrieves data from my shareoint calendar list - "Room Reservation" using SP-Services. I am able to get the ...
2
votes
3answers
2k views

Remove item from ECB in sharepoint 2013

I am currently trying to write javascript within a script editor to hide the 'View Properties' and 'Edit Properties' items in the ECB. I have found many solutions that edit the core.js file. However, ...
6
votes
3answers
521 views

Hide options from ECB Menu in SharePoint 2013 Library

I have added a document in a document library. I am trying to hide an option from ECB Menu How do you hide any options from ECB Menu? Update: Each item has a column "x" with different values. So, ...
-1
votes
0answers
22 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 ...
3
votes
2answers
59 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 ...
2
votes
0answers
22 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
742 views

Grabbing a filter value via CEWP code behind

I have employed a Query String Filter to parse a value and send it to a chart web part. now I would like to use this value in a CEWP to provide an explaination/clarification for the chart, but the ...
4
votes
0answers
203 views

socialManager.isFollowed(socialActor) only returning 0 or false, but never true

Any ideas why I'm only getting 0 or false, but never true for result.get_value()? // Set IsFollowed correctly. var clientContext = SP.ClientContext.get_current(); var socialManager = new SP.Social....
3
votes
1answer
1k views

Hiding Column on a List View with Grouping

I have a list that I need to dynamically hide columns on based on user. Sort of a rudimentary Column Level security type deal. This is being done through Javascript and JQuery to simply not display ...
1
vote
1answer
7k views

How to get the selected items of list in the javascript

I have one picture library, where several pictures are stored. In that picture library I want to put such a link that will download selected images. To achieve this functionality, I thought to prefer ...
0
votes
0answers
30 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......
4
votes
1answer
71 views

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
1answer
45 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
42 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 ...
1
vote
1answer
56 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
2answers
31 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
0answers
24 views

Querying Lists in 2013 via Javascript and JQuery [closed]

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 ...
1
vote
1answer
31 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 ...
0
votes
1answer
27 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 <...
0
votes
2answers
32 views

PnP.js not working without TypeScript?

I downlooded pnp.js from https://github.com/OfficeDev/PnP-JS-Core/tree/master/dist was release monday for version 1.0.0 by Patrick Rodgers Microsoft I seen all the developments but the always had ...
1
vote
3answers
208 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
38 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
45 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
30 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 = "$...
11
votes
1answer
25k views

ExecuteOrDelayUntilScriptLoaded with sp.js when in debug mode Object Expected

I currently have a JavaScript file that gets loaded in my SharePoint pages. jQuery(document).ready(function() { ExecuteOrDelayUntilScriptLoaded(myfunction(), "sp.js"); }); myfunction = function(){ ...
2
votes
5answers
3k views

Get current logged in user and display it on the Site as “Hello (Username)”

I am using SharePoint 2013 Online and I'm looking for some JavaScript and html to display the current logged in user on the site like for example: Hello (Username) If anyone could help or just ...
3
votes
2answers
687 views

REST API ItemCount on oData BCS List

I have a list generated from a BCS oData provider and I am attempting to get the number of items in the list so I can generate a $top on my request rather than bring back only the 100 item generic ...
0
votes
1answer
951 views

How can I make links in the left navigation open in a new tab?

I'm trying to make two links on the left navigation open up into a new tab as they are external sites. It should be as easy as adding target="_blank" to their HTML element but when I wrote some jQuery ...
4
votes
2answers
155 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