Questions tagged [jquery]

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

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

Refresh parent page after calendar event creation

I have created a new page with a default calendar webpart. Below is what I'm doing. Click New Event and the popup gets opened Fill-in the event details Click Save and the event gets saved Calendar ...
0
votes
1answer
723 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 ...
0
votes
2answers
985 views

Script Editor Web Part (SharePoint 2013)

Newbie so please don't beat me up. I'm trying to run a simple javascript function using the jquery library. I've tested it on jsbin and it runs. However when I go to my SharePoint 2013 page, ...
0
votes
1answer
1k 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
1answer
892 views

Repeating section in SharePoint 2013

Just wondering has anyone ever found a solution for creating a repeating section on a SharePoint 2013 built in SharePoint designer and NOT Infopath. All resources online point to using the repeating ...
0
votes
2answers
1k 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: <...
2
votes
1answer
1k views

Why is my Ajax call returning a 500 Server Error?

I'm currently building an application page for a SharePoint 2010 site. One of the methods on this application page retrieves the User Profile information from the server and displays it to the client. ...
0
votes
2answers
783 views

filter ListView using RestApi in sharepoint APP

Please let me know is there any way to filter list inside listview using restapi Example: TestList And below is my custom search:(currently it is configured on Title field) Now after filter(Title=...
0
votes
2answers
1k views

Unable to get property 'createRange' of undefined or null reference

I have a SharePoint custom list form with a bunch of Javascript running on it. In particular I have one field where it gets its choices from a lookup to another list. The lookup returns n versions of ...
1
vote
1answer
18 views

Filter data based on Taxonomy value [closed]

I am building a search web part in which, I am filtering the data from the SharePoint document library based on the value in the skillset column. It is a managed metadata column. Below is the ...
1
vote
1answer
896 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(...
4
votes
1answer
2k 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
1answer
32 views

Auto populate SharePoint People Picker with a user ID in a custom form

I have a couple of people pickers in my custom HTML form in SharePoint 2013. I am trying to auto-populate them with a user. I have the user id numbers like "890", "7789" <tr>...
2
votes
3answers
2k 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
788 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
15 views

SP2013: Disable text or number field once populated

I am looking for a jQuery script to conditionally disable two field types: Disable a text field if it is not blank and Disable a number field once it is non zero. I see many posts on disabling ...
0
votes
2answers
924 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 ...
0
votes
1answer
22 views

Conditional table cell background color depending on value

I have a HTML table that I'm trying to change the cell background color to red depending on the value of the cell. Each cell will have a different threshold for when red is needed (one cell might be &...
0
votes
2answers
774 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
2answers
1k views

Get the data from Multi line Text field and set it to text area line by line

I have a multi line rich text field and I want to get the data from column and set in text area line by line. I tried Splitting but I need another solution if possible.
0
votes
1answer
960 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
15 views

Rearrange fields in New Item form with jQuery

I'm attempting to use jQuery to relocate fields on a list's New Item form. I want some of the text and checkbox fields to appear between radio selections. I created and edited a customer New Item form ...
1
vote
1answer
791 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
1answer
779 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 ...
1
vote
1answer
37 views

How do we call Power Automate Flow using Javascript button click?

we have a requirement of triggering the power automate flow using javascript button, we are still using the classic sharepoint site, we need to pass an item id to the power automate if they select an ...
0
votes
1answer
1k 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
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
1k 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
0answers
29 views

Change date and time entered by user to different timezone in React Sharepoint SPFx

I am trying to change date entered by user to different timezone. Right now it only for default value. But I want to change the date which will be entered by user in React Sharepoint Framework SPFx &...
0
votes
2answers
21 views

Sharepoint:formField Javascript

We have a custom SharePointFormField for your DisplayForm and DOM Looks like this. <div class="FormRow"> <div class="FieldLabel"> <a name="SPBookmark_FileID&...
0
votes
1answer
943 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 ...
12
votes
4answers
3k views

Using jQuery $(document).ready() in JavaScript Object Model

I've been using with great success the $(document).ready(function() { FunctionName(); }); in a SharePoint WebPart code snippet to fire off COSM CAML queries using JavaScript to build various ...
0
votes
1answer
999 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
2answers
2k 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
1answer
873 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. ...
1
vote
1answer
263 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 ...
2
votes
1answer
1k 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
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
3answers
1k 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
2k 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
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
0answers
25 views

How to use Anchor tag in SharePoint Custom Navigation

I have a custom master page and I need one of the nav items to link to a section on the same page. <section class="mt-3 pt-4 pb-5 grey lighten-4" id="cyberHeroes"> &...
6
votes
4answers
18k views

In 2013 using JavaScript how do you empty a people picker field?

In SharePoint 2013, I want to delete all existing values in a people picker field using javascript or jquery. Simply using .removeAttr('value') or .val("") does not work.
0
votes
0answers
20 views

SharePoint 2013 custom JS not working in IE11 list view

I seem to have some browser compatibility issue but not sure what is causing the issue. I wrote my code using Chrome and buttons, Javascript, etc. runs good. Everything displays as it should. I'm ...
0
votes
1answer
27 views

AJAX POST Call to More Than One SharePoint List

I have been working on a project for quite some time now. I have found this post somewhat useful, but am unsure if it is correct or not for my utilization. Functionality: Read in SharePoint list ...
0
votes
1answer
19 views

AJAX POST Request to SharePoint List from HTML Form

I have been working on a project for quite some time now. Functionality: Read in SharePoint list items from 8 different subsites with a GET request. Populate those items in an orderly(grouped) ...
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']")....
1
vote
1answer
871 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 ...
0
votes
1answer
30 views

Can jQuery open SharePoint List Settings and make changes?

Can JQuery open SharePoint 2013 List Settings and make changes? Likewise, can JQuery add web parts or add CSS to a Script Editor Web Part or CEWP? If yes, where can I find information to do so? Thanks-...
3
votes
2answers
811 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 ...

1
2 3 4 5
41