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

learn more… | top users | synonyms

1
vote
2answers
68 views

How to run the JS with on() function with Javascript

In the Calendar with Add button, after the JS Calendar starts completely, the HTML below appears and I would like to run my JS with AsynchronousViewDefault_CalendarView attribute. However, it doesn't ...
1
vote
3answers
275 views

How to replace all href elements when mouseovers with Javascript

In the Calendar with Add button, I would like to replace all href="javascript:void(0)" to href="http://google.com" when mouseover the image caladd.gif with Javascript and jQuery. Summary: That means ...
0
votes
1answer
196 views

Jquery is not working if page is opend in popup

We have one page that has a "jQuery" document.ready script function. It is working fine if we were to browse it in a new tab. But when we try the same page in a Popup the script does not work ...
1
vote
0answers
28 views

How to query “Followed Count” for each user?

I found follow this REST API: http://msdn.microsoft.com/en-us/library/dn194080.aspx#bk_FollowedCount By using My/followedcount, I can get current user's count of items he or she currently following. ...
0
votes
0answers
90 views

sharepoint list manage multiline text column width in Chrome

I have a SharePoint list that consists of single line text fields and multiline text files (plain text). In the list view, I tried to use following jQuery codes to manipulate the width and other ...
0
votes
1answer
70 views

Attachment option customization in data form webpart

We have requirement that Implement attachment control same (Like InfoPath form screen shot) as it is in the default form of new item. Please let me know if any one have solution / workaround. 1) ...
1
vote
1answer
2k views

Creating dynamic accordion from a custom list using jQuery and jQuery UI in SharePoint not displaying as should

I am trying to dynamically build accordion from list of items returned using JavaScript, jQuery and jQuery UI. Below is my code: <div> Search List <input type="text" ...
1
vote
0answers
95 views

Force PDF to open in new window/tab

I am using SharePoint Foundation 2010 and attempting to have my PDFs open in a new tab or window. I have been able to get this to work from document libraries by using jQuery. You can see this code ...
0
votes
3answers
263 views

Toggle div with jQuery in Display Template

I am building a display template in sp2013. I have a control template and a item template. In the item template I have some mapped properties. I show a list with titles. When you click on the title ...
0
votes
1answer
70 views

DatePicker in Sharepoint Search Refiner

I am trying to create a custom refiner that uses a begin and end date to filter my search results. The problem is that i want the users to select those dates using a datepicker. The problem i am ...
1
vote
1answer
241 views

Customize InfoPath Form select element

I have an InfoPath form used for ordering inventory from our warehouse. There are drop-down lists with the roughly 180 inventory items available for request. I would like to make hybrid drop-down ...
2
votes
1answer
72 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?
0
votes
0answers
93 views

Use jQuery to make a “column” on the default view?

I am trying to append a value to the end of each row by selecting the number value in one column to do some sort of math with it and output the value on the other one. This code works for me on one ...
1
vote
1answer
960 views

Using REST call to retrieve SharePoint list items as an array of JSON objects

I found this great tutorial to use REST calls to retrieve SharePoint list items as an array of JSON objects posted by Mark.Rackley (Mark Rackley.). It is working, but I would like to add a new ...
0
votes
1answer
150 views

Loop though subsites and get all Property Bags - jQuery deferred issue

I'm trying to loop through all subsites under a site collection, get a Property Bag per site and push all the gathered results into an array. I'm having trouble checking if all the jQuery promises ...
1
vote
1answer
72 views

Why is JQuery saving my field as blank when I set the field to disabled

