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

learn more… | top users | synonyms

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
114 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
174 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
41 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
251 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
29 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
74 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
90 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 ...
0
votes
0answers
36 views

Sharepoint 2013, loading jQuery into Custom Master Page for all web parts that use it

I'm VERY NEW to SharePoint 2013 and work with a programming team. We built a SharePoint 2013 Custom Master Page with a developer who is no longer with the company. We built it with XHTML and ...
0
votes
0answers
226 views

How to set default value of People Editor of SharePoint Controls using jquery only

I have value of Editor column which is People/Group type column in a variable. I have used SharePoint controls for setting that value. Controls are <SharePoint:PeopleEditor ID="people" ...
1
vote
0answers
311 views

uncaught typeerror cannot read property 'spservices' of undefined

I am getting this error uncaught typeerror cannot read property 'spservices' of undefined when I opened the editform,aspx from my SP 2010 list form. I got this error when I examined the F12-Dev Tools ...
0
votes
0answers
59 views

Issue with SPUtility and prototype.js files in editform.aspx

I am facing issues with SPUtility and prototype.js files in my editform.aspx in my SP 2010 list form.If i mention like below, my entire custom CSS was not working and because of these 2 js files,I ...
0
votes
1answer
68 views

How to show the first N characters of my Description field inside the list views? [duplicate]

I am working on a Team site inside SharePoint server 2013. And on the list views I am showing the Description field, which is of type enhanced rich text. Currently we are facing these problems:- If ...
0
votes
0answers
51 views

Lookup columns with JavaScript

I have two lists with one column that is a lookup column. How can i bind the two lists together with JavaScript or can i retrieve the data from both lists with the lookup column and JavaScript? Or ...
0
votes
0answers
17 views

Multiple tabbed list webparts

Trying to put two tabbed list webparts on the same WP page using Jquery. Using the header, 2 column, footer layout and want tabbed list 1 on left with second on the right. First snippet works, but ...
0
votes
1answer
163 views

jQuery Checkbox with UnChecked Event Handler in SharePoint 2010 List Form

I need to write a javascript/jquery code that make the checkbox if unchecked do not put a validation of a textbox and if checked the text box is validated for null or empty in my SP 2010 list form. I ...
1
vote
1answer
33 views

manipulate cells of a list with jquery

I am modifying the Allitems view of a list and want to select each row with a specific title and change the last cell of that row to show the thumbnail of an image with jquery. var results = ...
2
votes
1answer
269 views

Make a Choice Field-dropdown- as ReadOnly

Is there a way to change the EditForm in my SP 2010 site to display a dropdown column but as Read Only, so the user can not edit that column after the item has been created.I added the below code, ...
1
vote
1answer
77 views

SharePoint CSR using JQuery

Good day all, I have been trying to wrap my head around SharePoint CSR. I have been fairly successful with using javascript to modify the list view. However, I have been trying to use the following ...
3
votes
2answers
1k views

Blank page after adding JQuery

I am getting a white page after adding jquery to my master page: <!--MS:<SharePoint:ScriptLink language="javascript" name="/_catalogs/masterpage/mymp/js/jquery-1.11.0.min.js" ID="jquery" ...
0
votes
1answer
168 views

How to always open documents in a document library in a new tab for Sharpoint 2013 Foundation

How do i tell Sharepoint to always open documents(mostly .pdf and .docx/.doc)in a new tab when they are saved in a document library? This has been disgussed in another questinon before. I tired to ...
0
votes
1answer
40 views

Remove hyperlink for lookup field in SharePoint2013

Can any one give example to remove Hyper Link for lookup field in SharePoint 2013.
1
vote
1answer
87 views

sharepoint profile picture

Is there any possibility to change profile picture or uploading a new profile picture in SharePoint Online by using SharePoint hosted app, via JavaScript or jQuery? How do you solve it?
0
votes
0answers
28 views

Modify People Picker Located in IFRAME on WebPage

I am new to SharePoint and need some assistance. I have a webpage written in normal HTML and JavaScript with an IFRAME that contains a SharePoint page. When the webpage loads, it contains the user's ...
0
votes
0answers
29 views

Javascript search code really slow in external page only when loaded in SharePoint

A while ago my supervisor asked me to build a tool to display some information from our ERP system. The ERP system is not that great, and often it is easier to just hack together a CGI script to ...
0
votes
1answer
21 views

SP WebPart Jquery reference

Has anyone a reference to Jquery file in Visual web part to show. I need to se how it looks like. Mine looks lke this : <script src="c:\users\wss_setup\documents\visual studio ...
2
votes
3answers
2k views

Run JavaScript after “group by” in list has been clicked on and list data loaded

I have created a JavaScript function to take a url from a list item and turn it into an image. This function works great on a list that doesn't have group by setup. With this script the images will ...
3
votes
1answer
98 views

.find().filternode().each() v/s .find().each()

I came across a lot of articles and discussions by Marc D Anderson and Steve Workman regarding performance gains using .filternode(). I also read an article by Steve Workman I also tried to ...
0
votes
0answers
99 views

Programatically submit list quick search query in SharePoint online

I'm trying to enter a string into the quick search box in the list header and submit the search to filter the list. This image shows the search box I'm talking about: I'm using jQuery to select and ...
0
votes
3answers
787 views

