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
1answer
10 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 ...
1
vote
0answers
8 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
16 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
17 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
23 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 ...
0
votes
0answers
48 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 ...
0
votes
1answer
44 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
0answers
15 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
vote
1answer
24 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 ...
2
votes
1answer
48 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
0answers
14 views

SharePoint hosted app submit multiple items to list

I am developing a SharePoint 2013 hosted app and I currently have a 'repeating' table that is being cloned each time a button is clicked. I currently have three tables which all submit to separate ...
1
vote
1answer
24 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 ...
0
votes
2answers
56 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
44 views

Please correct my javascript code

Please i need help with my script,I want my page to generate thumbnails directly being read from a share point list, below is the already existing code : <script type="text/javascript"> ...
0
votes
2answers
32 views

javascript event when a row is updated/changed in a Datasheet view?

Is there any way to catch update/changes in the Datasheet view of a list in JavaScript in SharePoint 2010? I see their are event receivers but nothing in Javascript.
0
votes
0answers
22 views

CSOM Querying a second list based on ID from an array

I have created an Array loading list data in, then displaying the array using knockout data-bind in a table. The issue is I have a second list that is related to the first list that I also need to ...
0
votes
0answers
25 views

App for Office (Office Add-in) Web Page Possibilities

I am trying to develop a task pane add-in for Word. Everything online says that at a minimum, the add-in requires a web page, javascript file, and a manifest. Does the web page have to be done in ...
0
votes
1answer
28 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 ...
0
votes
2answers
69 views

Can't get People Picker value on 'Edit' form load

When opening a SharePoint EDIT form, I'm trying to capture a people picker value using JavaScript. Unfortunately, the people picker isn't loaded with data when I call .GetAllUserInfo. I'm using the ...
0
votes
1answer
11 views

Own Title on hover - load other field

I have custom list named LIST1 with fields ID,Title,ShortComment,LongComment. I'am using view webpart , where only fields ID,Title,ShortComment are visible. Is there some way to show field ...
-1
votes
3answers
67 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 ...
0
votes
3answers
36 views

CRUD Operations in Sharepoint Online using JavaScript on external site

I am currently trying to create a List Item in my SharePoint 2013 online environment using JavaScript Code on an external Website and domain. Basically I have no idea where to start and I am not sure ...
0
votes
2answers
22 views

Get data from a Sharepoint site for a web application

I would like to get data from the SharePoint site, but I don’t know if it is possible by using JavaScript or PHP or something else. After getting this and saving it in variables, I would do different ...
0
votes
0answers
24 views

Using d3 in sharepoint web interface

I am building a website for a research center under my university domain. I am trying to create a data-driven document, with autoupdate based on lists. Yet since server-side access to sharepoint lists ...
0
votes
0answers
15 views

How can I customize a Navigation?

I have a navigation bar that contains links to other parts of my site. It wasn't created by me initially, so I wanted to dismantle the script that customized it to see how it worked. I screwed up ...
0
votes
1answer
20 views

Getting error from display multiple selected external list item javascript

So here's the javascript I use to display item name of selected item from an external list: <script type="text/javascript"> var targetListItem; function ShowSelectedItems() { ...
0
votes
0answers
19 views

Cant access a class name using javascript [closed]

I am trying to freeze the sharepoint list headers present in a page by using class name "ms-listviewtable". so I thought of accessing the class name but when I try to do access I get Object doesn't ...
1
vote
1answer
28 views

Copying all the field's value of a list to other list using javascript

This JavaScript code copies title field of one list to other list. <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js"); var siteUrl = 'url'; ...
0
votes
0answers
20 views

How to create custom user profile properties using javascript?

Is there any way to create an user profile property using the sharepoint online javascript api? if not which is the correct way to provision custom user profile properties for an app Thanks
0
votes
0answers
20 views

Send meeting invite to Lotus Notes

