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

SharePoint 2013 - Best alternative in building web forms for JavaScript Developers

Within SharePoint 2013, if creating webparts and deploying them is not an option, what would be the next best (most flexible approach) for front-end JavaScript developers, in creating forms for ...
1
vote
2answers
119 views

Color code due date field if 6 months before current date

I have this specific requirement to color code the due date field if it's value is less than 180 days (6 months) compared to today's date. Is this possible with Javascript/JSLink ? Thanks
1
vote
0answers
15 views

get site path using a group id

I have a list of groups a user is member of including the groups' name and id. Now I need to construct URLs to the sites those groups are used in. (I can assume there is 1:1 relationship between group ...
0
votes
2answers
23 views

SharePoint 2010 Parse created by Lastname, Firstname to Firstname Lastname

Is there a way to parse the created by displayed user Lastname, Firstname to be displayed Firstname Lastname. I do not mind if this is done through JavaScript as a transposition after the page loads.
0
votes
3answers
85 views

How to set content type with JSOM

I am able to create new list items programmatically with JSOM, however I can't find the correct code to set content types on the new items. I have tried the following two methods : ...
0
votes
0answers
42 views

How can I add a print button to an InfoPath form? SharePoint 2013

I cannot create a print button that works in browser-enabled view. Is there any method make it. I have tried with thisXdocument.Print(), but thisXdocument does not exist in my context. I need to ...
0
votes
1answer
44 views

How get multiples users by id with REST API?

I need get multiple users by ID with REST API. I looked this question: How to get multiple users with REST API But is not answered. I've the ID's in an array: var people = [426, 352, 155]; I've ...
0
votes
1answer
32 views

Get list item when its null or undefined

