Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
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 ...
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>...
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
1answer
21 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
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 ...
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&...
1
vote
1answer
36 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
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"> &...
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
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
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) ...
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-...
0
votes
1answer
51 views

SharePoint 2013 SPServices UpdateListItems 403 FORBIDDEN

I have been using the SPServices UpdateListItems code below for several years on an on-premise SharePoint 2013 Enterprise server without any issue. However, we recently migrated to a new cloud-based ...
0
votes
0answers
11 views

CHange colum header(Display Name) in SharePoint List view

Added list view in a web part page and tried to change column header(column name) using below script but it didn't work out. Reason is column id is keep changing because of the sorting number. Can ...
0
votes
1answer
17 views

SharePoint List Drop Down only to display choices not already in SharePoint list

My SharePoint list is connected to Power Apps . I am trying to create a way to check out equipment by SN. I have placed the SNs in a Choices Column and put the SNs. This has allowed the user to see ...
0
votes
1answer
11 views

_x0020_ Not Working in AJAX

so I have 8 different SharePoint lists I am pulling from. And for aesthetic purposes I want to change the listname from something like "Program1" to "Program 1" as it doesn't ...
0
votes
0answers
14 views

HTML Form Doesn't Send Data through AJAX Post

I have a DataTable that uses AJAX to pull from 8 different SharePoint lists, and organizes them based on there Program attribute, then child row is organized by the Deliverable attribute, followed by ...
0
votes
0answers
13 views

popUp in SharePoint using localstorage inconsistent behavior

The code below renders a pop-up once a day for every user that logs into the SharePoint site. It was used in our SharePoint 2010 site for years and worked perfectly. Recently, we migrated from 2010 ...
0
votes
0answers
45 views

Sharepoint Preview pane View- Search functionality?

I have a SharePoint Document library that's using the Preview Pane view. As the preview Pane view looses the Document library Search functionality - Id'm trying to add this back in as a custom Control ...
0
votes
3answers
32 views

Hide drop down value based on selection of another drop down