I have a sharepoint that I need to disable two of the fields on the Edit form. Here is the code I am using: $("input[title='Issue ID']").attr("disabled", true); $("input[title='Issue ...
0
votes
1answer
237 views

SPServices SPGetLastItem returns last id for current user

The function SPGetLastItem from SPServices returns last id for items that only the current user has created. I want a function that returns the last id for any user.
0
votes
1answer
100 views

Javascript/jQuery - check language and replace word problem

I need to replace one word in my SharePoint site, depend in on that what language is used. I found this question: Get the current UI language with ECMAScript I tried to use that code and it works ...
1
vote
0answers
57 views

content editor script isn't working on list view page

This is very strange. I have a script attached to a content editor that spruces up the status column of a particular list. However , I'm trying to achieve the same thing with that particular List's ...
0
votes
0answers
17 views

Sharepoint online + Crm online integration

I need to create one solution for SharePoint online which get data from crm online. Questions : How to authenticate to crm online from SharePoint online. How get data from crm online to SharePoint ...
1
vote
2answers
81 views

Your query is malformed with a date in where clause

I'm trying to query SharePoint using jQuery and SPServices. When I run the code below, I get the error Your query is malformed. Please rephrase your query. var searchq = ...
0
votes
1answer
92 views

How to create a SharePoint Content Type with multiple New Forms?

I am working in SharePoint 2013. I am trying to create a content Type with multiple New Forms. If some users click the New Item link they have to see one form and for others if they click the link ...
2
votes
2answers
99 views

JavaScript error while added jquery library to standard teamsite

I have a standard SharePoint 2013 Teamsite template with "seattle" masterpage and added jquery in the head of the seattle.html to solve some branding issues(screen 1). The problem is that I always get ...
0
votes
0answers
57 views

Cannot hide Document Set Contents Web Part rows with JQUERY/Javascript on the Welcome Page

It seems there is MS code behind the page that keeps "showing" anything I try to .hide in the document set web part on the Welcome Page of a document set. All other web parts on the Welcome Page ...
1
vote
1answer
299 views

Set value of people picker client side

I'm using SharePoint 2013 people picker client side, how can I set a default user using jQuery?
0
votes
2answers
367 views

Sharepoint 2013 Rest API _api/Web/SiteUserInfoList filter Name

I have some trouble to use the Sharepoint2013 Rest API _api/Web/SiteUserInfoList. I need to use a $filter on the Name. I get always a 400 Bad Request. This is my endopoint rest ...
0
votes
1answer
264 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. ...
1
vote
2answers
59 views

Best way to implement “.exists”-type functionality to prevent duplicates?

I'm moving files with spservices (the jquery plugin) and was wondering if there was a good way to check to see if a file with the same name already exists so I can append an underscore or something ...
0
votes
3answers
562 views

Use CAML query based on ID to retrieve a file name?

With jquery and spservices, I use getSelectedItems to retrieve the IDs of a few documents. Can I have a loop which goes through a caml query for each of those IDs to retrieve the file name ...
1
vote
1answer
357 views

Updating Choice Person/Group columns using listData.svc in SharePoint 2010

I am trying to use JQuery and the listData.svc to update a list that has a choice column. I am using Postman to generate my http requests, can someone please show me examples of how to update choice ...
0
votes
0answers
36 views

finding individual list items and updating css

window.SFW = window.SFW || {}; window.SFW.urgentAlertsItem = { customItemHtml: function (ctx) { var urgentAlertsItemHtml = "<div class='urgent'><h2 class='name'>" + ...
0
votes
1answer
25 views

List description displayed in webpart

Is it possible to display the description of a library in SharePoint? For example, I have a list of links that are specific. I'm designing a webpart that displays the links, but I want the ...
0
votes
0answers
18 views

export a column to bibtex.bib with jquery

Is it possible to create a link or button with jquery inside my content type(for example in the welcome page of the content type) that export the content of a column of this content type to a .bib ...
0
votes
0answers
71 views

Find a webpart with certain title on a page and hide it during print

I am trying to find a way to use jQuery and css to hide webparts that has edit buttons displayed. I have added seperate wepart just to display the edit button. I can hide the pages if I create script ...
1
vote
3answers
84 views

Integrating jQuery into the solution

I have a javascript file which I am editing the layout of a list with. Here is the code: window.SFW = window.SFW || {}; window.SFW.urgentAlertsItem = { customItemHtml: function (ctx) { var ...
0
votes
1answer
147 views

How can I set/select a field in the display form?

I'm in a SharePoint Display form and want to do some calculations on the client's side to populate a blank single line of text field. In an edit form, to set and select my value I have something ...
0
votes
1answer
174 views

Proper way to check for failed SPServices call?

I'm running a SharePoint method with SPServices that should copy several items. I just noticed that the return value is "Success" even when I've specified an invalid location and nothing has actually ...
0
votes
1answer
72 views

two drop-down side by side

I want to show two drop-downs for Day and Month in SharePoint OOTB form in one row (side by side).
0
votes
1answer
30 views

Hiding Hour / Minute Options for Time/Date Column in forms

SharePoint 2007 environment. If I wanted to limited the options in the hour column (10 - 17 hrs) and time intervals in the mins slot (30 mins only), what's the best way to achieve this. I'm thinking ...
0
votes
0answers
36 views

How can I on list datasheetview, disable with jquery combobox-dropdown if one of the option is selected?

What I want to get after all, when user will chose the one of the option from Approval , in ListDatasheetView combobox of approval field should be disable and when the Approval status will become ...
1
vote
1answer
99 views

Dynamic Left Navigation bar

I need to showcase dynamically newly added list items in the left navigation bar. I have a master list. Please tell me the solution using jquery or server object model In sharepoint 2013, site ...
3
votes
1answer
413 views

Get ID of item in ListView Web Part

How can I get the ID of an item in a ListView Web Part, on hover? I need this ID to fetch some columns from the list, and show them in a tooltip box. Can I get the whole thing done using ...
2
votes
2answers
93 views

In jquery rest result for person object as a [object Object]

Would it be possible to get a Person or Group type as a string rather than and [object Object], I am handling everything within the front-end with REST calls to listdata.svc URL's. CODE // DISPLAY ...
2
votes
2answers
166 views

Format part of the column value in a ListView Web Part

I have a list containing a few items, some of which are marked as compliant. So I have a column for marking it as compliant, and another calculated column, where I have the calculated value as Title ...
2
votes
1answer
306 views

Open one page after another in a modal dialog

My client wants me to create a modal dialog that acts like a popup window. Can this be done? Here's the issue: The visitor is editing some basic database data via a form in the original browser ...
2
votes
0answers
78 views

Check whether user belongs to sharepoint group, which consists of distribution list as members

I have a distribution list, which is added to a SharePoint group. I need to determine whether the logged in user(Who is part of the distribution list) is part of the SharePoint group. this needs to be ...
0
votes
0answers
75 views

Cannot Hide results from document library using JQuery Dropdown/HoverOver/MouseOver

I have a jquery dropdown menu for when a user hovers a link to display results dynamically from a SharePoint Document Library. It's working ... Problem is its not hiding the results and is displaying ...
1
vote
2answers
82 views

If I have several items' IDs, how can I use that to retrieve a specific field value?

I have used (in a for loop): var itm = mylist.getItemById(id); I tried using context.executeQueryAsync , but I read that I can't use this to store or return global variables. The only examples I ...
4
votes
1answer
68 views

How can I provide option 'Select' in dropdown and lookup column of Sharepoint

I have a mandatory drop down column, I want a select option as the standard drop down I have a non-mandatory lookup column , which contains (None) as default value , How can that be changed to Select ...
1
vote
1answer
119 views

how to display two fields (and their labels) in the same row? Sharepoint

I have two fields in out of the box sharepoint list form , both are single line of text Is there any jquery way in which I can merge the two columns into one row I am a newbie to coding. So I do not ...