We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [jquery]

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

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

Internet Explorer 10 Script7002 XMLHTTPREQUEST network error 0x800c0007, no data is available for the requested resource

I am not sure wha is going on here but I am repeatedly receiving this error when trying to use the REST API when saving a form. I make the $.ajax call, wait for the promise to return but at some ...
0
votes
0answers
8 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
18 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
19 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
16 views

Remove value dropdown (multivalue) logic in JQuery

How to implement logic button "Remove" in JQuery to remove a value from dropdown (multivalue)?
3
votes
1answer
1k views

How can I set Structural Navigation to “Display only the navigation items below the current site” via JavaScript?

I currently have JavaScript that sets the navigation, however it currently sets it to: "Structural Navigation: Display the current site, the navigation items below the current site, and the current ...
0
votes
1answer
23 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
10 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
0answers
10 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
2answers
602 views

Hide nearly all page elements except when user is site admin

I'm feeling my way through being a site collection admin. I have a home page I wish to remove all sharepoint elements and just have a table of buttons. I've done this by added this CSS to a CEWP: <...
1
vote
1answer
786 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 getListData(...
1
vote
3answers
124 views

How to update an outer list with a “beforesave” event? UPDATED

My goal: I have a new form where the users can fill textboxes. The user click on the save button if finished. I check if the fields are valid or not. If valid, based on the textboxs I get records ...
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
17 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
2answers
303 views

Column permission to edit the data for a specific SharePoint group

We have one list in SharePoint Online in which there are certain records. There is one column whose data should be visible to all users,but should not be edited by all the users, it should be enabled ...
4
votes
1answer
908 views

401 (Unauthorized) in Google Chrome

When I Get the document list from SharePoint site I get this error "401 (Unauthorized)" only in Google Chrome, but in IE it works. This is my code function GetListItems() { var siteURL = "http://...
0
votes
0answers
16 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 ...
0
votes
3answers
22 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
28 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
2answers
44 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
0answers
28 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 ...
1
vote
3answers
1k views

Hide sharePoint list Columns based on users permissions

I want to hide SharePoint list(Three columns) from users. The columns are only see by HR manager and V/Manager. How to Achieve? I just tried like this: <script type="text/javascript"> $(...
0
votes
1answer
44 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
30 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
1answer
745 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
596 views

fire change event on a multiline text box (enhanced rich text) in SharePoint using jquery

I have a list (MyList) with some columns. It also contains a column (Mydesc) which is a multiline text box having enhanced rich text. Now in the edit form I have to check whether any change occurs in ...
0
votes
2answers
46 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 ...
0
votes
1answer
1k views

Replace Source query string value without redirecting

is there some way to replace the Source query string parameter in SharePoint without redirecting the user? All the examples I find use location.href="new url"; which causes the page to immediately ...
0
votes
1answer
901 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
750 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
613 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
12 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
45 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
758 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
608 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
936 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
699 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
857 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
39 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
942 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
969 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
918 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
959 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 ...