Questions tagged [jquery]

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

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

JQuery to populate html table doesn't work in Chrome

I am trying to get the time and date a SharePoint list was last modified. The code to call the date and time will live on a different SharePoint page. I've thrown the code below together based on bits ...
0
votes
1answer
22 views

SharePoint list customise new design [closed]

Hi SharePoint Developers experts, we need to customise our SharePoint list into new design. Actually we have normal SharePoint list with columns as single line text, checkbox, radio buttons etc. We ...
1
vote
2answers
27 views

Hide column display name on sharepoint list display form using jquery

How to hide the column display name in the sharepoint list display form using jquery. I do not want to hide entire field. I want the control to be displayed but only the display name has to be hidden. ...
0
votes
1answer
31 views

SPFX : Undefined Hammer while trying to load third party javascript

I have create a custom SPFX webpart and what I'm trying to do is to convert the HTML and JQuery flipbook into SPFx webpart. I've download this plugin and add all the reference. However, when it is ...
2
votes
2answers
44 views

SPFx. Error while importing modernizr in SPFx

I am new to SPFx and I am getting an error while trying to add jQuery and external JS in SPFX. Example my web-part name is FlipBookWebPart and I am trying to add turn.js and modernizr.js into the ...
0
votes
2answers
26 views

JQuery - Set Person Field Value

How to set person field on form load and save the field value when item saves. I have added following code in script editor web part NewForm.aspx. But this is not working. Appreciate your support. $(...
0
votes
1answer
73 views

SOLVED: SPO filter results to display 'Title' field values while filtering page wps from another field in same list

I want my autocomplete filter to display the search results based on the Companies list item's Title field while filtering the page's WPs based on another field in the Companies list. I am working ...
0
votes
1answer
24 views

Jquery not loading on inital page load for suitebar links

I am trying to edit the SharePoint 2016 suitebar links and want to replace "sites" with a custom name and link. I have been able to edit the name via CSS but need to edit the link using JavaScript as ...
-1
votes
0answers
18 views

Custom Filter by single column

I am currently using the below code for a jquery filter on a custom list. Is it possible to narrow this code, so it only searches on <script type="text/javascript"> jQuery(document).ready(...
0
votes
1answer
19 views

Set the chosen drop down list with lookup field value

This is my Function : function RetrieveNewChange(ChangeID) { var getItemsUrl = "/_api/Web/Lists/GetByTitle('" + ChangeList + "')/items?$select=ID,Title,Employee/Id,Employee/Title,Employee/FullName&...
0
votes
2answers
49 views

Show/Hide field in SharePoint O365 based on cascadeing dropdown value selection

I am new to SharePoint forms in O365. I have a created a form which has cascading drop downs. 1) Country - A normal drop down field 2) State - A cascading drop down field linked to Country 3) City -...
2
votes
1answer
42 views

Display image from a list(column-hyperlink/image) using REST Api

In my SharePoint Online site, I need to display images from a list on a page using REST API/jQuery. The images in the list are stored in hyperlink/picture column in the list. Can someone suggest me ...
0
votes
1answer
30 views

How to refresh Sharepoint List Web Part in jquery?

I had added one SharePoint list web part. I want to need refresh web parts without refreshing the whole page using jquery or SharePoint default.
0
votes
1answer
85 views

Customizing SharePoint list fields in list forms

Currently in my SharePoint (2013 version ) custom list, the list forms are customized to render in tabs format. So each tab has few number of columns/fields in it. Now I have a requirement, in one of ...
0
votes
1answer
17 views

Calendar Content Query on 3 lines

I have a design requirement based on a custom design created by a UX team to show the 3 most recent calendar entries on 3 separate div elements on a SharePoint 2016 Site Page. Each should only pull ...
0
votes
1answer
24 views

How do I insert a value in a radio button based choice column in a SharePoint 2013 list using REST API in JavaScript?

