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

learn more… | top users | synonyms

0
votes
0answers
6 views

How to apply a Date Filter on a list with JS

I have a Date Filter webpart connected to a List on page. I am setting the default value of the list with JQuery (it sets that value to the next Wednesday). Here's a jfiddle showing how we are ...
0
votes
1answer
11 views

SP 2007 - Make picture library thumbnail unclickable

SP 2007 / Moss: I have a picture library where I want to show the thumbnail in the list view but make it unclickable. Right now when I click on it, it goes to the display form. When I go into the ...
1
vote
1answer
21 views

Rest api add to select append sharepoint list is undefined

If alert view then OK, but is add code select append, not working - undefined Here is code: function getListItemById(webUrl,listName, itemId, success, failure) { var url = webUrl + ...
1
vote
0answers
26 views

jQuery - Hide empty field in a list

I have the code that hides empty fields in a list and it works great, the problem is it also hides the edit field and icon which I would like to keep, what would I need to change in the code to stop ...
1
vote
0answers
18 views

Change image name before uploading it to SharePoint library using Javascript or Jquery(Not Drop Zone control)

I would like to change the name of the image before uploading it to SharePoint document library. Below is the code i have written when an image is uploaded using HTML upload control. When the image is ...
1
vote
0answers
22 views

SPServices - open “view item” modal

NOTE: I'm begginer in SharePoint! Ok so my situation is like that: I have a list of Users, with multiple fields. For example there are fields like: Name, Title, Office, Phone and Email. Pretty ...
1
vote
0answers
9 views

How can i add css reference to app parts which is rendered in iframe from the master page

I have been trying to apply the CSS to Office365 App parts, the reference of the CSS is included in the header section of master page(which must not be tenant specific). I tried several codes. One of ...
0
votes
1answer
12 views

Building a To-Do List with jQuery and Local Storage

Hi i am working on a project to do task list where every thing work fine but i am not able to store data in list in following link data is store in var data = ...
0
votes
0answers
16 views

Easy Tabs in SharePoint 2010 & preservation of easy tabs for SharePoint 2013

I am looking into ways to implement easy tabs for the display of a master glossary for my team. I have a code but I am not sure where to put it either in the content editor web part or in the general ...
0
votes
1answer
24 views

Disable text box for few seconds after success message

I'm trying to disable a textbox/and button for few seconds after the "Send button" has been clicked and then enable it again as well empty the textbox. But it doesn't work out. I have an onSuccess() ...
1
vote
0answers
13 views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
1
vote
1answer
13 views

Inconsistency in printing SharePoint list items using jQuery REST

I am retrieving data from my SharePoint site and printing it to a html table. The problem is that at times, when I print the data I fetched, my code fails to print all the data I expected. I have ...
1
vote
0answers
37 views

Formatted count by topic

I have been searching for days and I have been unable to figure out if my wish is possible. I have a large list that contains an inventory of active items being utilized, with each item having an ...
2
votes
0answers
29 views

Async wait till variable is set in the display template

I have a problem with excuting the script in the right order. I have a custom.js which is loaded at the top of the masterpage. The following function is included: var results; var followers; ...
1
vote
2answers
36 views

Populate a choice field when another choice field changes

I have two choice fields. When choice field A is equal to Commercial then choice field B should change to Staged. I've found this hide function and was trying to change it to fit my needs but I'm ...
0
votes
0answers
24 views

Hide Droplist with Jquery

I am working with Sharepoint 2010, i am trying to hide different fields according to role of the current user. My code only works with normal text fields, but it doesn't work with drop list, so i ...
1
vote
0answers
13 views

Create custom list in sharepoint with a list template using JQuery [duplicate]

I need to create a custom list in Sharepoint 2007 using JQuery (only!) using a custom list template. I'm using Sharepoint 2007. Is there any way to do it? I already know to create the list and update ...
0
votes
2answers
54 views

Is mQuery stable to use instead of using jquery in Sharepoint 2013 and higher?

In my SP2013 environment, I use jquery, but had the issue of the $ clashing with Sharepoint's own $. The original thread was here Does Sharepoint 2013 really have a jquery conflict with $? In there, ...
2
votes
2answers
148 views

Does Sharepoint 2013 really have a jquery conflict with $?

I have been working on SharePoint 2013 recently, and noticed that under variation sites, SharePoint 2013 has a java script file that defines a global variable called $ which overwrites the jquery $ ...
0
votes
0answers
20 views

SP services to filter list form web part

I have a project requirement where I need to filter the column value based on current logged in user. This needs to be done in Designer using either Javascript/Jquery or SP Services. NOTE: The ...
1
vote
0answers
38 views

Smooth scrolling with anchors on Sharepoint site

I have a SharePoint 2013 site which I am trying to include smooth scrolling using jQuery. There is a menu which becomes sticky after scrolling past, and each menu item should highlight as it goes ...
0
votes
1answer
55 views

Hide fields until a value in a radio button is selected

My requirement is that i have a radio button on a New Item form with the values of Yes/No. If No is selected, i need to be able to have 10 fields appear (single line of text) so that the end user can ...
3
votes
1answer
40 views

How to change webpart title background for only 1 webpart?

I have three webparts and each of these have titles. I want to change the background of a single title. I have the following webparts: I want to change title background for only this Title called ...
1
vote
1answer
38 views

Create custom list in SPServices

Is there a way to create a new custom list with SPServices? There are ways to create new list items, but I couldn't find a way to create a list.
3
votes
1answer
46 views

Create custom list in sharepoint 2007 using JQuery

I need to create a custom list in Sharepoint 2007 using JQuery (only!). I'm using Sharepoint 2007. Is there any way to do it?
3
votes
2answers
55 views

How to consume SP REST using only JavaScript\CSS\HTML5 (from CRM, outside Sharepoint, same AD)

How do I do to consume a REST DataSet using only something like JQuery? For example, if I have the items in a list\library and retrieve them as follows: ...
1
vote
0answers
19 views

How to make a page automatically redirect if a field item called “arch” is yes or checked?

Edit: Apologies that was a bit broad. The list item is named "Redacted" It is a checkbox ( true or false ). If it is toggled to be true then when the page is loaded or was clicked on the user is ...
0
votes
2answers
20 views

Setting colors to list items of a column in Moss 2007

My req: I have a column called status and I want to set the colors to the columns values based and not the entire row. So if status is 'approved' then set the approved value to color green..etc. I ...
0
votes
0answers
30 views

Access Sharepoint 2013 List from outside SP

Good morning, I wanted to be able to access items in a Sharepoint List from a stand-alone web page hosted on a different server. I've read through references to the REST API and I can see that I can ...
3
votes
1answer
48 views

Short Javascript script to detect if an item value with yes then redirect sharepoint page?

Is there a way to place a small JQuery/Javascript code to detect if an item list value is equal to yes and if so redirect the page using Content Editor Webpart? If "Status=no" Then <meta ...
3
votes
0answers
26 views

Sharepoint 2010 Advanced Search

This is the question related to the Advanced Search. The second Test Box value "The Exact Phrase is getting cleared", once I search the required Word Documents (like Alerts, and Result Type = Word ...
1
vote
1answer
21 views

How can I run SPService or RestService with contribute access?

Is there a way to run REST service or SPService in JQuery with Admin. privilege same like RunWithElevatedPrivilege. In DispForm.aspx there is a button. I want to add logged user who has read access ...
4
votes
1answer
79 views

REST API compare current user if exist in a custom list

I have a custom list with 37 user fields, I need to check if the current user is in one of those fields to display an alert. I'm getting the current user with this url: /_api/web/currentUser And ...
1
vote
1answer
66 views

executeQueryAsync don't behave as synchronously

I am creating different forms where I need same functions, so I created separate js file which I call on my each forms. In below code if alert currentUser from success method then I get the value but ...
4
votes
2answers
78 views

How to change WebPart appearance Title (WP Properties) using JSLink?

Is it possible to change the Title of the List View WebPart (Title property under Appearance) using JSLink i.e using overrideCtx properties? At present, I am modifying the Title using ...
1
vote
2answers
53 views

Disable Term Store Input Fields

I would like to disable input fields for managed metadata from the term store in a new item or edit item form on a custom list. How could I do this with javascript and jquery? Should work in Chrome ...
1
vote
0answers
17 views

SharePoint2013 Creating a visual Alert on the Tab of an updated RSS Feed when Multiple Web Parts are Tabbed

On my SP Page, I have 10 RSS feeds organized in Tabs via Javascript. When an RSS Feed is updated, I'd like to have some sort of visual alert for the user on the tab belonging to the RSS feed that has ...
2
votes
2answers
41 views

SharePoint 2013 - ScrollTop not working properly on second click

This is the weirdest thing. I have the following javascript code, which causes my page to scroll to a specific location on click... $('.whyattend').on('click', function (e) { e.preventDefault(); ...
-1
votes
1answer
28 views

Redirecting a Form to it's Original Position in Sharepoint Library [duplicate]

I have a Sharepoint Library which has Thousands of Forms. If i submit a form the pointer should point out that particular form which i have closed.
3
votes
2answers
208 views

SharePoint Online REST API - Get List selecting all fields excluding one

The below will get a list containing all fields $.ajax({ url: "http://<site url>/_api/web/lists/GetByTitle('ListTitle')/items?$select=*" ,type: "GET", dataType: "json", headers: ...
0
votes
1answer
45 views

SharePont 2013 Lightbox for Picture Library

Anyone who can help implement the lightbox plugin to a sharepoint picture library. Thanks in advance.
2
votes
3answers
93 views

Problem on loading JQuery mock up script on workflow form CstWrkflIP.aspx

I am trying to mock up the Workflow form (the URL is ~siteCollection/_layouts/15/CstWrkflIP.aspx?List={xxx}) with JQuery. I have included the script file within Master Page so that whenever the URL ...
0
votes
2answers
38 views

Set LookUp Value using Jquery in Default List Forms

I am trying to set Look Up Drop down using JavaScript/Jquery. I am able to set the value but while saving by default 1st option in drop down is Set. Thanks in Advance...!!!
3
votes
2answers
210 views

javascript to set value of a lookup field

I have 5 values in my lookup column. I need to select one and show it there by default. document.getElementById("IdofLookupField").value="Country"; But this is not working, this doesn't set the ...
3
votes
1answer
47 views

Security Error while doing REST update on the SP list

I am trying to make update with the usage of REST but I got an error: -2130575251, Microsoft.SharePoint.SPException. The security validation for this page is invalid and might be corrupted. ...
0
votes
1answer
46 views

Problem with retrieving Sharepoint list with js

I am trying to retrieve list from SP page but I got following error: Uncaught TypeError: Cannot read property 'apply' of undefined from MicrosoftAjax.js file. It seems that it's due to the ...
0
votes
1answer
59 views

Populating lookup field

I have applied cascading between two columns for ex: Country column and Capital column. Now for every country in first column we have one capital in second column. If I select India then I have two ...
1
vote
1answer
61 views

Invalid ViewState when Filling PeoplePicker using jQuery

On my NewForm.aspx or EditForm.aspx pages I am using jQuery to fill in a peoplepicker control. The problem is that this causes the page to POST this error: "This Page has been modified since you ...
0
votes
0answers
62 views

Jquery to redirect to different page for save button

While adding a new item to a list, my JQuery code to redirect works for cancel button but does not work for save button. For Cancel $(document).ready(function() { ...
1
vote
1answer
102 views

Uncaught ReferenceError: SP is not defined

I am trying to implement to Sharepoint simple function from MSDN which I've placed in aspx file but I got this error in js web browser console: Uncaught ReferenceError: SP is not defined. Any ideas ...