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

learn more… | top users | synonyms

1
vote
1answer
444 views

How to add link to Title field when list data is fetched using REST API and rendered through Datatable.js

<table width="100%" cellpadding="0" cellspacing="0" border="0" class="display" id="example"> <thead> <tr> <th>Title</th> ...
1
vote
1answer
428 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 ...
1
vote
1answer
643 views

jQuery wait until the page (with several webparts and Ajax controls) loaded

I have a page which has several web parts. In some of them, it has Ajax controls. now, I need to do this: after the page is fully loaded, I want to use jQuery to change some attr for some links (a ...
1
vote
1answer
80 views

How to get value of multiple list filter webparts

Related to the previous post about accessing a List Filter Web Part value How to get value of List Filter web part in Javascript? How do I get access to the value of multiple list filter web part ...
1
vote
1answer
791 views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
1
vote
1answer
433 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
1
vote
1answer
135 views

Footer does fill the whole width. Scrolling in document library

I have a problem with the footer not extending to the right side when scrolling to the right. (In a document library with way to many columns). Meaning the footer have a blank spot in the right side ...
1
vote
1answer
515 views

Hiding Column on a List View with Grouping

I have a list that I need to dynamically hide columns on based on user. Sort of a rudimentary Column Level security type deal. This is being done through Javascript and JQuery to simply not display ...
1
vote
1answer
1k views

set multiselect lookup column using jquery

I have a Multi select Look up column which as you all know is a control with two list boxes and "Add or Remove" Buttons. The user populates the right-hand side of the control with some values by ...
0
votes
1answer
22 views

How to filter by document name using javascript and Json

I have two document libraries: bucket and Documents. The user uploads the file to the bucket and when all the field are filled, an event receiver checks if the filename already exists (and renames it) ...
0
votes
1answer
33 views

SPServices UpdateListItems not working

I created a list called testlist then I created a html within the same site with the following layout <table> <tr> <td><strong>List Item to be added</strong></td> ...
0
votes
1answer
12 views

SPServices SPDisplayRelatedInfo css

I have modified my newform.aspx to have the $().SPServices.SPDisplayRelatedInfo details of related information is also a lookup, when I choose the columName from the dropdown, it has a hyperlink. ...
0
votes
1answer
83 views

getEnumerator causing collection has not been initialized error inside of async call inside of a loop in a script editor web part

This is an issue I've been struggling with - What I am doing is using a script editor web part and when a user clicks the button, I check to see if a list exists inside of a loop (in this example, it ...
0
votes
1answer
13 views

change the order of fields in the forms of external lists

I have an external list and forms contain fields which are ordered alphabetically. I would like to customize the order of fields in all the forms. I thought of using jquery, but that is giving me some ...
0
votes
1answer
231 views

Sharepoint custom list: Hiding and showing column based on drop down dependancy

I'm trying to add javascript to the dispform.aspx page of my form to hide certain columns/fields based on a dropdown menu. When I add the code to the CEWP it simply adds text above the fields; the ...
0
votes
1answer
111 views

how to access input element in parent from inside iframe in sharepoint

I have the following jquery code and I have inserted it in an html page where I call it inside an iframe in a SharePoint page. I am using this line of code to get the id from the control in the parent ...
0
votes
1answer
19 views

How to Determine if One or More Fields in Custom Edit Form have Validation Errors

So I have a DVWP with an Edit Form. The form uses jQuery tabs to organize the fields for the different roles that edit the item. I would like to show a message at the top of the form if at least one ...
0
votes
1answer
50 views

How to load jquery using spBodyOnLoadFunctionNames.push function

I need to refer jquery in spBodyOnLoadFunctionNames.push function. I am doing it like below _spBodyOnLoadFunctionNames.push("Testfunction"); function Testfunction() { ...
0
votes
1answer
71 views

Accordion on sharepoint 2013 depending on User Permission

For my Quick Launch jquery Accordion, I used this link : http://sharingtothepoint.blogspot.ch/2013/10/how-to-make-accordion-menu-for-subsite.html Everything works fine because I'm the administrator of ...
0
votes
1answer
70 views

DispForm.aspx get value with :contains not working

I want to get a value from a field on the DispForm with jS / jQuery. I tried the following Code: var question = $('h3:contains("Frage")').closest('td').next('td').text(); However it doesn't work. ...
0
votes
1answer
109 views

Sharepoint 2010: Search list without a multiple filter, jQuery

I need to do a customized search for SharePoint. It needs to search in all the columns and rows of the list without having to select the column, in other words it cannot have filter. I cannot edit the ...
0
votes
1answer
53 views

How to extract data from the list and put it in the form using jquery

I want to extract data from the list and put it in the form using jquery! I succeeded to know how to import data from "Last Name" and "First Name" of the list into text fields "Last name" and "First ...
0
votes
1answer
76 views

Can't get HTML page to display

I have created an html page to display in the Page Viewer Webpart in SP which contains a bit of jQuery. For whatever reason, it will not render in an IE Browser - it just shows a blank white page if ...
0
votes
1answer
32 views

SP 2013 Form Customization

How can I change the checkboxes and radio buttons in a SharePoint list form to be horizontal rather than OOTB vertical to save space?
0
votes
1answer
328 views

Hover effect over an image in SharePoint 2010

I would like to add a kind of hover effect over an image. My source code in JavaScript looks like the following: _spBodyOnLoadFunctionNames.push("color"); function color(){ var $th = ...
0
votes
1answer
85 views

Why does v4.master suddenly strip out URLs?

I am working in SharePoint 2010, and using jquery to modify some display and edit forms throughout a site. To do so, I'm including a reference to the jquery library in the site's v4.master page so I ...
0
votes
1answer
129 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 ...
0
votes
1answer
468 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
27 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
1answer
118 views

windows.setTimeout() making my infopath form very slow

this is my code for InfoPath postback window.onload = function() { window.setTimeout(getData, 1000); } function getData(){ getEmployee(); getCompany(); window.setTimeout(getData, 1000); //To ...
0
votes
1answer
190 views

Remove Fly-out Menu from Quick Launch Bar

After hours of research I am not able to find a way to remove the fly-out menu from the quick launch bar without changing the master page. I tried by changing the Tree View settings, as well as quick ...
0
votes
1answer
100 views

Call jQuery and other scripts for the entire site collection

I want to be able to use jquery and other javascript files across my entire site collection. If I create a new site, it should already be calling jQuery. I don't want to have to worry about whether ...
0
votes
1answer
37 views

Best approach for a custom workflow

My team will soon be building a workflow for a list in SP2013. The OOB approval workflow provides most of the needed functionality, but we need the approval flow set dynamically based on names ...
0
votes
1answer
78 views

SharePoint List add comments as formatted text

I'm not sure if this is even possible but thought someone must have done something similar. What I'm looking for is the ability for a user to enter a "comment" and that comment populate another field ...
0
votes
1answer
946 views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
0
votes
1answer
241 views

jquery validation : save conflict error should popup when user tries to add similar data

When a user tries to add data for two fields which were already selected in the previous new item, it should not allow the user to save, validation error should be thrown.. Sharepoint should check ...
0
votes
1answer
539 views

Set value of choice field based on input from people picker

I have Choice Field which i use to filter items within a list. I'm trying to figure out a way to set value of this choice field within my edit form is there is a name in the people picker field. ...
0
votes
1answer
246 views

jquery is not working on panel hide on post back

Hi I have created sharepoint application page and i have a Dropdownlist(ddlTaskFrequency). On dropdown text changed(Monthly) i have written a jquery code to show panel2 and hide panel1. it is working ...
0
votes
1answer
251 views

Getting error “Object doesn't support property or method 'commitPopup'” when saving a new alert in SP 2010

In my SP 2010 environment, I have a html page, that has an iframe, and the iframe is the page where you create a new alert for a list. In the html page, I dynamically create the iframe and then insert ...
0
votes
1answer
120 views

How do i declare array for the lookup column using jquery

How do i declare array for the lookup column using jquery. I have a column whose values should be declared as array. so that my requirements get it complete. I need that ID for every values to get ...
0
votes
1answer
187 views

How to use REST with the search service?

I am currently using SP2010 and spservices to make SOAP requests for search. I am doing this client sided using javascript/jquery . But now I want to use REST and still on client side. This is my SOAP ...
0
votes
1answer
52 views

Designing a Sharepoint Workflow Distribution list filtered on column values

I'm working on putting together a Sharepoint site to report issues with a new software that is being implemented by my company. I already have a workflow that automatically sends an email to specific ...
0
votes
1answer
52 views

Load All Task Items in to Page?

I have Task list in home page containing multiple task items, Is it possible to approve multiple items at once, instead of one at a time (being redirected to the start page after each approval..) ?
0
votes
1answer
194 views

SharePoint; Javascript repeating click event already on page

I have a SharePoint calendar, and I've got some Javascript code to force a calendar overlay event to open in a modal dialog. Basically, it forces them to open in a modal dialog via this code: ...
0
votes
1answer
81 views

Catching query suggestions dropdown value

next to search box there is a dropdown containing query suggestions (everything, people, ...). How can I catch the value of this dropdown (it is div.s) in Javascript (jquery). Also I want to know ...
0
votes
1answer
128 views

Hiding “half” of the New button in the SharePoint ribbon

I built a calendar with multiple content types. What I'm basically trying to achieve here is to force a user to choose from those content types when creating a new item instead of defaulting to the ...
0
votes
1answer
181 views

Only View Document Library + should not be able to open document

I have a requirement for a set of users on the site to have permission level. When these users open the document library, they should see only metadata columns and title without the hyperlink or ECB ...
0
votes
1answer
158 views

Hide 'View Item' link in preview window in sharepoint asset library

I need to hide 'view Item' link in pop up (shown below) from preview window. I uploaded a video in asset library. As per requirement users should not download videos from library. How to hide or ...
0
votes
1answer
202 views

Object Expected error in Non Edit Mode only

I have an issue with Javascript errors (Object Expected) in normal mode while it works in Edit mode. Its failing on the last line shown below. $(document).ready(function() { updateListItem(); }); ...
0
votes
1answer
147 views

how to load custom menu last

I have a share point site i noticed the menu loads slow.its a customized menu based on a list and jquery.I load the script on my masterpages I would prefer this menu to load last after all the other ...