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)

2
votes
1answer
688 views

“Type SP.ULSTraceLevel has already been registered” error while applying javscript to NewForm.aspx

I have a custom list in which I want to apply the javascript in new form of that list. Javascript loads the user profile property of the entered user in the people picker control. I am getting ...
2
votes
1answer
436 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 ...
3
votes
6answers
12k views

SP.UI.ModalDialog.RefreshPage from the dialog itself?

I have customized the display form on one of my list. On a webpart page, I have drop a view to this list. When I click on the title of my item, the custom disp form is shown as expected in a modal ...
5
votes
1answer
411 views

SP.UI.Status anonymously inaccessible

Using Office 365 (SharePoint Online) I have stumbled into an annoying thing. Some parts of the JavaScript CSOM does not seem to be accessible when your browse the site anonymously. If Firstly I tried ...
0
votes
1answer
24 views

How to have a list auto update once a week and then email the people in the list?

There is a meeting that occurs every week, but has a rotating list of members. So one person from each department goes one week, and the next week it is a different person from each department, and so ...
1
vote
0answers
9 views

SharePoint look up value A (list number value) and hide Add New button if 2nd list count value B (list count) is equal or greater to value A

I have an InfoPath form displaying formation for a commuter sign up list called "Register Commute" I modified the Content Type Display Form and added a list called "Commuter Sign Up" which is ...
0
votes
1answer
18 views

Populate a Word Template with Dynamic Data From a HTML Form on a Sharepoint Page

I have a SharePoint site. What I want to do is: 1) Upload a Proposal Template and create an HTML form that allows our sales guys to enter customer details 2) Allow the sales guy to select some options ...
0
votes
0answers
15 views

Microsoft Sharepoint SPException error when using Email API

I am trying to use the SharePoint 2013 Email API and receiving a Microsoft SharePoint SPException code: -2130575251 The security validation for this page is invalid and might be corrupted... ...
0
votes
1answer
24 views

Sharepoint GetUserProfilePropertyFor not returning any results

