Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
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(...
4
votes
3answers
5k views

SharePoint DateTime field as Read-Only

How do I make the SharePoint DateTime field read-only in the NewForm.aspx? I'm using the below script to make the DateTimeColumn read-only. It's working fine in Firefox but not in IE9. The calendar ...
1
vote
2answers
144 views

Get specific page (file) from folder

I am using REST to get item page by specific title, My question is how to get the specific page in folder from list Pages Here is my code snippet : var folder; //folder var source; ...
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 ...
2
votes
3answers
7k views

how to get sum of a column in sharepoint 2013 list

Not sure if i would get any answer from here. I have a column number and title text. The data would look like this: Title Paid ---------- Jacob 200 Patrick 100 Jacob 100 Patrick 300 What i would ...
2
votes
2answers
296 views

How to execute a JQuery selector after dom objects are rendered complete in a search display template

I want to run a JQuery selector after all divs in Search Display Template (e.g. Item_Person.html) finished rendering. My funcs always seems run straight after master page is rendered, but it still ...
0
votes
1answer
175 views

Displaying only duplicate items based on column value (e.g. Title)

Trying to figure out a way to Create a list of duplicate list items based on a column contained in such a list. In my example, it is the title column. First, I was thinking that I could create a ...
0
votes
2answers
111 views

Calculating 2 weeks forward from a day, using a marker day

I am trying to code the date of the Thursday which falls two weeks after a given date. It is more complex then just adding 14 days to a given date. This is because if the first Wednesday after a ...
1
vote
1answer
87 views

manipulate cells of a list with jquery

I am modifying the Allitems view of a list and want to select each row with a specific title and change the last cell of that row to show the thumbnail of an image with jquery. var results = data.d....
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 ...
5
votes
4answers
3k views

JQuery to execute on change of taxonomy field

I am trying to find a way to auto populate some values whenever I detect a change in taxonomy selection (ClientPeoplePicker control), how can I achieve this using jquery? This is what I currently ...
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
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 ...
2
votes
1answer
986 views

Forward paging with SharePoint REST API

My Logic REST API fetch record from custom list I fetch top 6 records, while I fetch record I will get one more jSON node which will have forward paging URL. I am assigning this URL to HTML5 button ...
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 ...
4
votes
3answers
13k views

Get a list Id using javascript?

I'm trying to trigger the NewForm.aspx of a list by clicking on a link. I would like to known how to get a list ID using JavaScript (Or jQuery)? (SP2010) I've already tried : var context = new SP....
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
2answers
3k views

Autocomplete field on Item Form

I spent some time looking up options for an autocomplete or searchable field on a form and decided to go with Anton Khritonenkov's instructions (http://www.codeproject.com/Articles/637675/Multiple-...
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
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
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
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
142 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.
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
42 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-
1
vote
1answer
94 views

How to use jQuery plugins in typescript?

OK, I've seen many people struggling and different approaches on how to do this but I've been cracking my head and can't get it done. I need to implement this photo gallery in a SPFx web part and use ...
4
votes
3answers
6k views

Hide/Show columns in Custom List based on dropdown selection

I am trying to hide a column on page load and when a value is selected from a drop-down list, have the hidden dropdown appear. I am able to hide the column but when I choose the value in the drop-down,...
0
votes
2answers
16 views

Navigation Tabs, Adding the Active Class

I have written some horrible jQuery code (as I am new to JS). I have four buttons, when i click one it will add the active class which changes the background colour on the tab i have just clicked. It ...
0
votes
1answer
12 views

SP2016: How can I add visit counter for documents?

My SharePoint site has anonymous access and extended for internet. I want to stroe anonymous number of visits for each document (such as Images, Videos, and etc.) and show to all anonymous visitors. ...
0
votes
1answer
16 views

SharePoint Project Management System

Unfortunately I have no code yet but I feel like this is the best place to ask the question to decide which approach to go down next. I want to build a project management system. Currently a user can ...
4
votes
1answer
2k views

SPServices $().SPServices.SPFindPeoplePicker not working for required field

I am using SharePoint 2010 and SPServices to get values from people picker in custom field. It is working fine but not fetching data for required fields. can anyone help me with this. var PP = $()....
0
votes
0answers
30 views

Rest Api Post call in one site collection inside a SharePoint Web Application doesn't work

I have a rest API post-call program to create new items in a SharePoint list. This code works fine in every site collection except one site collection. I am scratching my head without any answer. ...
0
votes
1answer
82 views

How can i get status of workflow via rest api - whant to know when its completed,failed etc

Is there a way i can get the status of my running workflow for a particular record? I; working on a form that has a submit button and would like to enable it only when the status of the workflow is ...
0
votes
2answers
18 views

Showing and Hiding fields based on the values of other fields

I'm trying to hide or show fields in a form based on the values selected in another. I cam across this blog: https://spgeeks.devoworx.com/show-hide-fields-based-on-choice-field-selection-using-jquery-...
0
votes
1answer
25 views

How can I disable back button when form loads in Edit mode

I have a page(an edit form) i would like to disable the back browser button when the page is loaded. But i can't get it to work. I tried something like this window.history.forward(); ...
0
votes
1answer
377 views

Unable to grab files inside folders on SharePoint using PnP js

Does anyone have some reference on why I'm unable to pull in files from a folder in SharePoint? This is what I have so far, this will be my PnP js call (I don't I'm not doing something right) <...
0
votes
2answers
65 views

Use JQuery to customize suitebar in Sharepoint 2016

I'm trying to customize the Sharepoint 2016 suite bar so that the username is displayed at the immediate top left (instead of far right) as well as remove "My Personal Settings" from menu dropdown. ...
0
votes
0answers
9 views

SharePoint List consolidate and send an email based on Ticket Assigned to the user

I'm having a list of 90 lists in the SharePoint site, which is for ticket management. So in the user of each list will be assigned tickets. My requirement is to consolidate all 90 lists and send an ...
0
votes
1answer
41 views

JQuery to Loop Through List's Item Version History. Extract Version No., Modified (date), and Modified By (person/user)

I am trying to find a method to open every list Item's version history, get the Version No., Modified dateTime, and Modified By, and then aggregate it into a master csv. I need to aggregate every ...
1
vote
5answers
4k views

jQuery EditForm redirect to DispForm

I want to redirect user after editing item and pressing save button to item DispForm. I currently have JS code: $( document ).ready(function() { $('input[value=Save]').click(function() { ...
1
vote
1answer
382 views

jQuery working in IE, but not in Chrome/Edge

I've been trying to fix this bug for more than 10 hours, but I just can't figure out how to fix it. When using Internet Explorer 11, I don't get this bug, when using Edge or Chrome I get it. If I ...
0
votes
1answer
21 views

How to select multiple values in dropdowns in datatable for Sharepoint 13 list?

I have a list in SharePoint 13. The list is customized using Data table.Currently I have three filters with dropdown option. I want to select multiple option in the dropdown and show the result in the ...
1
vote
1answer
22 views

Few items in SharePoint list are not auto-populating in search bar

I'm using a SharePoint 2013 site, in which one of the page has a search bar(which has 'autocomplete' feature). The values from the SharePoint list needs to be populated as soon as a character is typed ...

1 2
3
4 5
41