Please suggest if below works as i want to hide a drop down value based on other drop down value selection , but it is not working as expected. var dropdown1 = $(":input[title='Engagement Type']&...
0
votes
1answer
35 views

anchor tag href redirects to another without clicking the icon

I have made 2 tabs , in the second tab I have a datatable in which one column holds the anchor element... In the anchor element I have "href" attribute in which I have called another ...
0
votes
1answer
17 views

When Calling a JQuery via ID element, it shows twice

When I am calling a JQuery using the ID element in the Div tag, its showing up twice. Is there something I need to do to stop the double showing? Below is my code and under that is the outcome (...
0
votes
1answer
35 views

How to make foreach function in jquery asynchronous?

I am trying to make each function of jquery asynchronous...In sharepoint framework, I am trying to update each line item of HTML table to sharepoint list using PnP JS Core library. For this I am ...
0
votes
1answer
39 views

Not able retrieve web or list using Javascript

I have added the below code, But I am not able to retrieve the web or site. And added this script in Content editor web part of list. Can you please let me know where did I go wrong? $(document)....
0
votes
0answers
13 views

Enable Asynchronous Automatic Refresh removes js to highlight backgound colors

When SharePoint page refreshes the custom highlight fields work, when the webpart is refreshed highlight disappears, if I refresh the page then I can see highlighted background again,the page needs ...
1
vote
1answer
24 views

Sharepoint 2013-File getting downloaded before ModalDialog opens

I am trying to create a modal dialog on click of a hyperlink file column(SharePoint 2013).I am able to open the Modal dialog in an Iframe But it's happening only after the file download. I don't want ...
0
votes
0answers
15 views

Chosen Single Selected Search Box in SharePoint Online

What do I do if I want to make Choose Single Selected in SharePoint Online?? Because, some time ago I made the same case as now. but the script doesn't work properly. Follow my Script: But this my ...
0
votes
0answers
21 views

Dynamically Updating SharePoint Page based on List Dropdown

I have some SharePoint Wiki Pages, and these pages contains few steps for a process. Based on the environment (Dev/QA/Prod) These process have a change in system names, while the steps remain the same....
0
votes
0answers
24 views

jQuery console loads twice in SharePoint

I am having issues with this jQuery code. I don't understand why my function runs twice. 'dosomething' and data shows up twice in the console and i'm not sure why. Please help. $(document).ready(...
0
votes
0answers
22 views

Document column filed need to update from existing list on the SharePoint 2013

SharePoint Developer experts, We have one document library and one List on SharePoint 2013. List name as "Policy" and Document library name as "Process documents". On list, we have ...
0
votes
0answers
7 views

Checking/Ticking Checkboxes from ID in array

Everytime a checkbox with the class "thischeck" is checked, i push the id of that checkbox to an array. I then switch tabs and when i switch tabs, my checked boxes disappear, I want the ...
1
vote
2answers
26 views

jQuery hiding column based on another column's value

I've successfully used the following script in NewForm.aspx to hide a column 'Date SharePoint checked' when another column 'Check SharePoint?' is set to 'No'. When I open the same list item in ...
0
votes
1answer
56 views

Append current page URL as redirect to new item link

I am using SP2013 on premise. I have 3 lists: Projects Requirements Issues. Lists 2 & 3 have been added to List 1 DispForm.aspx and a lookup column and query string filter links them so that ...
0
votes
0answers
16 views

Sharepoint Star Rating image not updating (display form)

I have been trying to implement a star rating in a display form. For this I partially utilise concepts from this post: Rating Feature in Display Form SharePoint 2013 ; When placing the $().attr() ...
0
votes
0answers
115 views

IE11 cross site collection call issue in iframe

Whenever I try to click button which is inside Iframe using jQuery in my SPFx webpart in IE11 it gives below error. Link in the iframe is of different site collection: SEC7111: HTTPS security is ...
1
vote
1answer
29 views

400 error when making POST request (adding item to SP list)

I have a form that contains check boxes and input fields, and hitting the Submit button should ideally add the content values to a SP list. When I run the debugger I can see that each input (checked ...
0
votes
0answers
12 views

Create a task with multiple attendees to create multiple tasks per attendee

Here is a desirable case. During new task creation, a user can include many attendees ('Assigned to'). But clicking on 'Save' button should trigger multiple tasks creation (one per attendee). All ...
0
votes
0answers
16 views

Sharepoint online Rest API with JQuery exercise makes Google Chrome become unresponsive

i have a scenario where in i am checking permissions for a given user. I.e user will select a site collection based on that it will fetch his permissions in sites and subsites. I was successful but ...
0
votes
1answer
32 views

How to Hide SharePoint Library Column (after file upload) Based on Conditions, JS JQuery, Multi-Choice Column

I am trying to use js to hide SharePoint Document Library columns based on conditions. Using SP 2010. I was able to hide drop-down columns based on an initial dro-down column value thanks to a former ...
0
votes
1answer
22 views

Need JQuery to Add a (None) or blank value to SharePoint Lookup Column

I have a Lookup column to another list but I need to display a "Blank" value or a "None" as the first item in the dropdown. The column must remain "Required". Does anyone have a JQuery example of ...
0
votes
0answers
11 views

SP 2013 JQuery: Add headers in form using JQ

My request is to amend the 1st code to target the exact field name instead of using "contains". The 2nd code (different purpose) finds the exact field name. And, no I cannot use SPD. I need to use ...
0
votes
1answer
23 views

Change one SharePoint site link in the Global Navigation redirect to another site for all users except one

For example, a site in the global navigation, when clicked should redirect to another site for all users except one. Also, users who have saved the site as bookmarks should be redirected too when they ...
0
votes
0answers
7 views

.aspx page displaying “Hello” + Userid

I have copied some code from an example and when placed in a content editor, it actually works! but when i put it in my .aspx page, it does not. I get the error "userid is not defined" I believe I am ...
0
votes
2answers
34 views

Trouble conditionally hiding fields in SharePoint 2013 custom list

I have a custom list in SP 2013 where I need to conditionally show/hide fields in the list based on responses to other fields in the list. I'm so close to figuring it out, but it's not been easy. I've ...
0
votes
1answer
28 views

Pagination in SharePoint Rest API

We have to load records into page using REST API and to show 5 records per screen. So we want to have Prev and Next buttons so that user can navigate backward and front as loading of all records at a ...
0
votes
1answer
24 views

In a SPFx Web Part, how can I extend JQuery with TypeScript?

In order for a JQuery plugin called sliderkit to work I had to add a property in JQuery's interface. I've added one line in it: interface JQuery<TElement = HTMLElement> extends Iterable<...
0
votes
1answer
19 views

SP 2013: Display Field Name & Value in two places on Edit Form

I have a very long form and I need to leave a field [Field1] at the bottom of the Edit Form but display the name and value towards the top of the edit form. Can Jquery get the field name and value ...
0
votes
1answer
41 views

SP 2013: Highlight Row if Field Value is empty

I need a script to highlight rows in a SP 2013 List if one field is null/empty. Any help is appreciated! Field: [Date Funded] Thanks-
0
votes
1answer
141 views

Sharepoint Datatable with export option in excel pdf and csv

I have created a list in sharepoint and trying to load in datatable using rest api with search and export option to tranfer in excel file for download. kindly help.

1
2 3 4 5
41