Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jquery]

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

0
votes
0answers
13 views

Error loading javascript code in content editor webpart in other browser except IE 11

I have added content editor webpart in NewForm.aspx in SP2013 and reading the code to javascript file called HideFields.js. The script is working as expected in IE 11 but not in Firefox, Chrome and ...
0
votes
0answers
22 views

How i can set a Date/Time field to be required if a People/group field contain a value

I am working on a custom list inside sharepoint online classic UI. and inside the custom list i have 2 fields:- "ResponsibilityOwner" --> People/Group which allow single value. "...
0
votes
0answers
31 views

Unable to capture when a managed metadata column is changed inside my sharepoint new/edit list forms

I am working on a sharepoint online classic team site. and inside the classic team site i have 2 lists:- Responsibility List. Customer site List. Both of the above lists have the same managed ...
1
vote
1answer
31 views

Get users' Email and save it to a Text field on NewForm

I have multi value Person or Group field and a Multi text of Line field in my SHarePoint online site. On NewForm I want to fetch all the users' EMail and save it to Multi text field separated by ...
0
votes
1answer
22 views

SPServices.SPCascadeDropdowns is not working “XML Parsing Error: not well-formed”

I am working on a sharepoint online team site. and i want to define a Cascade drop down for main and sub categories. so i follow the steps mentioned in this Demo. Where in my case i created 3 lists ...
0
votes
2answers
22 views

Unable to get property '$4a' of undefined or null reference

I am trying to customize a SharePoint 2013 calendar. When tried with jQuery, getting the below error. Any help is appreciated. <script src="/sites/it-HongKong/Scripts/jquery-1.7.2.min.js">&...
0
votes
1answer
30 views

JS Cascade code not working for SPO document library edit form

I have a document library setup with content type enabled in SharePoint online. There are total 4 content types and out of those 4, for content type called 'Closing Documents', I want to perform ...
0
votes
0answers
14 views

Making a “Non-Required” field, set to required based on another Form Element selection

I have a drop down where if I select "Yes", two other form fields that are hidden via hidecolumn, will then show via showcolumn event. The drop down is a required field and so are the other two form ...
0
votes
2answers
23 views

Javscript to show form fields editable

I created two extra html form fields and when we fetch data using requestID then all form fields disabled including that fields i created so i want help that how i will show all forms fields disabled ...
0
votes
0answers
20 views

Restore of Web Parts in Page Edit Mode

I use the following code to minimize a number of summary link web parts on a SharePoint 2016 welcome page with web parts and it seems to do the expand/collapse work properly in view mode. However, in ...
0
votes
1answer
10 views

SharePoint field validation

Trying to validate if a "Tool" field in a sharepoint new item form equals one of 2 strings when user causes blur event. If it is either "abc" or "zzz", then I need to popup and alert. Not sure what ...
0
votes
1answer
12 views

Auto complete text box

I followed this link to auto complete. I am missing bunch of employee as I type. for example, I have a butler, jonathan but he is not showing up.
0
votes
1answer
15 views

Page to show “Modified By” and “Last Modified Date” of file in file library

I have a .csv file in a file library, i would like to know if is there way to display in some page when the .csv file was last modified, and who did. Does anybody know any code in to get this ...
1
vote
0answers
19 views

Expand the cell/grid width and height in the calendar

Kindly help me with this urgent task. I want to know how to increase the grid/cell size in the calendar. The current cell/grid/block are two small for my requirement. I want to expand them per day ...
1
vote
1answer
48 views

Export multiple lists into a single CSV file

I have a requirement to fetch 2 large lists and merge data into a single CSV file. Suppose Lists are as below : List A Column1 Data1 Data2 List B Column2 Data3 Data4 Then Data should be displayed ...
0
votes
2answers
37 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 ...
0
votes
2answers
52 views

PreSaveItem() is not getting the updated values from the list edit form

I am working on a team site inside sharepoint 2013. and inside my custom list i added this javascript to prevent closing an item unless the user enter a multi-line text field named "Analysis":- <...
0
votes
0answers
13 views
0
votes
1answer
30 views

How Add Tab ability to Content Editor Web Part?

Hope you're well; I would like to know how I can add tabs in Content Editor web part in SharePoint Online. What is best solution to this. kind regards, Anees
0
votes
0answers
26 views

SharePoint List Accordion with Search

I am kind of new to JavaScript. However with other references I was able to call a list via Rest API and convert it into an accordion. Now, I need to be able to search and highlight the terms being ...
1
vote
1answer
22 views

How to restrict certain users to see the attachments attached with a sp list item

I am working with SharePoint 2013 on prem and I have a custom list created where users store certain info relevant to their contracts. I have not implemented permissions for this list yet, but it will ...
0
votes
0answers
12 views

Unable to append to modal using PnP.js and Ajax

I'm unable to append a certain div to a modal when pulling in data using pnp and JavaScript. The whole process explained: Function DomyApiCalls - WORKS (Pulls in all the boxes with the titles) ...
2
votes
1answer
41 views

Using jQuery plugins in SPFx web part

I'm looking for a reliable way to implement jQuery plugins into my SPFx web part (targeting SharePoint 2016 on-prem). I have jQuery installed with npm install and imported with import * as jQuery from ...
1
vote
0answers
30 views

Yahoo Weather API stopped working in JQuery [closed]

I'm using the Yahoo API code to retrieve the weather information since last 5-6 years but it is stopped working since last couple of months automatically var URL ='https://query.yahooapis.com/v1/...
1
vote
1answer
16 views

implementing sharepoint permissions by content type