Get the value from Textbox and dropdownlist in NewForm.aspx using jQuery and JavaScript

I am trying to retrieve the value of Textbox and dropdownlist in NewForm.aspx using jQuery and JavaScript when PreSaveaction is called. Below is my code: But both cases, I am not able to get values ...
1
vote
1answer
49 views

jQuery Blur function in Content Editor web part in SharePoint 2010 List form

Want to know how to use a jQuery blur function for my SPNumberField, single line of text etc fields.I do not have the ID of the field, also how to get the ID for using the same in jQuery function? ...
0
votes
1answer
281 views

How to set a value in a Choice Field based on the text box change SP 2010 in list newform.aspx

I am having few fields like single line of text, choice field, rich text on my customnewform.aspx of my SP 2010 SPList. Now if I enter a value say USA on the text box, I need to set the ...
0
votes
0answers
58 views

AutoLogonPolicy with XMLHttpRequest() or Ajax

I would like to open a website with XMLHttpRequest / Ajax to get data and paste it to a SharePoint list. The site requires login and I see that • it starts with the original url ...
1
vote
1answer
82 views

Get uploaded document id using JQuery

I need to get document ID of newly uploaded document using JQuery, any help highly be appreciated. I'm trying below code which is not working and gives error, 404 not found. function ...
0
votes
1answer
192 views

Expand Collapse a row in table [closed]

I have 3 rows in my table of which I need to have expand collapse functionality on 2 rows i.e. 1st and 3rd row. I was able to comeup with something on JSFiddle (https://jsfiddle.net/01u0k7o3/). ...
0
votes
1answer
249 views

Date Validation on PreSaveAction in SharePoint 2010 list newform.aspx

I need to validate few dates in my SP 2010 customnewform.aspx page. I added the content editor web part, added the script but not able to get the result. ReqstDate : Should not be greater than ...
0
votes
1answer
111 views

How to get captions to display in Galleria (for Sharepoint)

I'm using this solution to create image galleries in a SP 2013 Online site: http://www.getinthesky.com/2014/04/sharepoint-image-gallery-doesnt-suck/ The script uses the image alt/title tag to ...
2
votes
3answers
2k views

How can I generate new ID for new list item (NewForm.aspx)?

I wanted to add a new ID on NewForm.aspx unfortunately that can't be done because a new ID has not actually generated yet. However, I thought maybe there is a way, by getting the current list's last ...
0
votes
2answers
3k views

How to get Highest ID using CAML and JQuery

I am using a web service and am trying to return the highest ID number from the Posts list with viewname {B9212691-1AF1-41AF-9DA7-6073ADDB091B}. So far I have the following. <script ...
0
votes
2answers
4k views

SPServices: How would I add Ascending=False to CAML in GetListItems

How would I use SPServices GetListItems and still be able to add Ascending=False to the CAMLViewFields? I haven't used this for long and I am just wondering if this is possible? Thanks as always!
0
votes
1answer
242 views

How to create people picker using jquery [duplicate]

How to create people picker in sandbox solutions using jquery? I need design part also. Any idea?
0
votes
0answers
125 views

Validate checkboxes and textboxes in SP 2010 List NewForm.aspx on Save Click -PreSaveAction

I am having a new form created on my SP 2010 List, mycustomnewform.aspx and i have some 6 checkboxes and 6 textboxes.Now I need to validate these textboxes' value when a checkbox is checked. I ...
0
votes
1answer
1k views

XsltListViewWebPart - run some javascript after async refresh

I've got an xslstlistviewwebpart, and set in the AJAX options to refresh the webpart every 15 sec. Is there a way to hook up some javascript code after the webpart is refreshed? Larsi
0
votes
0answers
35 views

Get broken inheritance items via spServices (SharePoint 2010)

Is it possible to get all items of a list, where the inheritance is broken? There´s an additional property for items via CSOM (HasUniqueRoleAssignments), but my task is to write code which can fetch ...
0
votes
3answers
341 views

Problems while Accessing SharePoint List items in SharePoint 2013 using REST API in NAPA tool

I am trying to access the list item using an APP in my office 365 share point hosted trial environment.It seems like the call REST call is failing, the alert in error function is getting executed. ...
1
vote
1answer
873 views

SharePoint 2013 Rest API OData Query

I am calling rest uri from jQuery ajax with filter string comparison startswith as below ...
0
votes
1answer
851 views

Set value of peoplepicker using javascript

I have a newrequest.aspx page in a Sharepoint 2013 App with a form on it to get details from my users to submit a leave request,this is then submitted to a Sharepoint list to hold all of the requests ...
0
votes
2answers
440 views

Bind the DateTimeField field with Today's date using SPServices and jQuery

How to bind the DateTimeField field with today's date using SPServices and jQuery ? I cant use the default Today to set the column in the Sharepoint UI to use Today's Date as the default value in my ...
0
votes
1answer
202 views

Progress Bar on DropDown Selected Event

I have a dropdown list in my SharePoint Webpart and upon selection of a value from the dropdown list (selectindexchanged) I am showing a aspnet treeview. The issue I face is the TreeView control takes ...
0
votes
2answers
898 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 ...