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

learn more… | top users | synonyms

2
votes
1answer
185 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 ...
1
vote
1answer
42 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. ...
0
votes
1answer
28 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 ...
2
votes
7answers
10k 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
24 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
31 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 ...
5
votes
2answers
154 views

Hide options from ECB Menu in SharePoint 2013 Library

I have added a document in a document library. I am trying to hide an option from ECB Menu How do you hide any options from ECB Menu? Update: Each item has a column "x" with different values. So, ...
2
votes
1answer
33 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
61 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
35 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 = ...
0
votes
1answer
47 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
68 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 ...
1
vote
0answers
77 views

Can you connect Active Directory to SharePoint via JavaScript/ SPServices/ or SOAP?

I am trying to connect a AD to a SharePoint 2013 list form so that the SharePoint form is filled in automatically with data from the Active Directory (i.e. contact information). Is this possible? I ...
0
votes
1answer
47 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 ...
2
votes
2answers
1k views

Can we trigger a SP2013 WorkFlow using REST API + Jquery?

Can anyone suggest whether there is any possibility how to trigger a SP2013 WorkFlow using REST API & Jquery ?
0
votes
1answer
50 views

How to reference SharePoint list in external website?

I have an external website that is pretty much a form that interfaces with another enterprise software. One of the requirements of the fields in the form is to provide a location. We have the list of ...
0
votes
1answer
42 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?
0
votes
0answers
19 views

Re-direct New Form submission in SP 2013

I am trying to redirect a 'NewForm' submission to another page (not the default list view which is normal behavior). Code like what I've pasted below has worked in the past in SharePoint 2010. It is ...
0
votes
2answers
67 views

Looking for count down clock in CEWP using html/jquery [duplicate]

I am looking to insert a count down clock in content editor web part using html / jQuery. Did any one ever do this? I am unable to figure out how to start as am not a pro in scripting.
0
votes
0answers
18 views

consuming html content of external web application into sharepoint masterpage

