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

learn more… | top users | synonyms

0
votes
1answer
42 views

Working with SharePoint mobile view and jquery mobile

I have a SharePoint Online site, https://[mysite].sharepoint.com. My goal is to have a couple pages on this site that utilize jquery mobile to give an app-like feel to the user. As it stands, I have a ...
0
votes
2answers
60 views

Need to pause While loop

I am using SharePoint 2013 in the cloud. Due to restrictions in the site, I am using JSOM and jQuery to customize a site. I have modified a Document Library edit form to create Tasks for each person ...
0
votes
1answer
30 views

color coding in a list view is lost when any of the columns are arranged by clicking on the column header

I have some JavaScript that will colour row in a SharePoint list View web part depending on values in certain column. This part works fine and the rows are coloured correctly upon page load. The issue ...
1
vote
2answers
88 views

Custom Jquery script to hide fields inside my New & Edit form is not working on Iphone safari web browser

I have defined the following jQuery script to hide some columns inside my Edit & New built-in forms:- $( document ).ready(function() { $('.ms-formtable nobr:contains("Item ...
0
votes
0answers
37 views

modify the min length for the “People or Group” auto complete

i have a "People or Group" field inside my team site, and currently the built-in autocomplete will work after typing 3 characters. so how i can modify this to allow the autocomplete to work after ...
0
votes
1answer
30 views

jQuery validation on date field

I have 2 date fields in SharePoint list Deferral Raised Date and Original Dispatch to date. I want to put formula in jQuery such that value of Original Dispatch to date should be less than Deferral ...
3
votes
1answer
61 views

Modify the “Select People” dialog height

I am using IE 10 32-bit & windows 7 . now the "Select People dialog" will look as follow: where only part of the first user will be displayed! Now the whole problem is with the inner style ...
1
vote
2answers
40 views

Is There A Way to Determine if More Than One Option in Custom Dropdown Field?

I have a custom dropdown choice field that is created using jQuery after a date is selected and a choice box is selected as "Yes." Here is that function: function queryEvents(date){ ...
0
votes
0answers
17 views

Disable Edit button in View form using JQuery is not working in Firefox

I am trying to disable some ribbon controls on client-side using JQuery. It works on IE8 but not on Firefox. I put the following code in a content editor in dispform.aspx ...
0
votes
1answer
18 views

Which should I use on SharePoint 2010 list item forms? JQuery or InfoPath?

I'm editing some SharePoint 2010 list item forms using InfoPath 2010 and some with JavaScript/JQuery. I know that Microsoft will not support InfoPath after SharePoint 2013. InfoPath is easy to use to ...
0
votes
1answer
111 views

Hidding Forms; fields using standard jquery versus using JSlink. which approach is better

I want to hide some fields from my Edit & New forms, and i need this to apply to all the subsites. now if i hide the columns from the Content type they will appear again when users modify these ...
0
votes
0answers
21 views

How to make Promoted links responsive?

I'm having (as expected) big times truble trying to implement twitter bootstrap in Sharepoint, anyway, most of the things works properly exept when i'm trying to make the promoted links reponsive. ...
0
votes
0answers
23 views

Sorting lookup column by descending dates in list form in SP 2010

I have a lookup column (Date of Distribution) that pulls a list of dates from another list on the same site. When the lookup pulls the dates, they are in ascending order, so the oldest first down to ...
0
votes
1answer
22 views

Show Custom field in SharePoint form based from a table in sql server

I hope I can get some tips here. I have some fields in a SharePoint form that I would like to pre populate from a table in SQL server tables. So for example if I select a value in a dropdown field ...
0
votes
0answers
53 views

Enabling Maximize Button for a list in sharepoint 2013

I have applied the following code in my SharePoint 2013 site in the content editor webpart: var options = { allowMaximize: true, showMaximized: true, url: “siteURL” }; ...
0
votes
0answers
24 views

Multi-Level Accordian Quickstart Sharepoint

/* left quick launch */ $(function(){ /*set dynamic css logic*/ if($('#sideNavBox .menu-item.selected').length){ //propagates the selected class, up the three. ...
0
votes
2answers
195 views

Get values from Sharepoint ClientPeoplePicker 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
2answers
622 views

Unable to get property 'STS' undefined or null reference - Sp.ui.dialog.js

My problem is that when I start my app for the first time,it shows me an error. The error is: Unable to get property 'STS' undefined or null reference. If I refresh my app then the error disappears. ...
1
vote
1answer
220 views

Get value from textboxes inside dynamic table using selector

I am creating one row every time im clicking on the btn Add row. In this row there is 3 textboxes and one lable(span) and one buttom. I want to reach by selector the value in the (input type:text) or ...
1
vote
1answer
70 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
4answers
104 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
49 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
1answer
17 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
75 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
15 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
18 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
98 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 ...
2
votes
1answer
37 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
105 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
27 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
55 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
88 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
67 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
41 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
35 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
44 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
46 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
255 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
22 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
60 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
51 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
21 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
126 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
106 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
46 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
238 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
24 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 ...