Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
25 views

Change the text color only on specific numbers in column

A little help please! I created a SharePoint list with company contacts and I want in column 'length of service' the numbers 5, 10, 15, 20 etc. years to be marked a different color, for example red.
Keit Eigla's user avatar
1 vote
1 answer
15 views

Update File Name with jQuery in Edit Form

I am trying to change the name of a file in a list edit form depending on a value selected in a lookup column. nCName = $("input[title^='Name']") function UpdateDocumentName(selectedOption){...
Rogerb's user avatar
  • 21
0 votes
1 answer
50 views

Using Script Editor and/or Content Editor Web Parts Alongside an Infopath Form?

First some info about the system I'm working in: Sharepoint Server 2013 on-premise Sharepoint Designer 2013 Infopath Designer No access to Power Apps I'm new to Sharepoint. I also know very, very ...
RWeaverAMT's user avatar
0 votes
0 answers
17 views

Jquery Encryption for SharePoint list view for all the fields in Email column, where as it is getting applied for one row in Title column as well

I'm using a below script in SharePoint all items aspx for Encrypting email column values, where it is also getting applied to one row in Title column. how to achieve this by not to encrypt the first ...
charudath nandan's user avatar
0 votes
0 answers
75 views

I need to open a sharepoint document in new tab in browser directly from the sharepoint site we created for this project using jquery calls and html

$(document).ready(function() { // Attach a click event handler to the document link $('.document-link').click(function(event) { event.preventDefault(); // Prevent the default link behavior ...
pavithra ramaswamy's user avatar
0 votes
1 answer
218 views

Add user to SharePoint group using rest api not working

I am trying to add a user to the SharePoint group from the REST API in SharePoint 2013. It says successfully added but never adds the user function addUserToGroup(userloginname) { var ...
user388969's user avatar
1 vote
1 answer
37 views

SharePoint Online Display All Options in a Choice Field In A Custom Page

Is there a way to fetch all the Choice Options of a Choice Field created in a SharePoint Online List and to display in a custom SharePoint Page(Inside Pages Library/Site Pages)?(Without the help of ...
Aparna Sunil's user avatar
0 votes
1 answer
105 views

How to get Document ID by using encoded edit link of that document using rest api in sharepoint online

How to get Document ID by using encoded edit link of that document using REST API in SharePoint online? Link of site /:b:/s/SiteName/EZMojxE1NqNGgMljzTBZSSoBYOzeQJoW48yYm7WWBwUZcw I am trying: /_api/...
Kajal's user avatar
  • 11
1 vote
1 answer
514 views

A type named ... could not be resolved by the model - but code is fine

I am trying to add an item to a SharePoint list synchronously. but I get the error "A type named 'SP.Data.QAReadAndSignListItem' could not be resolved by the model. When a model is available, ...
Naama Frank's user avatar
0 votes
0 answers
61 views

Color code rows of SharePoint 2019 list with multiple pages in classic view

I have a long status list in SharePoint 2019 that has the following CSS for color coding rows: How do I get this to work on all the multiple pages vs just the first page of the list. Can the code be ...
user95039's user avatar
1 vote
1 answer
42 views

Alternate data result SPFX

Hi all I'm trying to build an spfx webpart for project server 2019 (on prem)... Everything it was working good, I used this css but now I faced an interesting question, css have two elements container ...
Douglas Filipe's user avatar
0 votes
0 answers
33 views

Call "datepicker()" more than once on one datepicker field using jquery

I have two datepicker functions called on same datepicker field. First part of code disables all days except thursdays and sets Max selectable days to 60 and minimum selectable date to 1. In the ...
Swetha's user avatar
  • 377
0 votes
1 answer
72 views

Error:$("#id").datepicker() is not a function jquery in sharepoint 2013 list New form

I have a requirement to disable dates(entire week of Thanks giving day) in date picker control.Its a sharepoint date time control.I am facing error :"$("#control id").datepicker() is ...
Swetha's user avatar
  • 377
0 votes
1 answer
1k views

Getting "Uncaught TypeError: Cannot read properties of undefined (reading 'href')" error on SharePoint 2010 form load

When opening a SharePoint 2010 form in modal mode I get the following error: Uncaught TypeError: Cannot read properties of undefined (reading 'href') See code below for usage and troubleshooting. $(...
Ghoztrider's user avatar
1 vote
1 answer
667 views

How to retrieve a specific item with SPFx and Query in the React Framework SharePoint Online

I would like to get a specific item by ID. I'm really stuck how I can retrieve this item. I called the list and tried to save it in an object and then should in the render() function. Here is my code ...
Matthias's user avatar
1 vote
1 answer
102 views

Hide Multiple Choice field with jQuery

I have a field in an SP 2016 form that looks like this: I'm trying to hide the row that the multi choice field is in. I've tried multiple things. #1 doesn't work at all. #2 hides the check boxes but ...
Patti N's user avatar
  • 23
0 votes
1 answer
119 views

Jquery .load() not working properly

I am building a react spfx solution that looks like a website. It has a nav bar. The navbar is actually links to the site pages in the same site. What I need is load the contents from "...
Treesa's user avatar
  • 101
1 vote
1 answer
575 views

How to combine two SharePoint columns into one datatable column?

I have a datatable that I want to show the information from my SharePoint List. The table has three headers: Name, Department and Address. The Address column should combine two SharePoint columns(...
soh's user avatar
  • 23
0 votes
1 answer
141 views

How to make a List Item Read Only in Quick Edit Mode? SP2013/SP2016 on premise

I want to make a list item read only for a certain group when one of it's column has a value of "Completed". I want to achieve it through jquery and server side code.
Awais Korai's user avatar
0 votes
2 answers
141 views

Which columns are being returned from an AJAX call?

I know the names of some columns - FirstName, LastName, JobTitle, SAMAccountName, Department that an API serves out but I would like to know all the columns that are returned. How do I find out the ...
Pete Whelan's user avatar
1 vote
0 answers
53 views

SharePoint Designer 2013: Including Javascript Code

I'm trying to include the following code into SharePoint Designer on a web page. How can I best do this? When I copy-paste, no results show. The site below mentions using a content editor web part, ...
user18172595's user avatar
0 votes
1 answer
86 views

Sharepoint on premise 2019 - pass query string parameter to page title

I am looking for help with displaying the query string parameter on the page, column: project leads URL with Query string: https://xxxxxxxxxxxxxx/IAS_Projects/SitePages/by%20User.aspx?projectleads=joe%...
marco's user avatar
  • 47
1 vote
1 answer
282 views

Enable dropdown based on another dropdown value in sharepoint 2016 [closed]

I have a dropdown: id="dropdown2" that is disabled upon loading the form. I want it to be enabled when I select a specific value in another dropdown: id="dropdown1". This is my ...
eito_66's user avatar
  • 13
0 votes
1 answer
364 views

HTML Table for Column Description?

Is it possible to insert a small HTML table for the column descriptions. I have a bunch of acronyms that I use the description to have the definition of what they represent, and instead of having them ...
BeerusDev's user avatar
  • 113
1 vote
1 answer
206 views

Org Chart not working for People pIcker

Reference of plugin https://www.jqueryscript.net/demo/Fully-Customizable-Organisational-Chart-Plugin-With-jQuery-OrgChart/ I am using List schema as TeamMember(PeoplePicker),FunctionalManager(...
kumar's user avatar
  • 139
0 votes
1 answer
235 views

Adding a new item in the SharePoint list with multiple fields

My objective is to add a new item in a SharePoint list (Form) using REST API. My current code is: function AddData() { var listName = "Form"; CreateListItemWithDetails(listName, ...
Keshav Sharma's user avatar
0 votes
0 answers
47 views

quick edit mode direction in SharePoint list view by jQuery

I need change direction of quick edit mode in SharePoint list view, try in change in jQuery does not apply because of template JavaScript of share point that occur after clicking for editing fields. ...
Amir's user avatar
  • 1
0 votes
0 answers
74 views

Call all unique Values from SPO List, threshold exceeded, into a drop down field

I have a custom table with drop down field, it need to show all unique value from a SharePoint online list. The problem is it already exceeded the 5000 limit threshold. And upon my query, it is only ...
cjs's user avatar
  • 1,204
1 vote
1 answer
373 views

I'm trying to run a javascript script through the script editor in sharepoint online, but nothing happens

In the script editor I have this code to disable some buttons: <script> document.getElementById(id="Status_c15b34c3-ce7d-490a-b133-3f4de8801b76_$DropDownChoice_Aprovado").disabled = ...
Odelam Sá Dias de Souza's user avatar
0 votes
0 answers
96 views

Trying to upload the date type from excel to SharePoint list column

I am trying to upload date column value in SharePoint list column of "date and time" type. The below image of excel data: The "Date of Commissioning" value upload in SharePoint ...
Shreya's user avatar
  • 55
1 vote
1 answer
705 views

jQuery Ajax Unauthorized error on POST

Trying to create my first web part for SharePoint online that writes to a list. But when I do a post using jQuery ajax I receive an Unauthorized error. Any help you be greatly appreciated. I am ...
FenrirZA's user avatar
0 votes
1 answer
232 views

Trying to upload document in "Attachment" column of SharePoint list

I am trying to upload document in "Attachment" column of SharePoint list. I am able to upload the document but not view the document. The SharePoint list is given below image:- When I am ...
Shreya's user avatar
  • 55
1 vote
1 answer
79 views

Issues with links with url parameters in Sharepoint modern UI( I have to click link twice)

I'm using the modern script editor. What i'm experiencing is if i use the below <div><a href="/sites/Mysite/SitePages/People.aspx">People</a></div> it works But when ...
naijacoder's user avatar
  • 4,232
0 votes
2 answers
138 views

AJAX Data From SharePoint List Not Carrying Over to Next Function

I have created fiddle with mock sample data that is formatted the same way as the AJAX response data. When I try to implement my script into a SharePoint script editor and debug it, it tells me that ...
BeerusDev's user avatar
  • 113
0 votes
1 answer
326 views

jQuery Datatable not loading - SPFX Application Customizer

I'm trying to migrate jQuery Datatable from On Prem 2013 to online, I'm gonna create SPFX application extension, where I insert the scripts in order, still datatable is undefined. $.fn.dataTable is ...
Arun's user avatar
  • 113
0 votes
1 answer
226 views

How to join the multi row value in single row of SharePoint list

I would like to submit the multiple line item value in single row of SharePoint list. The result of the actual submitted value in SharePoint list is shown below image:- If the column value is equal ...
Shreya's user avatar
  • 55
2 votes
1 answer
780 views

I am trying to get the choice type field value in select tag from SharePoint list

I am trying to get the choice field value in select tag from SharePoint list. Here, the code is given below: function GetphysicalVertual() { var defPG = $.Deferred(); var inputElement; $....
Shreya's user avatar
  • 55
0 votes
2 answers
53 views

SPUtility not work in SP2016 survey

I am trying to customize a survey form using SPUtility. My survey form only have 1 field named "Event". I tried to pre-fill the field "Event" but in console it is returning: Unable ...
Mark L's user avatar
  • 4,065
0 votes
1 answer
932 views

How to get list of folders data from SharePoint List using Javascript?

Can anyone please help me with that? Suppose my list name is: Country in which I created 5 folders with different country names, then inside that folder I created their state names. So scenario is ...
Sayyed Amir Hussain's user avatar
0 votes
1 answer
1k views

How to remove &ZeroWidthSpace; from wiki pages

I am using SharePoint 2016 wiki library. I have created several pages and they need to have same format. However, in some pages, SharePoint have inserted &ZeroWidthSpace; character at top of page. ...
Mark L's user avatar
  • 4,065
1 vote
1 answer
689 views

Try to download multiple files from SharePoint library on Button click

I am trying to download multiple files from SharePoint library by clicking on Download All button. The image is given below: How can I download all files from SharePoint library on a single click on ...
Shreya's user avatar
  • 55
1 vote
1 answer
329 views

How to prevent SharePoint site page refresh itself when jquery .load is triggered?

I have a simple SharePoint site page (created in Site Page library). I added a simple jquery syntax here: <script> $(function() { $("#button_overview").on("click", function(){...
Mark L's user avatar
  • 4,065
1 vote
0 answers
60 views

Edit and Delete options for each sharepoint list item using query Datatables?

How to use jquery Datatables to add - Edit and Delete options for each sharepoint list item. Please help me with an example.
Amar Singh's user avatar
1 vote
1 answer
500 views

How can I create a new list item in SharePoint with attachments without using jQuery

I am trying to create a SharePoint list item from a HTML file loaded into a SharePoint page. The issue that I am facing is that the business will not allow any external CDN's meaning that any .js code ...
jb12345's user avatar
  • 13
0 votes
1 answer
80 views

Restructure SharePoint Data Structure After $.ajax GET

So I have gotten to the point in one of my projects where I realize it would be so much easier to have a simpler data structure than what I am actually working with. When I get the data with: _api/web/...
BeerusDev's user avatar
  • 113
0 votes
0 answers
25 views

How to Show the Colored status or check icon based on column status (yes/no)

I have Custom List for Visitors and I created some custom columns: Visitor Name Enter Time Check Out Time Check Out Status etc.. Here I want when Status column value changes to Yes (this type is Yes/...
user3520155's user avatar
0 votes
1 answer
22 views

SharePoint online custom list options

We are currently using SP2013 with many custom lists. I have been using JQUERY to build them. My question is what is my options to rebuild the lists in SharePoint online? Can I use JQUERY again?
Harris's user avatar
  • 581
0 votes
1 answer
317 views

Jquery Conditional Formatting - Number Range [closed]

I am using this Jquery script to highlight column based on the item value within. Is it possible to add a numerical range? i.e. 0-50 returns in green. Thanks ​​​​​​​​​<script src="https://ajax....
Daryl's user avatar
  • 127
0 votes
1 answer
223 views

SP2013 List: Trigger JQuery to run with each list view change or to/from Quick Edit mode

I am using a JQuery script in a list (in a Script Editor) to (visually) change a column's name. The internal and display column names remain static. When I switch from normal view to Quick Edit, the ...
ChasEpes's user avatar
  • 103
1 vote
1 answer
960 views

DevExpress Custom Store to get data from REST API

I'm trying to create a drop down menu using DexExpress in jQuery with SharePoint REST API. I get the values from the REST call in the console, but I'm having issues trying to display these values in ...
CXLSX's user avatar
  • 13

1
2 3 4 5
41