I could consume the content (html and css) of an asp.net application from another application with the following Jquery code(I used CORS) : $("#success").load("http://localhost:50710/ .round", ...
2
votes
2answers
62 views

JQuery function not calling

I have got the below code to get the ID's of all selected items of a list. This code worked for me when I used it for other list but now when I am using for another list, this code is not getting the ...
1
vote
3answers
120 views

Removing Duplicate values from a Lookup field

I have a lookup field in the list and it is has duplicate values. I found the below code and tried to use it. <script type="text/javascript" ...
0
votes
0answers
20 views

Changes to input field with JavaScript will not save after form submit - Infopath Browser Enabled Form (SP2010)

I'm running a script to loop through some elements and tally all input fields that = "No". I then use either of the following two lines of code to successfully change the input field, however, after ...
1
vote
2answers
163 views

Uncaught TypeError: Cannot read property 'SPCascadeDropdowns' of undefined

I am trying to implement cascading so I have loaded two files. <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript" ...
0
votes
0answers
28 views

SharePoint 2013 - Move Sum to Bottom

I have a list view webpart and have enable a total to be calculated on one of the columns. However, the issue is that the sum is placed at the top and not the bottom. How do I get it to the bottom? I ...
0
votes
2answers
485 views

Conditionally hiding/showing fields on a custom newform using jquery

This is something I have been struggling with for some time now. I have looked all over the internet at different forums and blogs trying to find a solution and I have finally gotten ALMOST there. I ...
1
vote
0answers
37 views

Javascript or jquery Gantt chart [closed]

I need to create a Gantt chart using javascript or jquery. Could any one please let me know how to achieve this? Title is represented by X-axis and Y-axis represents Start date and end date.
0
votes
0answers
79 views

SPServices - GetListItems for Pages library in site and all subsites

I am using SPServices GetListItems method to gather information about ows_Title and ows_EncodedAbsUrl to create a menu. Everything is running OK in case of small amount of lists. I can specify several ...
0
votes
0answers
26 views

Connect to sharepoint web service with javascript

http://appsrv/pfa/_api/ProjectData/Projects?$select=ProjectName,ProjectStartDate,ProjectPercentCompleted This is the link that after you enter username and password return XML data, I need to access ...
1
vote
1answer
31 views

Retrieving Constants from Server Side using Javascript

Is there a way to retrieve a constant from a Constants.cs file by using javascript? I can retrieve the my constant in my ascx page using Constants.Lists.DisplayName.MyList. I was wondering if I can ...
1
vote
2answers
600 views

jQuery: what version do I have tu use in Sharepoint 2013?

I have a full responsive site in SP 2013 with several webparts developed by a very huge developer group. We have centralized custom script links and JavaScript APIs (and/or frameworks) in two ...
1
vote
5answers
247 views

How to get People Picker ID using Javascript

Hi is there any way to get the People Picker value using Jquery / JavaScript? Currently we use title tag to get the id of our input fields values but people picker has only one generic title field ...
0
votes
1answer
64 views

How to merge mulitple list in single view?

We are using SP2013 on-premise Standard edition. So content search web part is not avaiable. In a site collection there are 100+ subsites. Each subsite have a list with custom content type X. We need ...
3
votes
2answers
93 views

SharePoint List using jQuery

I have jQuery static code that works well. Code: <!-- CSS --> <style type="text/css" media="screen"> #slider1 { width: 720px; /* important to be same as image ...
0
votes
0answers
77 views

Javascript to add an “Add new Item” to Lookup fields on an Edit Form is not working in Chrome and Mozilla

The below javascript which creates a link next to a lookup field on a list NewForm or EditForm. It is working fine in IE and when lookup has more than 20 + values it is not working in Chrome as the ...
1
vote
1answer
99 views

SPUser field is returning only ID in REST

I have my multi-value SPUser field in my list. When accessing it via REST, I am only able to retrieve the ID of the SPUsers. In the result of the REST, the SPUser field was also appended by an Id in ...
0
votes
0answers
52 views

Send Email using jQuery

I am using jQuery Email template to send mail. But when I try appending image, it is unable to send the image. Please let me know how can I embed image while sending mail using jQuery API.
1
vote
0answers
37 views

Get the Checkbox checked status on submit button click in SP 2010 list form

Am using checkbox multichoice field in my newform.aspx and in presaveaction call am doing the below code: function PreSaveAction() { var dt3; var dt4; ...
0
votes
1answer
82 views

Create list item by restful

Code: function createListItem() { var item = { "__metadata": { "type": "SP.Data.listnameListItem" }, "Title": "testsetsetset", ...
0
votes
1answer
33 views

is it wrong to use “min-Width:105%” & “max-Width:105%” to expand my list views on small sized screens

I'm working on a Team site inside SharePoint 2013, and I've defined many issue tracking lists. and for all these lists I'm showing the Description field (which is of type Enhanced Rich Text) inside ...
0
votes
1answer
79 views

Validating DatetimeFields in SharePoint 2010 List Form PreSaveAction Call

I want to perform a validation for today's date and user entered date in my custom list form's multiple datetime fields ReqstRecvdDate Field DueByDate field ReqstRecvdDate can not be greater ...
3
votes
2answers
2k views

How to modify the sharepoint 2010 NewItem2 function?

In sharepoint 2010, I want to add javascript to the alerts popup window page, but I don't want to modify the actual layouts file. I want to dynamically insert javascript in it. Basically the button to ...
0
votes
1answer
76 views

Create Tabs for SharePoint 2010 ListForms - newform and editform

I have one SP 2010 List having 77 columns and created the customnewform.aspx and editform.aspx using SP Designer.But its not user friendly,as user has to scroll down every time for reaching the 70+ ...
0
votes
1answer
110 views

Clear multi-value lookup via Jquery SP 2013

I am trying to clear a multi value lookup field using javascript when an item is re-edited. I have tried all the following combinations without success $("input[id^='Test'").removeAttr(); ...
0
votes
1answer
35 views

using Jquery in a Async functions

Hi I want to update/create a datatable from results of a function. I have the following code and I now need to output the results into a datatable. At the top of the page I have : <script ...
1
vote
1answer
162 views

Read xml in infopath using javascript

I want to read xml inside the infopath form. I am saving all infopath forms after submitting into a form library. Now I want to read the xml inside that. I am doing like following, $(function(){ ...
0
votes
0answers
26 views

sharepoint user profie picture

I have created an app part that collects the current user profile picture function GetCurrentUser() { $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + ...
1
vote
1answer
37 views

Iterate through each checkboxes within SPFieldMultiChoice field in SP 2010 List newform.aspx and Validate

I need to iterate through the all the check boxes within my SPFieldMultiChoice and check whether at least any one of the checkboxes are checked and if not checked, I need to return false. I have this ...
0
votes
0answers
51 views

jQuery,PreSaveAction does not fire when multiple references of .js files in SP 2010 List EditForm

In my SP 2010 List Form's editform.aspx file I have added 2 Content Editor Web Parts from which one of them - DisableFldsCEWebPart - has jQuery and SPServices.js file references and with the help from ...