I am working with SharePoint server 2013 on premises. Regarding one of the implementations, I am using an OOTB custom list. For permissions, I have it setup by SharePoint groups: Finance Members, HR ...
0
votes
0answers
21 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
1answer
75 views

Force template download instead of opening file using code

I have a Templates document library, where the piece of code below has happily forcing the download of a template document instead of the file been opened. However, it has stopped working. The ...
2
votes
0answers
18 views

Custom validation for people editor control

How to add custom validation for in asp.net if the user adds more than one username an error message must appear that he can only add one user. Thanks Regard.
2
votes
1answer
49 views

Update Excel/CSV file from List

I have a requirement in which suppose if someone adds an item in List, item details should be automatically updated to Excel/Csv file which has same column names as list. This Excel/csv file can be ...
0
votes
0answers
29 views

SharePoint how to upload file using javascript

I just want to use SharePoint to upload files to it and downloading from it without getting into any add-in or whatsoever business(just for storage). But to test JavaScript code from the official ...
1
vote
1answer
25 views

How to sort after “group by” in a SharePoint Online list

I have created a list and populated it with some data. I have grouped it with ID column. So now it is appearing with count as below : Numbers in () are the count of times with same ID. I want it to ...
1
vote
0answers
25 views

Jquery to get SharePoint List data

I am brand new to using JavaScript/Jquery, but I am attempting to make an HTML Index file which will be saved onto my SharePoint that neatly displays items from a Sharepoint list on the page... Can ...
2
votes
1answer
30 views

SP2013 Custom List - Case Sensitive Filter with JQuery

Good Morning Friends; I am using a JQuery script to act as a filter on a custom list. The text in my custom list is all Uppercase. Currently the filter is case sensitive. I tried using text-...
0
votes
0answers
7 views

“Shaded” Custom List View Class?

Good Afternoon; I am using JQuery to filter a Contact List. The code I am using is attached below. This code works with the default view, however does not work with Shaded View. Does anyone know ...
1
vote
2answers
64 views

JQuery Preloader on SharePoint 2013

I am having trouble getting a simple jQuery preloader to work. I've tried a couple different methods, I've also moved the function around in the code. Can anyone shed some light on why this isn't ...
1
vote
0answers
19 views

Project Online Intercept Ribbon Save Button Action

Need to intercept Project Online Save Button. To perform some action before Project Server update starts. Once my action is successful, I would like original code of Project Server Save to take over. ...
0
votes
0answers
12 views

Download any type of document and Print it on button Click

I am trying to download and print any type of document file on download button click. I have SharePoint Custom Form on that form I have one button and file URL at back end. Once the end user click the ...
0
votes
1answer
21 views

Call JavaScript dynamically on Visual Web Part

I currently have a visual web part that displays clocks from different time zones, using the jClocksGMT library as provided here in the .ascx file. However, instead of hardcoding the timezones I want ...
1
vote
1answer
32 views

Rest API to display SharePoint list items on Webpage

I'm using the Rest API to pull in data from a SharePoint list and display the results on a webpage. How would I be able to target those two array items? All I'm receiving back in [object Object] [ ...
3
votes
1answer
38 views

SP .trim() and jQuery.trim() are fighting

I'm using a jQuery plugin Datatables to create my own views of information retrieved from a list and it is mostly working. Datatables is built on top of jQuery and relies on a lot of its features. ...
0
votes
1answer
42 views

Adding a Dynamic calculated field in SharePoint Edit Form View

I am looking to add a dynamic field in my Edit Form since calculated fields do not show on the Edit View mode. Using the Hillbilly format, I created a table... HTML <tr> &...
3
votes
1answer
72 views

SharePoint List to HTML Table to TableExport.js

I'm using the TableExport.js API and PNP.js to pull data from a SharePoint list and display it on a Webpage and then have the options to export it into a Excel/CSV/Txt file. Homepage: Shows the ...
0
votes
1answer
27 views

Count number of attachments in sharepoint 2010 list using jquery

I would like a piece of that would give number of attachments in a sharepoint list using jQuery. my current code gives a count of one regardless of how many I have. Please help. See my code below: ...
0
votes
0answers
53 views

JQuery - SharePoint List after save

I'm hiding certain fields on sharepoint list based on a dropdown value using jquery. if the value in the dropdown is "No" I hide certain fields, otherwise show them. Upon save the values are saved but ...
1
vote
2answers
36 views

O365, I have a Column Named 'Status' to show Green/Red circle but I am struggling

This is from a List and on List setting there are two Columns that involves the problem I am facing. Status (absolute name = ColorStatus) NewCol2 Users will enter in either 0 or 1 in NewCol2 field ...
1
vote
2answers
27 views

Cannot render HillbillyCascade on SPO365 Classic

I am using SPO365 in Classic Mode to render cascading dropdowns on a document library edit form. I am trying to use Hillbilly Cascade to achieve this functionality, but for some reason I keep getting ...
0
votes
2answers
40 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
0answers
30 views

How to hide/show view columns in SharePoint list view

I am playing with Document Set in SharePoint where document set's documents takes default view. However, I dont want to show few columns (e.g. 'Status', 'Salary' etc.) in default view but want to ...
0
votes
2answers
54 views

Passing query string to Survey list newform.aspx

Is it possible to send query string to newform.aspx of the survey form so it's pre-populated? (I am using SP 2010) The question in survey list is created is ServiceTicketNumber and then renamed the ...
0
votes
1answer
40 views

How to set the People picker column to current user by leveraging JS/JQ (not spservices)

For one of the implementations, I am using a basic SharePoint list form to add entries in a list, there is a workflow attached to it as well. On NewForm.aspx, I have a column called 'Requester' (...