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

learn more… | top users | synonyms

4
votes
1answer
175 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 ...
2
votes
2answers
304 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
vote
3answers
714 views

Can't get People Picker value on 'Edit' form load

When opening a SharePoint EDIT form, I'm trying to capture a people picker value using JavaScript. Unfortunately, the people picker isn't loaded with data when I call .GetAllUserInfo. I'm using the ...
1
vote
2answers
80 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
1answer
35 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 ...
1
vote
1answer
102 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
192 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
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 ...
-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.
1
vote
1answer
129 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 ...
12
votes
3answers
26k views

Adding jQuery to master page

I am trying to customize a Sharepoint 2013 team site. I created a copy of seattle.master and set it as default master page via context menu. I added my custom CSS within head tages like so: <...
1
vote
3answers
1k views

jQuery EditForm redirect to DispForm

I want to redirect user after editing item and pressing save button to item DispForm. I currently have JS code: $( document ).ready(function() { $('input[value=Save]').click(function() { ...
2
votes
3answers
126 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 ...
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
44 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. ...
1
vote
1answer
75 views

Get exception messages from a custom SharePoint REST service

I am experiencing some difficulties in managing errors raised from a custom REST web service deployed to SharePoint ISAPI folder I developed. My service is pretty simple. I deployed an .svc file to ...
0
votes
1answer
237 views

SharePont 2013 Lightbox for Picture Library

Anyone who can help implement the lightbox plugin to a sharepoint picture library. Thanks in advance.
0
votes
3answers
1k 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. ...
3
votes
2answers
677 views

Select All check-boxes in choice field on document library form using jquery

I have a document library form on which there are two multiple choice fields as shown in below image. Now when user select the option "Select All" in "Vertical" field all check-boxes in "Vertical" ...
0
votes
2answers
214 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
664 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 ...
0
votes
1answer
90 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 ...
0
votes
3answers
943 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 = document....
0
votes
1answer
145 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 ...
1
vote
3answers
3k views

SPO - /_vti_bin/lists.asmx returns Error 500

I am currently developing a news scroller/ticker in SharePoint Online (Office 365) and am using the follow script to access a list: var emptyResults = "<li>No current announcements</li>";...
1
vote
5answers
6k views

Filter list data using SPServices, CAML Query, and dropdown list

I'm trying to create a table using SPServices to fetch the data, and filter it using CAML Query and a drop down list. I would like to create three conditions: A. If no item from the list is selected, ...
0
votes
2answers
515 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({ ...
4
votes
2answers
2k views

Disable drag and drop events in SharePoint calendars

Is it possible to disable drag and drop event in SharePoint calendar? I looked all available properties in SPCalendar control but I didn't find any. Rendered Javascript has a parameter in factory ...
0
votes
0answers
177 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
922 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 ...
0
votes
1answer
63 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
26 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
242 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 ...
2
votes
2answers
3k views

jQuery call all list items using REST

I'm trying to make a REST call to a SP list to retrieve all the list items, using jQuery from another website. Bit of background: The server is on prem, and the usage of this script will be on prem ...
0
votes
3answers
510 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 ...
5
votes
3answers
1k views

Adding a “next” Button to displayform.aspx

Is there a way of adding a button in the Dispform.aspx or the editform.aspx that will take you to the next item in the list?
2
votes
4answers
1k views

Displaying list with only unique values in title column

I have a requirement, an item should be added to a list, in the list web-part it should only display the title field value with unique values. In the list as shown above, it should display ...
1
vote
1answer
147 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 ...
2
votes
1answer
2k 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(...
0
votes
1answer
71 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 ...
3
votes
7answers
14k views

Wrap or add rows to promoted links

I'm pretty new to sp in general (I am the site admin) Can someone give me a step by step guide on how to make either make Promoted links wrap automatically or so that I can statically say how many ...
0
votes
1answer
52 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
54 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
75 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
vote
1answer
204 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 ...
-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
2answers
134 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
137 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.
0
votes
2answers
76 views

Calculating 2 weeks forward from a day, using a marker day

I am trying to code the date of the Thursday which falls two weeks after a given date. It is more complex then just adding 14 days to a given date. This is because if the first Wednesday after a ...