Here are the columns I have in the backend list. Here's how I am sending the data to the backend list through a POST request using AJAX. var item = { __metadata: { type: "SP.Data.ListNameListItem"...
2
votes
1answer
64 views

SharePoint Online OOTB form access denied error

I have a SharePoint list form which has been customized using SharePoint Designer. I am using the script to populate logged in user details in the form. I have full control of the site and list. So ...
0
votes
0answers
20 views

CascadeDropdown doesn't work

I use SharePoint 2013, create 2 lists 'listA' and 'listB' with fields as below: listA has 2 fields: Department & departPOC Department: single line of text, unique departPOC: Person or ...
1
vote
1answer
70 views

Save as draft functionality on SharePoint online list form

On SharePoint list, normal we have Save and Cancel option when user fill new form. User want one more button "Save as draft". So user can fill form with some data and then after user need to fill data ...
0
votes
1answer
29 views

Trying to POST to a SharePoint List: 'SP' is undefined ReferenceError: 'SP' is undefined

I am trying to write a JS function that sends a POST request to a SharePoint List to add new List items to that List. I have done this in the past using SP.ClientContext and would like to continue to ...
0
votes
0answers
19 views

Sharepoint online - Guided tours, feature tour, walk throughs

TLDR; Is there a way to create in-app walkthroughs/ guides tours/ feature tours using open source packages like intro.js, chardin.js, joyride, bootstrap, HopScotch, Crumble with Modern SharePoint ...
1
vote
1answer
43 views

How to show/hide web part

On a SharePoint page, I have two web parts: One web part displays root Documents folder and another web part on the side is just a text that provides some tips to users. But when a user clicks on any ...
0
votes
2answers
39 views

Customize SharePoint 2013 New Form

I am struggling with SharePoint and JQuery. I tried to add new HTML elements to a a SP 2013 New form. So I fired following command in the Chrome dev console: $("select[title='TEST']").closest("td")....
1
vote
1answer
26 views

Change List Web Part background color when any item in the list has a certain value for a particular field?

Here's my situation. I have a DispForm that has two Data View Web Parts at the top that are displaying a few related items from two other lists. What I've been trying to figure out for hours now is ...
0
votes
1answer
53 views

Query multiple sharepoint lists with big data

Our SharePoint 2016 site consists of 14 custom lists where each list has approximately 500 list items. We wanted a way to query all 14 lists by PR NO which is common in all lists. We were looking for ...
0
votes
1answer
21 views

Javascript/Jquery list search - search by column instead of everything

I have this function which filters a list from a Web Part on my SharePoint page which works great, the only feature I need now if possible is to search only a specified column for the value, as it's ...
0
votes
0answers
26 views

SPO jQuery how to hide multiple columns

I want to hide multiple columns with all their rows followed by those columns (Comments,Test1,Test2,Test5) in my list based on a specific group permission. Here is a screenshot: I have a found a ...
0
votes
1answer
24 views

Access popup window element JavaScript

I have written the following code to load a popup(List B NewForm.aspx) when a List A NewForm.aspx is submitted. The popup has a div. var dialogOptions = SP.UI.$create_DialogOptions(); dialogOptions....
0
votes
1answer
23 views

Convert PDF content(with images) to the Inline HTML content

Is there any Javascript library or code available to convert pdf content(with images) to the HTML inline content. Any help would be appreciated, Thanks in advance
0
votes
0answers
27 views

Export Web Page to PDF with css using JavaScript / jQuery

I know that, I'm re-posting this similar question, but the solutions that I found on the internet is not fulfill my need. I need to Export a web page (SharePoint online custom page) to a PDF with ...
0
votes
2answers
24 views

Trying to get an Excel document through ajax, running into async issues

I'm adding JavaScript to a SharePoint and I'm trying to write a function that gets an Excel document, or rather the data in it, from a library. I've already figured out how to do that, but the files ...
1
vote
0answers
21 views

Can I get the content of a Site Page and use it inside my SPFx Web part?

