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
12 views

Print only the used fields in Sharepoint using JavaScript

I need to print only the column that has been created by me. function retrieveFieldsOfListView(listTitle,viewName){ var context = new SP.ClientContext.get_current(); var web = ...
1
vote
0answers
11 views

SP13 - Finding all sites a group has access to

In SharePoint 2013 when you're looking at a group's page (the one that lists all of the members of the group) you can open the 'settings' menu and there's a choice to 'view group permissions'. This ...
0
votes
0answers
11 views

retrieving user name in Jquery datatable and caml query

Hi I am on SharePoint 2010 version , I have created a list with createdby, createdDate and Employee name as columns in it. I am having a text box and a button when I enter employee name and click ...
1
vote
2answers
24 views

Get file name from document library

I have a document library named DocLibrary. Inside that, I have created few folders. Each folder have 3 another folder. Inside that, I store the specific files. Example: DocLibrary > NF1> ...
0
votes
1answer
14 views

Refresh the data on the webpart without entire Page refresh

The data from the list is displayed on the page using content editor webpart as a scrolling text. The requirement is whenever the list is updated with new items, the data displayed on the page using ...
1
vote
1answer
33 views

SP.UI.ModalDialog undefined - Close SharePoint Modal dialog with javascript

I have created a modal dialog in SharePoint with the elements.xml. I use a SharePoint Hosted app. This is my CustomAction Definition: <CustomAction ...
0
votes
2answers
28 views

How set a people field with JavaScript

With SPServices I'm getting information from a list A that information contains in one of its columns a people field. In the form B I need to copy that person coming from the list A in one of the ...
0
votes
2answers
37 views

Passing the Sharepoint Logged in user credentials to a REST API Call

I am having issues passing the current logged in user's credentials in to a REST API call. Here is the scenario: I have a SP 2010 hosted site that has a web part that makes a REST API call to ...
1
vote
1answer
23 views

Disabled custom action tooltip

Some custom actions in SharePoint display an additional message with possible reason of the action being disabled. Is there a simple way of adding such a message only when the action is disabled (for ...
0
votes
0answers
32 views

Create links to change between calendar views

The code on this question, Using Javascript to change the view on a calendar web part, allows you to create links to change between month, week and day links. I am trying to do something similar, but ...
0
votes
1answer
19 views

How do I send data to a list form from a SharePoint page

I have a page that displays data from several lists and has links to a list form which open in a modal popup. I need to send some data to the form to be displayed on the form. Is there a way I can do ...
0
votes
2answers
38 views

How to get major & minor version limit of list/library using javascript?

How to get Major Limit of Sharepoint List and both Major & Minor Limit of Sharepoint Library using javascript ?
0
votes
0answers
10 views

Alter pathname to include query parameter [migrated]

I need to alter the following line of javascript: whoproxy += 'proxying as '+proxyingname+'.&#160;'+selectproxy+'&#160;<span ...
0
votes
2answers
49 views

Can you populate a dropdown choice field with jquery and javascript?

I would like to use a radio choice field to determine the values that will be populated in a dropdown choice field on a sharepoint list form. for example; Food Type (radio field) Options Meat ...
0
votes
2answers
18 views

Open form in a model window

I have this code that opens a form from an image button and I want the form to open modally. <a class="ms-addnew" id="idHomePageNewItem" ...
0
votes
1answer
27 views

Get document from Document Library using Javascript

I am trying to get a document from document library.I am getting the file but I can't get its binary value. $.ajax({ url: fileUrl, binaryStringResponseBody: true, headers: { ...
0
votes
0answers
23 views

How to add a reference to a javascript file in a custom action for a provider hosted app?

I have a custom ribbon button in my app where I am trying to add logic to enable/disable the button based on whether or not the selected items are records. I am able to get the EnabledScript attribute ...
0
votes
2answers
23 views

Javascript in script editor not always rendered

I'm having a strange problem with Javascript and SharePoint Online. I've created a page that contains a script editor webpart with some JavaScript code (calls a few REST services to show a list of ...
0
votes
2answers
36 views

How to host static html page and override all existing Javascript on SP2013?

I have a flipbook (generated by http://fliphtml5.com/). It contains a static html page with a lot of javascript and css files. Our users would like to host it on SharePoint site. The file can be read ...
0
votes
2answers
33 views

Schedule a workflow to run everyday

I want a workflow to run each day at 2.00 AM. Is there a way to achieve this? I found many posts but didn't work.
1
vote
1answer
39 views

how to display a contacts list in accordion view?

I want to display a contacts list in SharePoint 2013 as accordion. I tried to use the code from ...
0
votes
3answers
53 views

change value in dropdown menu sharepoint

I have a dropdown box name Status added in sharepoint page which have option (choose.. , In progress, Closed). Where Choose.. is bydefault value. When I open the page the value Choose.. should get ...
1
vote
4answers
61 views

Call JavaScript function after blog/page fully loaded?

using SharePoint 2013 I've added a blog post. This blog post requires me to run some JavaScript after it has been loaded. I am also using jQuery, so I tried the standard $(myInitFunction) to no avail ...
0
votes
2answers
29 views

Runtime error javascript in Visual Studio

Lately I get this error (see pic), however if I click continue everything works perfectly and the value is assigned correctly to variable xAppWebUrl. In another script I have similar code that runs ...
1
vote
0answers
15 views

Can I programmatically access the values and modified dates for appended column entries?

I have a Projects list with a multi-line text column named Progress Update set to "Append" to create a record of updates. This appended Progress Update column saves a "blank" value when a list item ...
0
votes
2answers
48 views

How to delete list attachments using javascript

How to delete list attachments using javascript? I have searched for same thing, but so many results are coming in which they are suggesting by using client object model using C# code. I didn't find ...
0
votes
1answer
21 views

Logout in Mozilla and chrome not working

I have configured fba in my site using thinktecture. When I click sign out or sign in as different user, sharepoint redirects me to following page: ...
0
votes
2answers
43 views

Creating Excel document using JavaScript

I've been researching into creating Excel documents in a SharePoint Library from an existing Excel template but all solutions I find are using server code. The Template can be part of a CT or in ...
0
votes
0answers
10 views

Can't send Email: Error 500 or 403 when trying to use SP.Utilities.Utility.SendEmail

I am getting a Internal Server 500 error when trying to send an email using the SP.Utilities.Utility.SendEmail in my SharePoint Online App. It is worth noting that I am working from a custom .aspx ...
0
votes
1answer
23 views

Create filtered list view in Calendar using JavaScript/JSOM

I am attempting to create a filtered list view in a Calendar. It is creating everything as appropriate, but not creating the filters. It believe it's my CAML. My goal is to filter by a choice column ...
0
votes
1answer
13 views

Creation of Calendar List View doesn't Set Calendar or Default View

I am using the following to create a View in a calendar, but it doesn't create the view as a calendar or set it as the default view. What am I missing? function createCalendarView() { ...
0
votes
2answers
27 views

Create Choice Column via JSOM

I am using JSOM to create columns in my lists and not having issues for text, user, or number columns, until I attempt to add a Choice Column. I have been trying different methods, but can't get it ...
0
votes
1answer
28 views

“The collection has not been initialized” when doing ListItemCollection.getEnumerator()

I have been having a problem with Javascript and Sharepoint 2013. I have a number of custom list rows that contain date and time values. I want to determine if there are any overlapping date spans. ...
0
votes
1answer
5 views

OpenLayers 3 zoom to mouse location pulls off to the left in SharePoint

I am currently creating a web application using OpenLayers 3 that aims to be embedded into SharePoint using the Script Editor tool. For the purpose of this question assume I am just using a basic map ...
0
votes
1answer
40 views

Export contents of a sharepoint list to a html table

How can I export the contents of a list to a html table? I know how to extract the elements of a list using CAML Queries, but how do I generate a html table containing the elements dynamically?
1
vote
2answers
48 views

Get Current User's Colleagues Using JSOM

Is there a way to retrieve the currently logged in user's colleagues' usernames? I found this which shows how to do it using server object model, but haven't found anything for JavaScript object ...
0
votes
0answers
15 views

How to make REST requests from javascript

I have a web site and I want to get a document library from sharepoint. I want to do this in javascript only. Do I need to get OAuth Access token? Is it possible to establish tokens without backend ...
0
votes
1answer
30 views

OData query operations in SharePoint REST requests

I have a list of id users, and I need to get listitems which are created by those users's list. I use this code to get it : > for (var i = 0; i < listId.lenght; i++) { var ...
0
votes
0answers
17 views

Use a Ribbon button to call javascript function(/library) located in a WebPart(SharePoint2013)

I am running a JavaScript library (OpenLayers, a geographical map viewer) inside a div element in a Web Part. I created (HTML)buttons in the WebPart to manipulate the geographical map shown in the ...
0
votes
1answer
22 views

Hiding 'About Me' from users from the Username drop down list

I'm using 2013 Enterprise and have customized a copy of seattle.master. I'm editing the seattle_custom.html and uploading the changes and publishing a major version. So far I've not been able to get ...
0
votes
1answer
57 views

HTML + JQuery (CSOM) to add multiple item to a Sharepoint list and get their IDs

I try to use HTML + JQuery in CEWP to build some sort of analog of InfoPath's repeating table in order to be able to insert multiple items in a Sharepoint list using CSOM. The current task is to get ...
0
votes
0answers
13 views

Performance point filter in webpart zone

The page is already designed, but i need to do some new updates. Web part zone is added, but in that zone I can not add Performance Point filter. I have changed its master page name and tried it, but ...
0
votes
1answer
37 views

SP.RequestExecutor is undefined for angular controller

This is a sharepoint hosted app where I am trying to use the Sharepoint Request Executor to make a REST API Call to the host web to get list items. The code is however failing on the file: ...
1
vote
0answers
18 views

Sharepoint List Form Javascript get validation results

Is it possible to find out using javascript/jquery if a SharePoint 2013 new/edit list form throws validation errors? Something like: if(page.ValidationFailed) //do something I do not won't to ...
0
votes
0answers
19 views

How To disabled followed up link?

currently having Conversation Web Part,on that webpart , we need to make the "Follow Up" option from the ellipsis a disabled link.The client does not want employees to be able to get here. ...
0
votes
1answer
29 views

SPService GetListItems with CAML : can't get the example to work with status giving error

I am new to SPServices and trying start with example GetListItems. Below is my code $(document).ready(function() { GetTasks(); }); function GetTasks() { var method = "GetListItems"; ...
0
votes
1answer
33 views

Can I access a mysql database from a Sharepoint 2013 page?

I've recently figured out how to add, remove, update list items on a Sharepoint site using javascript. But can I access a mysql database from a Sharepoint 2013 page using javascript? I want to ...
0
votes
0answers
10 views

Remote web site read Managed MetaData from JavaScript

I have a simple web app (no relationship to SharePoint). From within this app I need to read the Managed MetaData Service on a remote SharePoint farm and display some data using JavaScript. How do I ...
0
votes
1answer
81 views

Web Part specific DOM Manipulation. Two identical Script Editor Web Part Code blocks

We have a script editor web part with javascript that references some jquery libraries. The code creates web part properties and hides DIV tag in the web part based on some conditions. It works ...
0
votes
1answer
38 views

TypeError: SP.ClientContext is undefined

I tried to add data to a list using a HTML Form and Javascript. When I sent the data to the list I got TypeError: SP.ClientContext is undefined. After I cleared the cache and cookies everything ...