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

learn more… | top users | synonyms

0
votes
2answers
796 views

How do I show a field in dispform that's been hidden in content type?

Sharepoint 2010 Enterprise. This is document library for word documents. I have some fields that are set by workflow that I want end user to see but not be able to edit. I was going to just use ...
0
votes
0answers
39 views

DOM Manipulation Improvement

I am using jQuery selectors as post processors in my SharePoint application - jQuery post processing works out well in terms of DOM manipulation but the performance is extremely slow. Can anyone ...
1
vote
1answer
81 views

How can I check if a value already exists in a list before submitting a form? (SP 2010)

I have a weekly update form that gets updated at the end of every week, but due to people making more than 1 a week I need to ensure that they can only make one a week. So I want to use the week ...
0
votes
0answers
384 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 ...
8
votes
2answers
492 views

Use SharePoint 2013 “Working on it…” during ajax call

I'm trying to use the SharePoint 2013 "Working on it..." during ajax call. This is the code: function ShowWaitDialog() { SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15); } ...
1
vote
1answer
158 views

Javascript running before SPServices call is complete

Note: I am a beginner and new to SharePoint and not a regular with SharePoint based projects. Kindly refer commented out code only if needed. I am building a sample page and displaying it on ...
2
votes
1answer
205 views

Keypress enter key does not work in Chrome

I am replacing the default datepicker for the jquery picker and I have a Javascript code to handle that. I also have a keypress event when I go to the element with tab and press enter it show me the ...
0
votes
0answers
44 views

JavaScript broken after upgrade to 2013

We have upgraded from Sharepoint 2010 to 2013 and my assession number function stopped working. Need some help. Number is not generating <script type="text/javascript" ...
0
votes
1answer
47 views

Set a calenders Start/EndTime on the NewForm using Javascript/Jquery?

I'm trying to set the start- and end time when creating a new event in a calendar to 00.00 for both fields but i had little to no success as i know very little about client side coding. I've been ...
0
votes
1answer
121 views

Display an Announcement List inside <div> tag

Here is my code to fetch Announcements List and display it as HTML table: <script type="text/javascript" src="/Test_Library/js/jquery-1.11.3.js"></script> <script ...
1
vote
2answers
189 views

Javascript code for Autocomplete/suggest function for a textbox

I have a question with around 1000 possible choices (we need to know a email in a share point list). Because a drop down list would be to long, we would let the users submit their answer in a text ...
0
votes
1answer
158 views

Set value to ClientPeoplePicker

I need to set value into a ClientPeoplePicker, my list save the user as a SPUserField, I already get the id from the list. Thanks and greetings
0
votes
1answer
54 views

How can I respond to a click event from an HTML button server-side?

I'm creating a button on a Sharepoint page dynamically (in C#) in my *.ascx.cs file: Button btnSave = null; protected void Page_Load(object sender, EventArgs e) { base.OnPreRender(e); ...
0
votes
2answers
220 views

Can't properly “get” attachment binary for certain filetypes

I am performing a "GET" request for a file on my SharePoint site because I need to be able to copy a list item and then copy each of its attachments. I am able to use this code to get the associated ...
1
vote
2answers
13k views

Setting the value of a lookupfield(sharepoint dropdown formfield) in sharepoint 2010 list forms