Using jQuery ajax and SendEmail to send messages from SP to Lotus Notes. (Anders help me get it working in this thread)[SP.Utilities.Utility.SendEmail with additional headers [javascript] (Thank ...
1
vote
2answers
30 views

Get ID after inserting Item into SharePoint 2013 Host Web List

I am currently creating a SharePoint 2013 hosted app on Office 365 and I currently have some JavaScript that inserts item into a host web list. I wondering if it is possible to get the ID of the item ...
0
votes
0answers
35 views

Javascript - How to get content of HTML of list items in SharePoint 2013

I want to create a PDF file which will contains information of all items in lists related to a specific itemID. So my idea is create an HTML array of that itemID, then post it to server and use ...
0
votes
0answers
32 views

JS Link with same exact code only works on some lists

I have tested the same code on multiple lists using JSLink and it only works on some lists. I am using the right path and the code is the same so why doesn't it work?
0
votes
1answer
24 views

How to authenticate a SharePoint 2013 REST API request from an HTML Application?

I am creating an HTML application that needs to access data from SharePoint 2013 List using REST APIs. eg - sharePointsite/_api/web/lists/GetByTitle('Test')/items. The HTML application is on a ...
1
vote
1answer
27 views

Set Like to folder (Video) from Javascript

Right now I get the information from a video like this: var ctx = new SP.ClientContext(siteUrl); var site = ctx.get_site(); var web = site.openWeb(webUrl); var folder = ...
0
votes
1answer
27 views

Get video item from list with Url with Javascript

right now I have the Url from a video item, that im showing in a Video native webpart, but i need to get the title and description for processing. For that, I only can use Javascript, so, I get the ...
1
vote
1answer
22 views

Best Practices for small changes from Quality to Production

I am at a new job, and how they manage development and then deployment to production is strange. So, I was curious what is the best practice for this scenario? A user just wanted a form field to have ...
0
votes
1answer
54 views

Using SPServices operation 'GetListItems' how to construct a CAML Query joining two lists?

Using SP2013 - JavaScript - $().SPServices() - operation 'GetListItems' - how would I construct a CAML query that will join two lists where list 'A' has a reference to list 'B' specifically having a ...
1
vote
0answers
21 views

Invalid JSON error while checkin of file on IE

I am facing an issue while checking in the file using REST API. The code below works Chrome Firefox and IE except the version 11.0.9600.17914. I tested it on my local IE version 11.0.9600.17905 and ...
0
votes
1answer
21 views

Hide Fields and Columns on SharePoint List form [duplicate]

I have a situation where I want to show/hide my SharePoint list column / Fields in a list form based on the value of some other field on the form. Example : I have 2 dropdowns say "IssueType", ...
0
votes
0answers
50 views

Commit using JavaScript

I 'm looking for a solution to submit an item using JavaScript for a button already placed on the form like this..... $( ...
2
votes
2answers
55 views

How to set custom DIV error message using JavaScript

On Validation error of columns I would like to set a custom div with an error message. I currently have the working code to populate the div however I do not know how to make the IF statement to show ...
1
vote
1answer
27 views

SharePoint REST API Post date from Input value

I am currently developing a SharePoint 2013 app and I have ran into an issue. I have REST api that runs when the user tries to submit data, I have managed to get the Title field to submit the ...
0
votes
0answers
19 views

SharePoint online : Add a property in property bag of host web using JSOM

I am working on a simple SharePoint hosted app which has two text boxes to take input KEY and VALUE and add this to the property bag of the HOST WEB. I am able to read the existing properties from the ...
0
votes
1answer
30 views

SharePoint 2013 - Verify Active Directory security group membership in Master Page javascript

I desire to add some JavaScript that will verify the current users AD security group membership. If a member of group 'A' the logic will redirect one way. If not in group 'A', but in group 'B' the ...
0
votes
1answer
36 views

Update column using javascript

I'm somewhat new to SharePoint and I need help updating columns using javascript. I have a list that tracks expiration dates and shows traffic lights based on the days away from that expiration ...
0
votes
0answers
13 views

Custom Follow People function from Search Site

For various reasons I need a function that follows people from "people search results". Like the Sharepoint hover has a follow link, I need the same, but I need a function that I can use on each ...
0
votes
1answer
23 views

Dynamic fields in SharePoint 2013 forms

I have a custom SharePoint list form where I would like to have country names(from another list) in one row with a check box in front of each row. On checking of any check box in front of country ...
1
vote
0answers
28 views

Programmatically Edit and Programmatically Save Edited Wiki Page in Sharepoint 2013

I inserted javascript code in a Sharepoint 2013 wikipage, through Embed Code. The basic javascript code appends rows to a table, the code is var myTable= document.getElementById('myTable'); ...