I have a webpart which I want to fill with the HTML of a SitePage.aspx. If the user fills the SitePage with a Title, 3 blocks of text and an image, I wish to be able to use that exact same content ...
0
votes
0answers
23 views

Javascript running in edit mode only (Sharepoint 2016)

On my Sharepoint 2016 page I have a list and a search function created via Script Editor that filters the list. I have this exact same code working on a Sharepoint 2013 page fine, but on this 2016 ...
0
votes
2answers
18 views

Remove value dropdown (multivalue) logic in JQuery

How to implement logic button "Remove" in JQuery to remove a value from dropdown (multivalue)?
0
votes
0answers
29 views

How to disale Contextmenu or Right click event in iframe/embed using javascript/Jquery

I have loaded the PDF document in the .aspx page using iframe, How to disable the contextmenu/Right click event using javascript/jquery. Any help would be appreciated. Thank in Advance.
0
votes
1answer
24 views

Error inserting data into SP list using REST API

I've never seen this error before and I've used REST API many times. I am in SharePoint Online so maybe it behaves differently. Whenever I insert and item into a list using REST, I get the ...
0
votes
0answers
11 views

Getting a document via ExcelRest: Request Entity Too Large

I'm currently attempting to get a file from my SharePoint library by making an AJAX query to ExcelRest. I'm able to return a document in this way, but when I attempt to get the document I need I get ...
0
votes
0answers
13 views

Limit the people picker control according to contact list of each subsite

We are using SP2016 on-premise. A custom people picker is setup according to MSDN article. The people picker control is working and we want to limit the picker selection according to a list (contract) ...
1
vote
1answer
19 views

How to return results from executeQueryAsync

I know this has been asked before here and I've viewed several similar questions, but I'm just not getting it and could use some assistance. I'm currently reading a file in SharePoint's library via an ...
0
votes
3answers
24 views

REST API update error

I am using vuejs with SharePoint. I get the following error in the function below. "The property 'columnName' does not exist on type 'SP.Data.RegisterListItem'. Make sure to only use property names ...
0
votes
1answer
45 views

Using Axios to update SharePoint list

Is anybody familiar with using REST API to update SharePoint lists using jquery? How can I convert this to Axios? Here is the Code: function UpdateListItem() { siteURL = ...
0
votes
0answers
29 views

Trying to read a file's contents in Sharepoint using Javascript

I have successfully embedded javascipt with jQuery into a page in SharePoint and I am trying to write a function that, when called on load, obtains the data from an excel file that has been uploaded ...
0
votes
2answers
76 views

How to select a SharePoint people picker using JQuery

Im trying to select a sharepoint peoplepicker element in my form list. i tried: $("#...
0
votes
1answer
51 views

Add a HTML Yes/No field to SharePoint Online Yes/No column via JavaScript/jQuery

I am building a Custom html form and saving all the fields to a SharePoint Online list. I figured out adding text boxes and choice drop downs via JS/jQuery like, var xxxxxxxx = $("#xxxxxxxx").val(); ...
0
votes
1answer
36 views

Grey-out disabled “Managed metadata” & “Multiple-line of text” fields

I am working on a custom list inside SharePoint online team site. and inside the list's Edit form i want to set a managed metadata field (titled "Customer Name") and a multiple-line of text field (...
0
votes
2answers
58 views

Unable to set a People or Group field as Read-Only inside our edit form

I have a custom list inside sharepoint online site, and inside the list's Edit form i want to disable a People or Group field named "Project Manager" using jQuery, but i am not sure if this is ...
1
vote
1answer
18 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
52 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" ...
0
votes
0answers
17 views

File uploaded to SharePoint library using JQuery and SharePointPlus js lib only from second click

I'm using createFile() method of SharepointPlus 5.2 js library to upload a file to a SharePoint 2013 library. It works perfect on most of the SP libraries. But on newly created SP libraries it throws ...
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 ...