How can i set the value of sharepoint form field dropdown box(lookupfield) in sharepoint list form when the form gets saved (using jquery) note: the lookupfield (dropdown formfield renders as input if ...
0
votes
1answer
492 views

jQuery to Reset sharepoint Dropdown value to empty in

Can you please let me know how to reset Dropdown value to empty using jQuery. I tried using like this on Dropdown doen changed event but it is not working. Can you please help me. Below is the code i ...
0
votes
0answers
38 views

Async webpart - the best approach to access outer data source from webpart

I've already tried to search the web but I always get to some point from which I don't know how to get further. I have a Visual web part which needs to load data from external sources (different ...
2
votes
2answers
475 views

Script Editor Web Part not recognizing Jquery

I'm trying to test JQuery in a Script Editor Web Part but it doesn't seem to be recognizing the JQuery. Any suggestions would be greatly appreciated. Code: <div id="testing-jq">Jquery Test - ...
0
votes
1answer
40 views

change function not working

I have a SP app and one of functions is to change background color but the problem is that when I choose a color in drop down there's nothing happening. <select id ="selectColor"> ...
1
vote
1answer
47 views

REST - How to get the maximum of a number

A list has an int field named AccountNumber. Everytime a new record is created through the NewForm.aspx I need to fill out the field AccountNumber with max (AccountNumber for existing items) + 1. I ...
0
votes
2answers
79 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
2answers
105 views

Disable taxonomy field and pick list through jQuery

I have a SharePoint 2013 taxonomy field in my site called "Status" and I want to disable it in the new form of the list. Here is what I have done. var controlHondaStatus = ...
0
votes
0answers
19 views

Increase Length of Stream Data from Client to Sharepoint Custom List

I am trying to update a column in a SharePoint 2013 Custom list but I am getting this error The maximum number of bytes allowed to be read from the stream has been exceeded. After the last read ...
0
votes
2answers
435 views

Get user details from people picker field using JQuery

I want user details like "Email" from people picker field using JQuery. Here in People Picker box when any name is entered I want "Email" of that user
0
votes
1answer
167 views

Reload Page with added parameter

I have created a Page in SharePoint online and it contains an embed code from another service that we utilize. I want this service to track the user that viewed the page within the embed. To do this, ...
0
votes
0answers
110 views

jquery datatabes deferloading response is of text/html; charset=utf-8 content type instead of JSON

I am using SharePoint Search API to search SharePoint lists and using jquery datatables to display the data. In my code I have set the row limit to 100. So getting the first 100 items/results is fine ...
1
vote
0answers
14 views

Aggregate tasks across different sites and display them in custom timeline

I would like to build a timeline where I can aggregate tasks which are located in different subsites. While I was searching around I found this post and I thought to use REST. But my biggest concern ...
0
votes
3answers
377 views

How to add link in jquery DataTables column?

I have succeeded adding the link in the column but I can't seem to add the url/path in the href attribute. How can I add the path/url and the title in the function below so that the link will be ...
1
vote
0answers
187 views

how to show all search results using jquery Datatable?

I am searching lists using CSOM Search API and displaying the results using jquery DataTable. My problem at the moment is that my search returns 2134 rows in total, but search api has a limit of 500 ...
0
votes
1answer
70 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
120 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
139 views

How to validate a sum of percentage from multiple fields before creating a new item?

Here's the situation that I'm facing. I have three (number-type) fields which should add up to 100%. What I want is to be able to dynamically validate that after I input the number into the 3 ...
2
votes
2answers
220 views

jQuery autocomplete with TextFilter and click not keeping selected data

How can I add autocomplete to a textfilter webpart which keeps the mouse selected value as the textbox value? With the current code user start typing then autocomplete list brings up but once he/she ...
1
vote
1answer
104 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
1answer
56 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"> ...
2
votes
4answers
4k views

How to get the Login Name of user from people picker control using jquery?

I want to get the log-in name of user from people picker control using jquery. I have a code which displays the display name of the user but I am not able to get the login name. Code is as follows: ...
1
vote
1answer
4k views

Using REST call to retrieve SharePoint list items as an array of JSON objects

I found this great tutorial to use REST calls to retrieve SharePoint list items as an array of JSON objects posted by Mark.Rackley (Mark Rackley.). It is working, but I would like to add a new ...
3
votes
2answers
3k views

Help with getting the value of a look up field

Currently, I am using an ajax request to access the list items. The fields that are not lookups come as expected but the lookup fields come across as an ID of the object that corresponds to its ...
0
votes
0answers
124 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 ...
4
votes
3answers
1k views

SharePoint REST POST to upload file produces corrupted or empty file

I've got this jquery/REST process that I thought was uploading a PDF file to SPO 2013 Document library, but it's only producing an empty or corrupt. Anybody know why? function ...
0
votes
2answers
147 views

How to copy data from one column to another in sharepoint 2010 using jquery

I need jquery code which can copy the data from one column(look up column) and populate into other column (single text line) in the same list in sharepoint 2010.
0
votes
1answer
70 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
1answer
132 views

$orderby not working with lookup column Id

I want to sort order my REST results data with a lookup column's Id in my SharePoint list. I tried using $orderby in my REST query, but got no luck. can anyone of you help me out with this ? ...
2
votes
4answers
1k views

jQuery wait until the page (with several webparts and Ajax controls) loaded

I have a page which has several web parts. In some of them, it has Ajax controls. now, I need to do this: after the page is fully loaded, I want to use jQuery to change some attr for some links (a ...
0
votes
0answers
18 views

How to reference and dynamically display documents based off of input on a form

I'm using Sharepoint 2013. I'd like users to be able to select a series of drop down boxes of categories and have a list of documents automatically filter based off those choices. I'd also like to ...
0
votes
0answers
50 views

Select2 in Sharepoint Application Page

Have a Sharepoint application Page where I use Select2 4.0 for Searchable Dropdown List. On my development PC everythink works fine but on any Client the CSS seems to be broken (Both use IE11). On ...
1
vote
0answers
86 views

Click promoted links tile to reveal another webpart

I have two sets of promoted link tiles. I've placed each set of tiles in their own webpart on a webpart page. What I would like to do is: 1. Hide the second set of tiles, and 2. Reveal the second ...
0
votes
1answer
47 views

Jquery code for color coding in sharepoint 2010

I need to do color coding to my sharepoint 2010 calendar. The color coding to be picked up from the lookup column "Event Type" where I have 5-6 values which are dropdown. Could any one please help to ...
0
votes
1answer
414 views

How can I make links in the left navigation open in a new tab?

I'm trying to make two links on the left navigation open up into a new tab as they are external sites. It should be as easy as adding target="_blank" to their HTML element but when I wrote some jQuery ...
3
votes
4answers
903 views

Adding JQuery and Bootstrap references to Master Page

I'm new to Sharepoint and I've a problem trying to add Jquery and Bootstrap references to a MasterPage. Just created a new master page (copied seatle.master to seatle2.master) and wanted to add: ...