Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
906 views

Filtering list view based on querystring using jQuery?

Using Sharepoint 2010 Content Editor Web Parts (some links dynamically created) List View Web Part Ability to add additional software or packages to the system extremely limited (so would prefer ...
0
votes
1answer
751 views

Javascript injection in office 365 site.

I am doing a js injection using custom action. I am loading jquery first and then my custom js. I have applied sequence in custom action 0 for jquery and 100 fro my custom javascript. My problem is ...
0
votes
1answer
628 views

Check user membership of current user in security group using javascript

I am working on SharePoint 2016 on-premises environment. I need to implement the some functionality based on the result whether the currently logged-in user is a part of a security group or not using ...
1
vote
1answer
13 views

People Search and User Profiles SP 2016

Tell me why this code does not work in SharePoint server 2016 on-premises, but is working 2013? Possible problem in another sourceId("B09A7990-05EA-4AF9-81EF-EDFAB16C4E31")??? <script src="//ajax....
0
votes
1answer
49 views

Hide web-parts using JQuery in SharePoint Online

I have a page with multiple web-parts. I have four buttons in a web-part: <div id="buttons"> <div class="gmcButton" id="About GMC">About GMC</div> <div class="gmcButton" ...
1
vote
1answer
761 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 ...
0
votes
2answers
616 views

Using SP Services to get data, Need only top 5

So, as the title suggests, i'm using SP Services to get data from the "Comments" List. I can retrieve the data fine but i'm trying to limit what is returned to only the top (Let's say 5) comments by ...
2
votes
1answer
2k views

Fetch the document name from Document Library using Document ID

I have a Document Library with multiple documents. One can select multiple documents even all the documents at a time. I need to fetch the documents name which are selected in Javascript using JQuery &...
1
vote
1answer
1k views

Unable to get SPField named 'FieldName'

I keep getting an error every time I am trying to insert some jquery/sputility code to get a SharePoint form field to be hidden if certain conditions are met. The error is "Unable to get SPField named ...
0
votes
1answer
941 views

editform jquery value returns undefined

I've added the following code into a CEWP part at the top of the Editform.aspx page (using SharePoint 2013) <html> <script src="https://oursites/jquery-1.11.3.js" type="text/javascript">&...
0
votes
1answer
764 views

Adding Item to SharePoint list using Jquery

I am trying to create a button on SharePoint online classic page which will submit to a list. From there a flow will run. Just a question I have found an example how this can execute. A few ...
1
vote
0answers
17 views

Jquery keeps getting called after enter the page [closed]

I'm using a jQuery with a OnClick event to show 3 dropdown menus. The problem is, when I go to another page and come back, the jQuery gets called twice, and stays called until I reload. This means ...
1
vote
1answer
859 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
2answers
41 views

How to get multi-line Text value - JQuery

How to get and set get multi-line Text value using jquery. I have tried following code to get my Description field value. But it's not working. $("input[Title='Description Required Field']").val()
2
votes
1answer
954 views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
0
votes
0answers
21 views

ctx.ListData.Row not behaving as expected in SharePoint 2016

I will first start out with saying that this solution was originally implemented as CSR/JSLink, but then a requirement came that all the functionality had to work in any personal views the users might ...
3
votes
4answers
2k views

HillbillyTabs 3.0 in SharePoint 2013 Select Box Bug

I've got Hillbilly Tabs working great in my on-prem 2013 environment. The only issue I'm running into is with selecting items or documents in the web parts when they are inside tabs. This seems to be ...
0
votes
2answers
1k views

jQuery.addClass working in Chrome but not IE11

I'm working with a "new item" form for a SharePoint survey. In Chrome, the following code shows an alertbox and then makes every other row darker. In IE 11, the following code shows an alertbox but ...
1
vote
3answers
983 views

How to Add a tooltip in Radio Buttons when checked in newForm.aspx page

I have custom list with a field type of radio buttons with 4 choices. I want to be able to show a box on right hand side when each radio button is checked .How do i do that? So far i was able to ...
3
votes
2answers
1k views

How to restrict the number of lines to show using jquery or css?

i have created simple Custom webpart. It looks like in that web part, Description display multiple line . i have used html P tag to display Description value <p>​Loream Ipsum​Loream Ipsum​...
0
votes
1answer
919 views

Reset sharepoint lookup with None option using jquery

How to reset the lookup value to None in Editform.aspx page using Jquery. I want to empty the lookup dropdown if text box does not have any value . Here is the code which i have tried.I was able to ...
0
votes
1answer
964 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 ...
1
vote
1answer
18 views

Rest API to get different data

I have the following code to get values of a column. function GetKPIS(EstruturaKPI){ jQuery.ajax({ url: "SITE/_api/web/lists/GetByTitle('KPI')/items?$filter=Title eq '" + EstruturaKPI + "'", ...
0
votes
1answer
1k views

Hide and display things if user member of group

i have group, were i have some users, if the current logged in user is a member of my group then display that, if the user is not a member of the group then dont display. Right now it first says the ...
0
votes
1answer
1k views

Group by field using jQuery

Say I didn't want to use the Group By option in an out of the box view to group my list by a certain field. Is there a way to achieve this using jQuery, JavaScript or something other front-end code?
1
vote
1answer
642 views

JQuery Hover not Working in SharePoint 2013 Calendar list

I used following URL for loading all resources item in SharePoint 2013 Calendar List and Its working fine as per my expectation. http://blogs.technet.com/b/meamcs/archive/2013/04/10/sharepoint-group-...
1
vote
1answer
719 views

How to adjust Textbox in New Form Item using JavaScript/JQuery

I'm new with SharePoint 2013 Development and I'm really enjoying it. But I did encounter a bump with creating new forms ins SharePoint Designer. I have a simple custom list and I need to have fields ...
10
votes
3answers
2k views

Bootstrap in HTML Web Part

I got HTML/CSS from our Designer to implement on a Sharepoint 2010 page. This page is using bootstrap. I implemented it with HTML Web Part and also tried to split the web page layout and work ...
0
votes
0answers
12 views

Send emails with voting buttons from SharePoint jQuery

I am sending email from SharePoint using rest api jQuery, I want to send voting button or meeting invitation using rest api jQuery. Is there any way to achieve this?
0
votes
1answer
53 views

Export Excel data to exisitng sharepoint list using jquery [duplicate]

can we build a solution in jquery where we can export excel data to existing sharepoint list number of column in excel will be 56 or more with 5000 rows , i have to use on JSOM
2
votes
2answers
641 views

Content Query Webpart (CQWP) Pagination in SPO

I am trying to paginate a CQWP results set but I am struggling with XSLT. Is there an easy way to do it? Should I work directly on the ItemStyle.xsl? Should I use jQuery instead? I can't believe ...
0
votes
2answers
1k views

How to copy data from one column to another in sharepoint 2010 using jquery

I need jquery code which can copy the data from one column(look up column) and populate into other column (single text line) in the same list in sharepoint 2010.
0
votes
1answer
23 views

Collapse all grouped sublists by default in Sharepoint using jQuery

I'm trying to edit script editor webpart in Sharepoint 2013 online (chrome removed) so that all grouped sublists would be collapsed by default. It's already set to collapsed by default in document ...
4
votes
1answer
2k views

Cannot find module 'jquery'

I am using this tutorial to try to load jquery into my SPF project. http://dev.office.com/sharepoint/docs/spfx/web-parts/basics/add-an-external-library I followed strictly tsd install jquery --save ...
1
vote
1answer
1k views

disable people picker 2010

I am using following "code" to disable people picker in custom edit form: $("div[id$='_UserField_upLevelDiv']").attr("contentEditable",false);//Disabling People picker $("span[id$='_UserField']")....
0
votes
0answers
30 views

I was given a XML web part that uses SharePoint Services. I need to convert it into an ajax/JSON webpart

I was given an old webpart using SP services and XML. I was requested to use Ajax. This is the first time I do this kind of conversion and I am not sure if I am doing it correctly. When I open the ...
0
votes
1answer
1k views

Set value to ClientPeoplePicker

I need to set value into a ClientPeoplePicker, my list save the user as a SPUserField, I already get the id from the list. Thanks and greetings
0
votes
0answers
22 views

EDGE processing of Multiline Rich Text URLs in JQuery

I am having difficulties setting up URL values within a list Multiline Rich Text field. The code I am using is as follows: ThisList = "TK0001 TK0002 TK0003 TK0004" TaskArray = ThisList....
0
votes
1answer
40 views

Jquery change event on miltiline text field (plain text)

I have tried to set up an onchange event to be triggered on a Multiline (Plain) Text field. I have tried all the following without luck. $("textarea[Title='Identified Tasks']").closest("span").find("...
0
votes
1answer
1k views

Change Excel web access dynamically using javascript

I have a page with a button and an Excel web part. When I click on the button I want to load another Excel file in that web part. Is it possible to do this? Please suggest some ideas on it.
0
votes
1answer
59 views

How to Create a Multiple People Picker field in a HTML form using JQuery

I want to create a People picker field in a HTML Form, which should accepts multiple people names, with comma or semicolon separated, Usually I create a input text field in the HTML form and then ...
6
votes
2answers
16k views

How can I create Ctrl-F Functionality from a search field?

I have a long page on SharePoint 2010 that needs to be searchable for keywords on that page. Apparently the target group is "unable/unwilling" to learn Ctrl-F so I was asked to create a permanent ...
1
vote
2answers
1k views

Retrieve SP-List data cross domain via SPServices?

I am trying to retrieve data from a SharePoint List hosted in a different server/domain. We are still running SP 2010 but about to migrate to 2013. I am not sure if jQuery.SPServices and CORS are the ...
0
votes
1answer
20 views

jquery prepend doesn't work in sharepoint 2013 forms

I tried to add some label on Sharepoint 2013 forms with jquery prepend. I write a code for testing purpose, add a row with text 'Label1' before column name 'Project'. It doesn't work, 'Label1' is not ...
1
vote
1answer
1k 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(); $("input[...
5
votes
3answers
2k views

Remember filter value using jquery and cookies

I am looking for a solution for the following problem: I have a large list that is related to a second list. The two list web parts are on one page, when you select an item in the first list, the ...
3
votes
1answer
1k views

SPServices $().SPServices.SPFindPeoplePicker not working for required field

I am using SharePoint 2010 and SPServices to get values from people picker in custom field. It is working fine but not fetching data for required fields. can anyone help me with this. var PP = $()....
0
votes
0answers
61 views

plumFormAutocomplete jQuery plugin doesn't group suggestions

I am using plumFormAutocomplete jQuery plugin in NewForm.aspx to populate suggestions from sharepoint list (visitors) to fill one field (visitors name) and, based on the selection, autocomplete second ...
0
votes
1answer
834 views

CEWP does not support <form> tag in jQuery file

I added jQuery to my Sharepoint page. When I reference the jQuery file uploaded in my library, I get this error message: <FORM> tags are not supported in the HTML specified in either the ...
2
votes
2answers
1k 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$='...