So I have this code while (listItemEnumeratorlistReady.moveNext()) { footerListItem = listItemEnumeratorlistReady.get_current(); arTitle.push(footerListItem.get_item('Title')); ...
0
votes
1answer
86 views

SPServices GetListItems from External List causes HTTP 500 Internal Server Error

My function only works when I'm using my SP_ADMIN user. But when I'm using another user I receive the following error message from the console: 500 (Internal Server Error) What's wrong with this ...
3
votes
2answers
110 views

How to design the SharePoint List NewForm.aspx?

In the SharePoint List NewForm.aspx I have to design the form like two text boxes side by side with the headings? Is it Possible to design like that? Can any one help me on this issue?
0
votes
0answers
22 views

How to expand the group name within a list with REST

I have a list with a People/Group field that I want to access via REST call: /administration/_api/web/lists/getbytitle('Permissions')/items?$top=10000 The problem is that it just loads the list IDs ...
0
votes
0answers
22 views

Unable to access list data in another site collection in Office 365 SharePoint Site Collections

Let us consider two site collection urls in Same Web App in Office 365. http://webapp/sites/siteA http://webapp/sites/siteB Both sites have 'List' with same name Following code works for same site ...
1
vote
0answers
34 views

Conditional visibility and calculated expressions for new and edit forms

We need help regarding visibility and dynamic calculated expressions inside new and edit forms (not the standard calculated fields from SharePoint). Until now we used mostly Ardevia Rich Forms for ...
0
votes
2answers
80 views

how to retrieve all surveys in my site using javascript/csom

I have created some surveys using survey app,I want to list all surveys existing on my site using client object model.
0
votes
2answers
60 views

Call the server side validations on SharePoint List Form

I have some custom JS code that would help me validate fields on a list on the client side. Just in case, if fields pass the client side validations, I'm displaying an alert saying "Your item has been ...
0
votes
1answer
30 views

Removing Sharepoint injected classes

I am trying to remove a class injected my sharepoint, since it's breaking my modal dialog box. This is the code: function popup(myTitle, myBody) { //the modal dialog var element = ...
0
votes
1answer
71 views

Iterate through list items stored in array JavaScript

I am currently using SharePoint 2013 Online and I have some code which I am running to retrieve list items. I can successfully get the list items and store them in an array however I then need to ...
0
votes
0answers
45 views

Set Content Type of New List Item Using JSOM

I am trying to add folders to a library using JSOM. I need to set the content type of the new library items, however I am not finding the documentation on how to do that anywhere. var ...
0
votes
2answers
83 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
2answers
78 views

show Doc icon of SharePoint document library using jquery in jqgrid

My scenario is to show doc icon in Jquery Grid for sharepoint document library. My Data is in JSON. here is how i am fetching the data and building the array object and Pass it to JSON.Now in my ...
0
votes
1answer
48 views

Javascript API for Office error

I am trying to read from an excel file to use the data in SharePoint. I recently discovered the Javascript API for Office however I can't reference the library without an error. I use the following ...
1
vote
1answer
37 views

Ribbon Button CommandAction doesn't work

I have two ribbon buttons: <?xml version="1.0" encoding="utf-8" ?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="CustomCustomRibbonTab" ...
6
votes
1answer
94 views

(ClientSide) set/update JSlink to CSR files for (all) WebParts, Views, Fields

Working on iCSR.github.io to make CSR development a bit easier. I now want to make it as easy as possible to set the JSlink connections on WebParts, Views or Fields. I have code snippets to do it ...
2
votes
1answer
31 views

How to query data on app web from host web

I need to query a list located inside a SharePoint hosted app, when located on host web, using JavaScript (REST preferably). I control both app and host. It's possible to communicate with an app ...
1
vote
1answer
41 views

HTML Webpart JavaScript works in EditForm.aspx but won't in AllItems.aspx

I have a HTML Webpart with the following code (piece): <script type="text/javascript" src="../../SiteAssets/jquery-1.12.0.min.js"></script> <script type="text/javascript" ...
1
vote
1answer
40 views

Temporary individual list or view for users

I want some kind of dynamically created List for every visiting user in SP 2013. The data lives in multiple lists and I want it to be aggregated in the target list/view. When a user visits the ...
0
votes
0answers
30 views

ContentType problem in JS after install of SharePoint Cumulative Update

After installing the SharePoint 2013 Cumulative Update of December 2015, i have a very strange issue in my SharePoint 2013 portals the situation before I install the CU (the farm was in SharePoint ...
0
votes
1answer
26 views

CEWP to set Infopath field value not working

I have an infopath form web part on my web page along with a CEWP. I'm using javascript in my CEWP to set a field on my Infopath form to some value when a button is clicked. For some reason I can't ...
3
votes
4answers
405 views

Javacript only executed on first page load

I have javascript code included in my sharepoint site. When I load the page the first time, it is executed, but when I load it the second time, it is not running. It get's loaded in correct order but ...
0
votes
1answer
17 views

Increase Font Image Mouse Over [closed]

This may not be possible without jQuery ToolTip, but I want to try. Scenerio: I would like to increase the font size in the description located in the mouse hover whether it's a image or a list ...
1
vote
1answer
58 views

sharepoint modal dialog not working

I am trying to display a list items's content (body column) when you click on the title in a modal dialog box. If I fill the modal function with nonsense text, it works fine (for example, title: ...
1
vote
0answers
43 views

How to add Onload change event in Dropdown list

Onload of the page: 1. Change the selected value of dropdown 2. DFWP will update list I have a dropdown list connected to a DFWP for filtering. Using javascript and onload function of SharePoint, I ...
0
votes
1answer
77 views

Modal dialog from picture

This is the updated code as per a previous reply although this doesn't appear to be working. Please advise - do I need to add any jQuery files to the site? See the updated code below. I have some ...
0
votes
1answer
107 views

SharePoint 2013 REST: Value does not fall within the expected range

Creating and updating list items via jQuery/REST. The script has been functional for roughly four months now, but this morning decided to start throwing an error. error: {code: "-2147024809, ...
1
vote
1answer
57 views

Styling a list in sharepoint 2013 with JSLink returns [object HTMLDivElement] instead of content

I have a news list in sharepoint that I'm trying to style with jslinks, but for some reason it returns the [object HTMLDivElement]. the footer appears correctly and is styled, but the column styling ...
0
votes
0answers
8 views

Redirect User after starting a workflow fails Customer EditForm.aspx Sharepoint 2010

I have the code below that successfully updates the record for which the form is showing, kicks off a workflow to mark the record as CLOSED and notifies the user that the process has taken place. I ...
1
vote
1answer
36 views

Hide Ribbon Row Overriding Web Part

I have the following lines (using javascript) in my default display form associated with a document library. It works fine, but when I go to add another web part to that display form, it overrides it ...
2
votes
1answer
32 views

Copy a file (document) with REST/JSOM and set field values of the copied file

I wan't to copy a file from one library to another and set some field values. I used the following code to perform the file copy: function copyFileREST(name) { var call = $.ajax({ url : ...
3
votes
2answers
92 views

Create and Update Records in Multiple Lists in SharePoint 2013

In SharePoint 2013, i am designing relational lists which will be displayed in one single form. For example, I have 4 lists; List A List B List C List D For every record that is created in List ...
1
vote
0answers
27 views

javascript works on checkout not in check in

I am using SP2013 & giving a JavaScript on homepage but the problem is it works when the homepage is checkout as soon as I check in the script doesn't work. what might be the reason ???
0
votes
0answers
16 views

Additional space while embedding <script> in SharePoint table

I need to embed an HTML line on SharePoint. As you can see in this picture in attach: first row, more than 60px, the code is: <script type="text/javascript"></script><button ...
0
votes
0answers
13 views

named image not in `workbook.getNamedItems()`

I need to be able to access an <img> after embedding my Excel dashboard into an html file. I have named the image in Excel, but it is not showing up in calls to ...
0
votes
1answer
31 views

update list from another list using ECMA/client object model?

I have eleven lists list1,list2,..list10.and listDup Now i want to update ListDup's SID column based on List1's SID . when the time of adding item in List1(List2,List3,..List10) i have to check sid ...
1
vote
2answers
39 views

How can I apply CSS to webparID?

how can I apply css to webpart ID. I have the following webpart: webpartid="5a399f4c-f605-409c-8e3c-55993af60c9a" I need to apply css only for this webpartID How can I do that? Thanks!
1
vote
1answer
61 views

jQuery script for new list item form only works in edit mode

Newbie question. With Sharepoint Online, on a new List I'm modifying the Default New Form and I've added a Content Editor web part. I've linked the Content Editor to a script file that I've uploaded ...
0
votes
0answers
34 views

SharePoint 2013 List Box view customize web part display

I am referencing a list in a web part on a SharePoint page. In that web part I am using the "Boxed" view. However, I would like to customize the way that box looks a bit. Some examples would be to ...
1
vote
1answer
40 views

How to retrieve all folders in a document library using java script or spservices

I have created one document library,in that library i created some folders. How can i retrieve all folders in a particular doc lib using java script.Any ideas?
4
votes
1answer
132 views

AJAX/Rest only returning 100 items instead of full list

On an onchange event on a select box (filtered lookup column where the value is the item ID) i make an AJAX call to auto fill certain fields on a form. This works great except for it only returns 100 ...
1
vote
1answer
40 views

list item not updating till refresh the page in Javascript

I have javascript to update the item title which loads while displaying the form(disp form), the item is updating fine but till i refresh the page only, not while loading the view item Here is the ...
1
vote
0answers
16 views

Correct usage of getListItemChangesSinceToken() in JavaScript

I'm working on a Sharepoint hosted App, that accesses List Data from the Hostweb as I outlined here: EventListener for List changes in Sharepoint Hosted app I want to use the ...