An open-source, cross-platform JavaScript library, now endorsed by Microsoft

learn more… | top users | synonyms

1
vote
1answer
15 views

Get Display Name from Account Name

I have used SPServices to get a user profile by their name, and in the process, I wish to display their supervisor's name as well. I can pull this name from the user's object, but the supervisor is ...
0
votes
1answer
9 views

Check an user belongs to a AD group inside SharePoint Group using SPServices JQuery

I want to check the current user exisit in a AD group inside the SharePoint Group using SPServices JQuery. I used the below code snippet but not successed. Any suggestions? $().SPServices({ ...
0
votes
2answers
30 views

Get values from Sharepoint Client People Picker using JQuery

How do I get value from ClientPeoplePicker using JQuery. I have tried below code, but not getting the results. function getPickerInputElement(identifier) { var tags = ...
0
votes
4answers
44 views

What is the formal way to hide fields from the buit-in New and edit forms using jquery

I am facing some problems in hiding fields from the New and edit forms, if I chose to do so from the Content Type settings and set the column as hidden. As there seems to be some scenarios where these ...
0
votes
1answer
7 views

How to show the “new” gif image when a list's date column is equal to Today()?

We have a list with column "Publish Date" and "Title". User want to attach a "new" gif image at the end of "content" if "Publish Date" for that row is equal to Today. From my understanding, the OOB ...
0
votes
1answer
36 views

Check whether internal name of column exists in Sharepoint list

I want to check whether the field internal name exists or not and if exists then get its internal name using $().SPServices
0
votes
0answers
7 views

Get attached file from FileUpload control using jquery

I want to get all the files from the file upload control using Jquery and update in the Sharepoint list.
0
votes
1answer
9 views

Child selector from table

<div class="content"> <table id="Table" style="width: 100%;"> </table> </div> <button type="button" onclick="add()">Add row</button> ...
0
votes
0answers
26 views

Sharepoint 2013 - Redirecting to EditForm.aspx with ID of newly created NewForm.aspx

I've scoured the web for a solution but have unable to find one thus far. I have a master-detail view built from a Request form (Parent) and a Request Details form (Child). I am trying to simplify ...
1
vote
1answer
18 views

How I can reset the People Picker height on IE

I am facing a problem on IE 10 32-bit, where the People Picker will not show the people correctly, as the area seems to be minimized. Here is what I get from IE developer tools:- Now if I manually ...
0
votes
2answers
13 views

Get Checkboxlist selected lookup value and update the list using SPServices

I have a CheckBoxList in which there is a Lookup values. Now I need the selected values and update it to the Lookup column in the list using SPServices. I tried the below code: var selectedValues = ...
0
votes
0answers
24 views

Add multiple items to list

I need a form that allows a user to enter multiple items that are saved as individual list items to a list. The form will need rows with a + - button. One of the columns in the list is a lookup which ...
0
votes
1answer
29 views

Hide and display things if user member of group

i have group, were i have some users, if the current logged in user is a member of my group then display that, if the user is not a member of the group then dont display. Right now it first says the ...
1
vote
2answers
37 views

jquery.done runs before when - deferred promise

I have placed a SEWP in an editform and the code is supposed to do the following: check if the logged in user is site administrator and web administrator - if not then hide a specific field. These two ...
1
vote
1answer
20 views

Custom calendar colors when move forward or backwards in months

I've been able to get custom colors working on my calendar, but when I go to previous month or next month the colors don't persist. To attempt to remedy this I've tried making a click event to get ...
1
vote
0answers
14 views

Can't load google maps JavaScript file in SharePoint hosted app

I am building a SharePoint hosted app where I am retrieving the user's location in coordinates. I am trying to reverse geocode these coordinates using google maps api. But I can't load the google maps ...
0
votes
1answer
22 views

Javascript + SPServices while executing the code doesn't show a loading modal nor modifies a button attribute

basically this is my code $('#saveButton').click(function(){ showLoadingDiv(); $('#saveButton').attr('disable','disable'); }); function showLoadingDiv(){ ...
0
votes
0answers
21 views

Retrieve data from listdata.svc of an FBA site using jquery

I am trying to retrieve data from listdata.svc of an FBA site using jQuery but no success. Here is my code: <script> $(document).ready(function() { //use the getJSON mehtod of ...
0
votes
3answers
31 views

SPServices getListItems CAMLQuery Issue

Attempting to retrieve items from a list where field School_id is equal to a school_id javascript variable, and using SPServices GetListItems operation. If I run the script without the CAMLQuery: ...
0
votes
1answer
12 views

SharePoint 2013 Search - Open PDF in new browser

I have some jquery(as suggested by someone on StackExchange) to open PDFs in a new browser window from the out of the box search restuls web part. The code works in Chrome and Firefox but not IE8. ...
0
votes
1answer
28 views

How to get SharePoint ID given only item URL?

Looking for the simplest possible solution, but needs to be JavaScript/jQuery if at all possible. I have an XML document that I am transforming using XSLT to render an HTML page. This XML document ...
0
votes
1answer
12 views

Accordian Jquery Events for Customised List forms

Want to understand how do we differentiate Submit/save event in customized list forms. eg: When we are in Section 1 the submit/save should correspond to data being submitted in section1 when we are ...
0
votes
2answers
48 views

How to collapse Ribbons bar when page is loaded?

When user click on an item display view (DispForm.aspx) the "View" ribbon is always expanded by default. It is annoying sometimes. How can I to make it collapse (not hide) by default? When user need ...
0
votes
0answers
18 views

One script blocks other

I have been developing a workflow app on our SharePoint 2013 site. I have two scripts that I want to add to the custom new item form. Each of them (if only one is present on the site) works fine. The ...
0
votes
0answers
29 views

Get listitem through another listitem on the same row (select changed)

I'm sorry about the mess! but here I go My sharepoint list has 3 columns= Title, Priority, Status I want to get all the Status items into a dropdownlist, and when i click any of these Status items i ...
1
vote
0answers
11 views

Save the Webpage content as document to Document library in SharePoint 2010

We have a requirement to save the webpage content as document (PDF/XPS/Image) to SharePoint Document library on a button click. Only client side scripts (Javascript/Jquery) are allowed to acheive ...
0
votes
3answers
66 views

jquery to color code a line with negative value in a SP list

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ ...
0
votes
2answers
41 views

Should we consolidate all form customization javascript into one file?

On the project I am working on (SP2013 on-premise), almost all the form pages (Newform.aspx, DispForm.aspx and Editform.aspx) have added a Script editor webpart with JQuery to customize form layout ...
1
vote
1answer
27 views

How to add Font awesome and jQuery Link in SharePoint Master Page or any other page

I am using SharePoint 2013, I want to use font awesome in my pages But when I put the link in Master page or in any page, when I want to access the page it give message like: Show All content My ...
0
votes
1answer
78 views

Jquery fullcalendar - how to make current month (days) unselectable

I am building a SharePoint-hosted app in SharePoint. Basicaly it is a time planning app. I used a jquery calendar plugin (fullcalendar). My question is I have a "lock" button. When user clicks the ...
2
votes
0answers
12 views

Restrict Adding User to SPGroup Based on a User Property

I have an SPGroup that has permissions that are common to several users but my requirement is only one user (of a given parameter) should be in this SPGroup. For example, I have a list of Company ...
2
votes
1answer
39 views

Forbidden error when trying to copyTo document from list to Document Library

I am on a SharePoint 2013 cloud setup (but for testing purposes, it is a prem server). I am customizing an Edit form for a list, so that when a user checks a box the preSave event will copy the ...
0
votes
2answers
21 views

Conditional formatting on list based on a user/person/AD entity

I have found many how-to guides on JavaScripts to render a colored line in a SP list based on a word in some column. I tried it with a 'person' (a people column) and it did not work. The value in ...
1
vote
2answers
30 views

SharePoint 2010 - Jquery - Installed on Server

My company has jquery installed on every SharePoint, and while I have years of SP experience including design, very new to jquery. My problem is I need to use a jquery solution to freeze the ...
0
votes
0answers
30 views

Calling Cross Domain Java Based web service by JQuery AJAX from SharePoint 2013

I am trying to call the Java based Web Service by Jquery Ajax, The URl of the Service is "http://vmABCapp01-staging.domain.com:7083/UserIDCheckService/CheckUserIDServiceImpl". The Jquery Code to ...
0
votes
0answers
5 views

How to view xml code of a list view when multiple filters are applied

Is there a way to get xml data when multiple filters are applied to listview on a sharepoint page. For single filters its working fine. code: var ...
0
votes
0answers
20 views

Filtered lookup using SPServices

I have 3 lists: Schools, Interactions, Contacts In the new form for a Interaction item I have a lookup field displaying a long list of contacts, however I need to filter this list to only display ...
1
vote
0answers
14 views

Function call in selection event

I want to call the following function in a selection event function name calcDay(). var p = getList("Compulsory Leave"); When i put it inside the selection event function it generated error : p is ...
1
vote
1answer
18 views

Check SP datetime control is empty or not

I want to check whether a Sharepoint datetime control is empty or not. How can I do this using jQuery?
0
votes
1answer
38 views

Get the user name

I am working with SharePoint 2010 lists and I am trying to populate the list data in a page using a text box and button where in text box I enter the name of the person and click on button which gives ...
0
votes
0answers
16 views

Reading/Writing to excel

I have a requirement to read/write to excel. I am aware that it can be achieved by using Sandbox solution or provider hosted app. I am trying to do this via jquery. I came across this site which looks ...
0
votes
2answers
40 views

Loop through Radio Button with jquery and get values

I'm trying to loop through radio buttons on a form and get their value to compare to another value. If the values are equal it will check the radio button. The issue I'm having is that the loop only ...
0
votes
0answers
8 views

How to Attach Information to the Beginning of Each Paragraph in a Single Entity?

I am using SPServices to append information from a SharePoint (2010) list onto a page. This information is a summary written by a user, so it can contain multiple paragraphs or it can contain one, ...
0
votes
1answer
22 views

JQuery Hover not Working in SharePoint 2013 Calendar list

I used following URL for loading all resources item in SharePoint 2013 Calendar List and Its working fine as per my expectation. ...
0
votes
2answers
41 views

How do I get custom input values to save when I click the save button in a form

I currently have a list form that I am included custom fields on. I'm using jquery to store the values. To store the values I've create a function that will be called when the Save button is clicked. ...
0
votes
1answer
26 views

Get image from SharePoint by URL

I try to get an Image from SharePoint by using JavaScript code. I have the complete URL of the image which is stored in a SharePoint Assets Library. My app is SharePoint hosted. This code does not ...
0
votes
1answer
20 views

SCRIPT5007: Unable to set property 'ListId' of undefined or null reference

I am working on an enterprise wiki site collection, now when the user edit the properties of the page he will be redirected to the following page :- so i wanted to hide all the fields except the ...
0
votes
2answers
26 views

Issues with hiding <tr> elements in sharepoint form using jquery

I'm running into issue trying to hide elements in my sharepoint NewForm. I've added the jquery script to my NewForm <script src="/SiteScripts/jquery-ui-1.8.24.min.js"></script> I have ...
0
votes
0answers
87 views

List Form Jquery Save Button (validate, save, redirect) error. Is there anything wrong with our syntax?

We have a custom list form that we are trying to save, validate, and redirect. We can get the button to save and validate, but not redirect. And vice versa. We have tried several variations on the ...
0
votes
2answers
65 views

Problems while Accessing SharePoint List items in SharePoint 2013 using REST API in NAPA tool

I am trying to access the list item using an APP in my office 365 share point hosted trial environment.It seems like the call REST call is failing, the alert in error function is getting executed. ...