I am trying to get the SharePoint 2013 API for GetUserProfileProperty, when I put the below url into a browser it works finr, however when i run the below code, I get no result (I do get a return, but ...
2
votes
1answer
488 views

How to authenticate user in SharePoint Online using rest api

I have a website on SharePoint Online and a website on SharePoint On-premise. From my On-premise website i want to create a new list on my SharePoint Online site. To authenticate I used the ...
9
votes
1answer
5k views

How to get a list of all Choice field options using Client Object Model

How would you get a list of all the possible choices from a choice field (e.g. Task list Priority or Status fields) using javascript client object model?
3
votes
0answers
61 views

Javascript Conflict on Visual Webpart when adding multiple times with different webpart properties on single page

What I am doing: I am retrieving list items from list using javascript as per visual webpart custom property. I have created a dropdown in webpart editor part from where I am getting site url. As per ...
2
votes
3answers
474 views

Get current user using Javascript in New Item form

I have Sharepoint 2010 with a IT Help Desk type site. I'm trying to get the current user auto-populated into a people picker field (Business Owner). I've been googling and trying to nut this out but ...
2
votes
3answers
6k views

Sharepoint 2013. Add JS to NewForm.aspx of a list

how to place JS-code to NewForm.aspx of a list in SharePoint 2013 APP. In sharepoint 2010 we can use this list definition to add JS: <List ...> <MetaData> ... <Form ...
3
votes
2answers
102 views

REST API to fetch List/LIbrary URL's from subsites

I am working on a requirement to display all sub sites and list/Libraries inside sub site using REST. I am able to fetch Sub sites and List/Libraries but i am not able to fetch List/Library Url's. Can ...
0
votes
0answers
20 views

SP2010 - CEWP not executing javascript until page refresh

The CEWP is loading a HTML page stored in the Site Assets library. The HTML contains a few inputs and some Javascript. Javascript is: Function myInit(){ console.log("here"); Ctx = new ...
0
votes
0answers
18 views

SP2013 - open URL link in new tab

already for a long time a´m looking for how to edit script below (from http://www.sharepointdiary.com/2011/02/sharepoint-link-list-open-in-new-window_21.html) or how to do it another way. The script ...
0
votes
1answer
589 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 ...
0
votes
0answers
19 views

Problems with Query Sting URL Filter when adding/editing Views

I have a page (A) containing multiple links with different query string URL's that are all directed to another page (B), where a query string filter web part takes the selected link's URL and passes ...
0
votes
1answer
532 views

Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. Parameter name: panelsCreated[1]

I am using JavaScript to pull events for the current day of the week. I am leveraging SP.Services to do this. The problem I am having seems to be the same that a lot of others have experienced ...
0
votes
2answers
225 views

Enumerate Summary links column values in JS COM

I defined a list where a Summary list is a coloum, in my javascript code i want to read the values of the links one by one... sliderText = listItem.get_item('Description0'); sliderTitle = ...
0
votes
2answers
27 views

JSOM Script Returning serverRelativeUrlOrFullUrl Error from SP.ClientContext.get_current()

I'm attempting to build a script for a Sharepoint 2013 project management hub that eases the process of spinning up and archiving project subsites as they are needed. I'm having trouble getting my ...
0
votes
1answer
28 views

o365 SharePoint Online .. Write to List on another site with Tenant (all sites) NAPA app? Forbidden Error

Is it possible to write to a list on another site from NAPA developed App on o365 SharePoint Online. I have a simple app that can write to lists on the host web by fully qualifying the list, but i ...
0
votes
1answer
645 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
1
vote
1answer
32 views

get list items in sharePoint 2013 for google charts api

I'm trying to use Google Chart API in SharePoint 2013. My list name is Utilization and I want to retrieve columns Title and Portal for making the 3D pie chart. Here is my code : <script ...
0
votes
2answers
41 views

Pop-up window to confirm

Where should i fit in a pop-up, using this existing piece of code? <td> <input type="button" value="Save" name="btnFormAction" onclick="javascript: ...
2
votes
1answer
43 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 ...
6
votes
9answers
33k views

Getting a count of list items in a list via ECMAScript

I have a SharePoint 2010 web site with a master page that has a counter on it. I'm trying to update that counter using the ECMAScript. The code I have falls nicely into the success method - but I ...
5
votes
7answers
8k views

SP.ClientContext is always “undefined” in JSLink functions

I'm trying to execute CSOM functions as part of a JSLink extension to override rendering of a Lookup Field. Problem is every time I try to access SP.ClientContext it returns as undefined I have ...
1
vote
2answers
1k views

How to use SPServices search sql query - getting malformed query

I am using the SPServices javascript library to make a search request to sharepoint 2010 search. I am trying this query: queryText = "<QueryPacket xmlns='urn:Microsoft.Search.Query' ...
3
votes
4answers
854 views

Write items from a SP list to html

I've very recently picked up SharePoint and have a limited knowledge of programming so you'll need to bear with me here. I'm currently building on a development site collection in SharePoint Online ...
1
vote
1answer
770 views

Custom .aspx as modal dialog not working: 'SP' is undefined

SharePoint 2013 server... I have created a custom aspx page for use as a modal dialog. I want this pop up to collect field values and return them to the form the pop up was called from. The pop up ...
1
vote
1answer
26 views

Use REST API to get the current site collection

I have a list for links in my footer that I'm using REST to populate. $.ajax({ url: "/_api/web/lists/GetByTitle('FooterLinks')/items", type: "GET", headers: { "accept": ...
0
votes
1answer
32 views

Email Attachments as Individual Items in Document Library

There are many ways to receive this outcome, but they are not working exactly how I imagine. Issue: I created a document library and I have emails going into the library according to subject. The ...
0
votes
1answer
70 views

Cannot run ajax javascript code

I try to run the below javascript code but it does not work. (it does not return the alert pop up) I put the url string into a browser, it return the item info. So, I assume the url is fine. And ...
3
votes
3answers
2k views

How can I implement SharePoint JSGrid filtering and grouping functionality?

I am working on SharePoint JSGrid. I am able to implement the sort functionality in JSGrid. Now I want to implement the grouping and filtering in my custom JSGrid. For filtering we have to attached ...
0
votes
1answer
19 views

How to display Search API results like SharePoint OOTB list with filtering, sorting, paging

I would like to display Search API results like OOTB Sharepoint list with filtering at least. Is it possible to use SharePoint javascript libraries to achieve this? If not, is there any ...
-1
votes
2answers
84 views

Can we use javascript to display attachment filename of a list item?

I just need the attachment filename of list item to display in a display page, not the link. Let's say List name: MyList and item ID: 1 When I try to use the ajax and I did some test. Somehow it ...
1
vote
0answers
15 views

Get the current user and perform list ID lookup from result

I need to lookup the current user's login name, then use the result to get the ID of a list item that has a column containing that login name. I'm still brand new to javascript, so the code below ...
0
votes
1answer
28 views

CSOM Search Api error: Unable to get property 'ResultRows' of undefined or null reference

The code below is working fine in my dev machine but the moment I tried to test it on our customer's server, I started getting errors. I started having errors with SP.js. So I used the <script ...
1
vote
1answer
22 views

JSOM get_url of image null or undefined

I'm trying to get the url from an Image/Hyperlink field in a SP2013 List. My query works until I add in the request for Image data. Unable to get property 'get_url' of undefined or null reference ...
1
vote
0answers
31 views

Javascript to: get username, lookup id in list, then update list item

I have a pretty complex task I need to perform in Sharepoint, but I'm a total beginner when it comes to JavaScript! Here's what I need to do: I have a list on my site that is basically a database of ...
1
vote
1answer
32 views

Display CSOM search results like OOTB list with filtering and sorting

I would like to display Search API results like OOTB Sharepoint list with filtering at least. Is it possible to use SharePoint javascript libraries to achieve this? If not, is there any ...
1
vote
2answers
62 views

Javascript get list items

What I am trying to achieve is using javascript to check if a user has created an item for the post. So it would check if post ID = current post and created by = current user. If it finds an item ...
0
votes
1answer
45 views

Strange Javascript error

I have got a Strange Error Javascript. How to find out whot is a problem. Please help: Here is my masterpage code: <%@Master language="C#"%> <%@ Register Tagprefix="SharePoint" ...
0
votes
1answer
34 views

Manipulating SPClientPeoplePicker value

I would like to use the SPCLientPeoplePicker to generate a result set without manually typing into the people picker input field. I want to do this by javascript having the people picker control ...
4
votes
1answer
79 views

CSOM Search API does not return all the results

I am having a problem with the code below. It is not returning all the rows/items which are found in different lists. The total number of items is 28, but the code below is returning 19. I have set ...
0
votes
0answers
26 views

Cannot save edited file css/js under SiteAssets

For SharePoint development, we only use client side programming (Javascript). I am used to place js or css files under SiteAssets. I have problem with only one of my site. When we upload or copying ...
0
votes
1answer
663 views

SharePoint 2013 custom Attach File button

I'm trying to create a custom "Attach File" button in my SharePoint 2013 New Item form. So far this is what I've done: HTML <div onclick="javascript:openpageindialog();" class="btn" ...
1
vote
1answer
30 views

Using csom search api, how can I search lists based on content types?

I have multiple subsites and each subsite has a list called "Articles". Each has two content types. "News Articles" and "Success Stories". I would like to search based on the content types above using ...