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

learn more… | top users | synonyms

0
votes
2answers
120 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
29 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
65 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
1answer
93 views

Using SPServices' GetListItems to sort by what the current user has “liked”

I'm using getlistitems to grab list data in SharePoint 2013, and I've managed to be able to filter by the current user's "liked" list items... but is there a way to sort by what a user has liked and ...
1
vote
3answers
2k views

Accessing list data from another site collection or web application using REST services?

I have a list (Links template) of URLs that is on a site collection and I was wondering if it is possible to include this list as a jQuery megamenu on another site - ideally another web application on ...
1
vote
2answers
87 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
0answers
50 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 ...
1
vote
1answer
41 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(){ ...
1
vote
1answer
47 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 ...
3
votes
4answers
5k views

Loading jQuery and jQuery UI within JSLink script

How would I go about using jQuery and jQuery UI (mainly the sortable component) within a JSLink script. So far I've tried several methods of dynamically loading javascript within the JSLink script ...
0
votes
0answers
52 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
453 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
31 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
79 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 ...
2
votes
1answer
52 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
1answer
23 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
159 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
3answers
111 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
0answers
23 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
2answers
49 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 ...
0
votes
1answer
321 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 ...
1
vote
0answers
27 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 ...
1
vote
1answer
53 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 ...
2
votes
0answers
18 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 ...
0
votes
2answers
41 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 ...
0
votes
0answers
102 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 ...
1
vote
2answers
31 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
9 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 ...
3
votes
2answers
165 views

jQuery not working on 2nd page of SharePoint list

On our SharePoint list, we have anchor tags opening in a new window via: <script type="text/javascript" src="/SiteAssets/jquery-latest.min.js"></script> <script ...
0
votes
0answers
59 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
17 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
83 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
57 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
2answers
181 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
29 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 ...
2
votes
1answer
219 views

Footer does fill the whole width. Scrolling in document library

I have a problem with the footer not extending to the right side when scrolling to the right. (In a document library with way to many columns). Meaning the footer have a blank spot in the right side ...
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
57 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
86 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. ...
0
votes
2answers
39 views

How to Determine if One or More Fields in Custom Edit Form have Validation Errors

So I have a DVWP with an Edit Form. The form uses jQuery tabs to organize the fields for the different roles that edit the item. I would like to show a message at the top of the form if at least one ...
0
votes
2answers
95 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. ...
6
votes
3answers
9k views

REST API filter by start and end dates using 'today'

I'm new to filtering dates with REST in SP but am trying to do something like below but am not sure how to get today's date in as a variable into the request. I don't think I'm too far off so any help ...
0
votes
1answer
67 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
122 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
47 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 ...
2
votes
2answers
528 views

SP Services does not update the list item

SP Services : UpdateListItems does not update the list item. The problem lies with the value that needs to be updated. The item is updated when the value is a normal text, but when it has some special ...
0
votes
0answers
195 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
1answer
236 views

drag and drop folders,Items in sharepoint

I need to drag and drop folders between SharePoint libraries. Drag and drop items between list. Those are not offered in SharePoint 2013. Do I need a jQuery script? And if any one have an idea how to ...
0
votes
0answers
35 views

Cascading dropdown in Sharepoint 2010, issue using SPCascade

I'm trying to use this script and have followed each step accurately, however when testing it, the drop-downs simply display (None) rather than the values saved in the first list. I tried using the ...
1
vote
1answer
130 views

Display All Sharepoint site owners in a table for a site and subsite

I just want to display all the Site owners in a table for each site. So i have developed the below code where i was able to fetch the users form the Owners Group. It is working only for the first ...