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

learn more… | top users | synonyms

0
votes
0answers
56 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
131 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
357 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
65 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
121 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
80 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
177 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: https://[sharepoint]/_api/web/...
1
vote
0answers
22 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
36 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
121 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
61 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 http-...
4
votes
0answers
31 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
32 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
160 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
98 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
170 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 $('span:contains(...
1
vote
2answers
75 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
30 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
235 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.
4
votes
2answers
3k 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
196 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
122 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
170 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
528 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
128 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
108 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
85 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
122 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
166 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() { $('input[value=Cancel]').click(...
1
vote
1answer
775 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 ...
3
votes
3answers
848 views

Getting Value of Radio Button on SharePoint 2013 Edit Form using jQuery

EDIT: updated verbiage to reflect this is specifically a Radio Button choice field. The below script works when the choice is set to display in a drop down. I'd like to be able to do the equivalent ...
0
votes
1answer
37 views

Can we add client side validation to workflow initiation form (without infopath)?

We are using SP2013 standard so Infopath form service is not available. By using SharePoint Designer 2013, I copied and renamed the OOB workflow "Approval - SharePoint 2010" to build a new workflow. ...
0
votes
1answer
60 views

Jquery to get the url of a link [closed]

B0011 is a link on my page <a class="ms-listlink ms-draggable" onfocus="OnLink(this)" href="http://demo/sites/Dev/_layouts/15/listform.aspx?PageType=4&amp;ListId=%7BA4CF34F4%2D92E9%2D4456%...
0
votes
0answers
25 views

Removing automatically generated file links from SharePoint 2010

I am trying to prevent a page in SharePoint 2010 (specifically a list view page) from automatically generating links from UNC file paths that are entered in a field. This is entered into the field... ...
1
vote
1answer
212 views

Create a LookUp Column using SPServices “UpdateList” operation

I want to dynamically add a new list ("AddList" operation), and then use the SPServices "UpdateList" operation to add "newFields". I was able to get the "Text" fields to add properly, but the LookUp ...
0
votes
3answers
418 views

how to get sum of a column in sharepoint 2013 list

Not sure if i would get any answer from here. I have a column number and title text. The data would look like this: Title Paid ---------- Jacob 200 Patrick 100 Jacob 100 Patrick 300 What i ...
2
votes
1answer
1k views

Get a list Id using javascript?

I'm trying to trigger the NewForm.aspx of a list by clicking on a link. I would like to known how to get a list ID using JavaScript (Or jQuery)? (SP2010) I've already tried : var context = new SP....
1
vote
1answer
44 views

Function to run when drop down is clicked

I have a lookup field. I need to filter the values in that drop-down, so I thought of writing function when the drop down control is clicked. Something like. $("select[title='Subsystem']").click(...
1
vote
1answer
139 views

Why won't StratusForms Submit an Update

My project is running an update batch Command via SPServices and I am getting error 0x80020005 in return, but I can't seem to figure out what field or value is throwing the error, so I'm hoping ...
0
votes
1answer
49 views

Hide Ribbon Button on WebpartPage with two Parts

On my Webpart page there is a Content Editor and a ListView Webpart and the Content Editor is on top. I want to hide the "New" section in the ribbon that goes with the listview. The problem is that ...
0
votes
1answer
65 views

Item_CommonHoverPanel_Actions display template: Click event doesnt fire second time

I have added a custom action "Test Link" to item_CommonHoverPanel_Actions display template as shown in figure below: Every thing works fine if i hover over Test 1 and Click on "Test link". But if ...
0
votes
1answer
51 views

Can i query list items from another sharepoint instance with a different domain?

Our parent company shares the same network as us however we have a different SharePoint instance. We are trying to dynamically pull some content from their instance via JavaScript or some other method....
3
votes
1answer
70 views

How to edit the item name in Edit Control Block(ECB) using javascript in sharepoint

I want to edit the item name (Edit Item) to custom name (any) in Edit control block (ECB) of list using JavaScript or jQuery in SharePoint.
-1
votes
1answer
37 views

JQuery to Get the count [closed]

How could I get the count or length of all the option using jquery
1
vote
1answer
181 views

Validating if the check-box is checked

I am using JQuery for validating if the check-box is checked or not. If Column-A has some value in it, and the check-box should get checked while saving.(I can keep the code in presave function). Or ...
0
votes
1answer
116 views

Discover whether user is a member of an AD group via jquery [duplicate]

Using jquery and/or spservices, how can I know whether the current user is a member of an AD group? I have found this, but I think it only checks for membership in a Sharepoint group.
1
vote
2answers
112 views

jquery plain multiline text value with CRLF characters

I have a Plain Text multi-line value on my SP2013 list. Text is entered into the box with Line Feed characters. When I use the jquery command in an attached JS program var Falerts = $("input[id$='...
0
votes
1answer
53 views

Link a JS to a column in a list?

I have a list in SharePoint 2013, and currently I am trying to get the cell ID of the column in a list using the developer tools. I am having a problem finding it (My IE is not working and Firefox ...
0
votes
1answer
124 views

Edit Calculated Column Formula with jQuery or javascript REST JSOM

Is it possible to insert save a formula into a column within a list in list view using jQuery or JavaScript?