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
7 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 ...
0
votes
2answers
2k views

Upload a document in a specific folder

I would like to set a specific folder when I open the upload.aspx page to help. I tryed to look in the dll but the license of reflector is expired. UPDATED Maybe this post can help: How to set the ...
1
vote
0answers
18 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
11 views

View Version History from SharePoint using VBA

new to SharePointand 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 dertermine the version history; This, but with ...
0
votes
3answers
3k views

Upload file to document library using Javascript

I want to upload a word document to sharepoint document library using javascript (say for ex .Net site). How can i achieve this?
1
vote
2answers
18 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
14 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 ...
2
votes
1answer
1k views

Upload multiple files using rest api

I am trying to write code to upload multiple files using SP2013 REST API. I referred the MSDN article "upload single file using REST API". But I am having problem when I modified the code to upload ...
0
votes
1answer
36 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
54 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
21 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
1answer
21 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 ...
2
votes
1answer
183 views

Remove list item permissions by role type using JSOM

I'm looking for a good way to remove all list item permissions on a certain list item of a specific role type using the JavaScript object model. With myListItem.get_roleAssignments().getByPrincipal(...
0
votes
1answer
17 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
24 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 ...
6
votes
2answers
2k views

How to set list alert using JavaScript in SharePoint 2010?

I need to set a list alert for current (logged in) user using JavaScript. Code: var currentcontext = new SP.ClientContext.get_current(); var currentweb = currentcontext.get_web(); ...
2
votes
4answers
95 views

How to add script reference on master page?

I have applied master page using JavaScript in my SharePoint Hosted App. This script reference is added on default.aspx. Now I want to add script reference on master page which I have applied so that ...
0
votes
2answers
619 views

Sp Services and calendar list

I have a SP Service call which uses GetListItems from a calendar list in SharePoint. I'm using it with the FullCalendar plugin. The events render fine that is not my question, my question is this: Is ...
0
votes
1answer
30 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> &...
5
votes
2answers
11k views

JavaScript: How to reuse the “Working on it…” pop in

Sharepoint 2013: In have custom JavaScript code that makes Ajax calls. While loading I'd like to show Sharepoint's loading pop in: That is the one that greys out the underlying page and centers a ...
1
vote
1answer
41 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
26 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
4answers
47 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 ...
2
votes
1answer
1k views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
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, ...
1
vote
1answer
31 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
229 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 ...
0
votes
0answers
17 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
10 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 ...
1
vote
1answer
982 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
24 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
1answer
28 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
39 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
21 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
714 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
17 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
29 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
39 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
540 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
25 views

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

var fieldName; var fields = []; var listFields; var CmalQuery; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); ListName ...
3
votes
2answers
63 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
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
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
204 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 ...