Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
487 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 ...
0
votes
1answer
39 views

Can jQuery Datatables in a search results web part return more than 50 documents?

I've hit a wall on figuring out how to remedy this issue. Im currently developing a search center page with jQuery datatables and control and item display templates. The search results webpart is ...
0
votes
0answers
28 views

custom form - hide field based on other field value

i used next code in my custom form of document library `<script src="http://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript&quot;"></script><script type="text/...
0
votes
2answers
752 views

SharePoint Context and Caml query is not working

Here is my code.. var CmalQuery=""; var fieldName=""; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); fn(); }); ...
0
votes
1answer
38 views

How to set description and link for hyperlink field on NewForm with jquery?

I'm not seeing a clear answer on this after browsing through other answers. Closest I found was this, but doesn't work after fiddling with it for a while. I already have some jquery filling in ...
0
votes
2answers
59 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
133 views

Uncaught TypeError: Cannot read property 'wpq' of null

Uncaught TypeError: Cannot read property 'wpq' of null at NewOrEditV4Core (core.debug.js?rev=EW80nTQ9XTlOZU%2FEGCD2cg%3D%3DTAG0:4374) at _NewItem2 (core.debug.js?rev=EW80nTQ9XTlOZU%...
0
votes
1answer
44 views

Javascript to auto fill data in new form from the previous entry

I want to auto fill the entries in form fields from previous entry in the sharepoint list What I done is I created a new request from my custom form page and submit after that the data added in ...
2
votes
4answers
2k views

color coding in a list view is lost when any of the columns are arranged by clicking on the column header

I have some JavaScript that will colour row in a SharePoint list View web part depending on values in certain column. This part works fine and the rows are coloured correctly upon page load. The issue ...
0
votes
4answers
1k views

SharePoint Online List Accordion

I am needing to create an accordion in SharePoint web part for online, however I am quiet new to JS & Jquery. Is there an example of an accordion that I can use to help this? The items must be ...
2
votes
3answers
6k 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
1answer
2k views

People Picker Validation

I want to perform client side validation on people picker where in if the people picker is empty just to show an alert saying it is required. I am aware of java script and j query so if you guys can ...
0
votes
1answer
35 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
27 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
1answer
107 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
0answers
47 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
40 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
2answers
113 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">&...
4
votes
1answer
217 views

SharePoint Online Remote authentication using JSOM script

Could anyone share script to authenticate SharePoint Online using jQuery/ajax method. I can see some forum, using POSTMAN tool to authenticate. But I want to do through script not using any tool. ...
3
votes
3answers
886 views

How to show/hide columns based on value of SharePoint choice check box

I am working with SharePoint online and in one of the lists, I am using a choice check box column called 'Vehicle Type' with following choices: Personal Vehicle, Company Vehicle. I am looking to do a ...
0
votes
2answers
29 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
17 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 ...
3
votes
3answers
2k views

How to HIDE selected sharepoint list fields/Columns using Javascript or Jquery on VIEW page?

Please Help! I have a custom list with 3 columns, "Slno","Language","Status".Status is a choice field with choices "Ongoing" and "Terminated". The Color of the "Language" column changes based on the "...
0
votes
1answer
13 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
0answers
28 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
108 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 ...
0
votes
1answer
12 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
86 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
4answers
125 views

conditonal formatting working on lists and not libraries?

Any reason why this code works on a list in a page and not on the list of pages (Pages library - PAGES) displayed on a page? The 'cell' (ms-vb2) is the same in both cases. <script src="https://...
1
vote
0answers
30 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
2answers
870 views

Build Accordion on page sp2013

I am currently building according on the page base on the heading "h2". The accordion is working but i want to achieve that the other heading is collapse while the one that click is only expand. The ...
1
vote
1answer
136 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 ...
1
vote
1answer
902 views

How to insert items to list using jquery?

Hi I am doing some work on sharepoint list using jquery. Sharepoint is new environment for me. I have worked in jquery. I am having problem in hitting to List using Ajax. My url will display url is ...
1
vote
2answers
373 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":- <...
4
votes
5answers
2k views

Jquery - get value from checkbox

Ok I realise this might not be a pure SharePoint question, but I have tried several "normal" solutions for this without any succesfull outcome - so I'm kinda hoping there some SharePoint "magic" going ...
0
votes
1answer
152 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
3
votes
5answers
2k views

How to make Grouped View work with the $(document).ready event?

I have a list that is grouped by date: Normally the list is collapsed, when I open one date, items under it are shown, like: [+] 2010-01-01 [+] 2010-01-02 [-] 2010-01-03 item1 item2 ... I ...
0
votes
0answers
71 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
50 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 ...
2
votes
1answer
176 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 ...
0
votes
0answers
43 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) ...
1
vote
0answers
64 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
26 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
237 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) <...
2
votes
1answer
217 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 ...
2
votes
0answers
38 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.
1
vote
1answer
875 views

Sharepoint 2010: Search list without a multiple filter, jQuery

I need to do a customized search for SharePoint. It needs to search in all the columns and rows of the list without having to select the column, in other words it cannot have filter. I cannot edit the ...
0
votes
1answer
1k views

Open SharePoint 2013 list item on mouseover using javascript

In my SharePoint 2013 list , I want to open the list item in a modal dialog box on mouseover . How can i use javascript to achieve this . I am at a very basic level in javascript , so please i need a ...
1
vote
2answers
1k views

PreSave Action validation for Yes/No Checkbox Column in a list new form

I have a requirement that if the yes/no check box column is checked then user dont need to fill the document name if it is not checked user should fill the document name so for that i using this ...