Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [jquery]

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

1
vote
0answers
8 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
11 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
18 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
20 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
32 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
31 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
45 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
20 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
49 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
31 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
26 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
28 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
23 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
32 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
29 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' (...
1
vote
2answers
35 views

How to embed remote/dynamic JS in a page?

I have several pages and instead of including my JavaScript in each page and then updating/amending the script in each page which is time-consuming, I just want each page to pull the script from a ...
1
vote
0answers
25 views

Me Filter on Multiple Selection Lookup Column

I have found plenty of information about filtering lookup columns (title: Employee)during searches but I haven't located something that said using [Me] filter. I created a lookup column that has ...
2
votes
1answer
33 views

“Select All” functionality in Choice column

In SPO, I have a multi-select choice (check box column)column named "Geography" which lists different cities. I also added a choice to the "Geography" column named "Select All", when the value "...
1
vote
1answer
65 views

Sharepoint Multiselect Checkbox on edit form not showing/hiding Bootstrap element on page load

I have a multiselect checkbox with the value "Eric". When "Eric" is checked, it should show/hide a corresponding bootstrap element. The code is dynamic and works properly EXCEPT when the form is ...
1
vote
1answer
22 views

Using JavaScript and DOM manipulation to create Cascading Drop Down but rendering incorrectly

I have a simple list that has two drop downs. I am using JavaScript to create a cascading drop down functionality. A reference to my JavaScript file is placed in a content editor webpart of the list ...
1
vote
1answer
36 views

How to Read SP list into javascript - SPServices.SPGetListItemsJson returns key value pairs which do not belong to dataset

Environment: SharePoint 2010 jquery-1.12.3.min jquery.SPServices-2014.02.min Trying to use SPSerivces method to read a SP list into javascript. When reviewing the final output I have the ...
1
vote
1answer
34 views

Error reading syndication item: 'Data at the root level is invalid. Line 1, position 1.'

First time playing in this environment: Sharepoint 2010. I have access to very limited tools: browser, notepad and the Internets. Feeling a bit rusty, haven't programmed in a while and I'm having a ...
1
vote
1answer
33 views

Remove special characters from string using jquery [closed]

How to remove special characters from string. If user provided any special character from the below set of characters that should be removed: | \ " ' / [ ] : < > + = , ; ? * @ I tried regex. ...
1
vote
1answer
28 views

People picker get value in form JQuery SP 2013

How is get value People Picker JQuery SP 2013? Isn't work my code (( function _spBodyOnLoad(){ var pickerPeople = SPClientPeoplePicker.SPClientPeoplePickerDict['User'].GetAllUserInfo(); if (...
0
votes
1answer
22 views

Syntax Error with ExecuteOrDelayUntilScriptLoaded(myF, “sp.js”);

I've a script referenced in List's view like : <JSLink>~/retrieveAlarm.js</JSLink> The first lines of the script show up an syntax error: $(document).ready(function() { ...
1
vote
2answers
99 views

How to display SharePoint list data into Editable Grid? [closed]

I want to display SharePoint online list data into Grid-view using J query. Grid-view Should Contains Edit and Delete Hyper link in each row. If i click Edit Popup should Open and it should auto ...
1
vote
1answer
40 views

JQuery / CAML Undefined Error

I found some code on line, see below, and changed it to meet my needs but when I run it I get: Due Date undefined This is the only value in the list, but it should look like: Due Date 01/31/2019 ...
1
vote
1answer
35 views

Does one script override another script in sharepoint 2013?

I have two jquery script. when one script works, the other one does not function and vice versa. Intially, I thought it is because both scripts had same function name etc. I changed the variable name ...
0
votes
1answer
39 views

Floating button to submit new list item

I am trying to find information on creating a button that I can have "float" at the bottom right or left of a SharePoint page that when clicked will open a dialog box for a new list item to be saved. ...
0
votes
1answer
90 views

Adding Item to SharePoint list using Jquery

I am trying to create a button on SharePoint online classic page which will submit to a list. From there a flow will run. Just a question I have found an example how this can execute. A few ...
0
votes
2answers
66 views

Hide “Enhanced Rich Text” field on DispForm if it is empty

I'm working on the customization of the DispForm and I need to check if the "Enhanced Rich Text" field is empty -> hide, if not empty -> show (column in the DispForm). I don't have a problem with ...
0
votes
1answer
22 views

User Custom Action executed twice, second time wipes the entire javascript scope?

I'm extremely puzzled by this one and I don't understand if it's a SharePoint issue or a javascript issue. I've used this flow many times and it's the first time that I observe this behaviour. Here ...
1
vote
1answer
29 views

SharePoint Expandable Headers Solution for Pages - How to make it stay expanded in edit mode

I'm using the below jQuery code I found on the net for a SharePoint page that expands an accordion. It is working well, but I'm trying to make it stay expanded when in Edit mode so it is easier for ...
0
votes
1answer
20 views

How to get value of an event in Calendar

I'm trying to bring the value(Title) of an event to another form in SharePoint. So it's basically a register form. When someone clicks an event, you can click a button "Register" and it brings you to ...
1
vote
1answer
23 views

Adding an image with anchor tag just above the field in a newform.aspx

I am creating a newform.aspx page for cutsom SPList in SPO site. I want to add an image with dynamic text thats embedded within anchor tag, <tr> or <td>. This image with the dynamic text ...
1
vote
1answer
34 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
1answer
45 views

perform custom validation on custom html form against sharepoint list

How to write the custom validation using jQuery in custom HTML form? I have created a custom html form which has fields dropdown, single line of text, people picker,date, etc. and custom submit ...
0
votes
3answers
85 views

Add an ID attribute to TD in a table using Jquery

I want to add an ID attribute to a td elemnt in a table genrated by sharepoint. I tried like this but it is not seeting the same. Attached is the DOM object of my sharepoint form $('ms-formtable ...
0
votes
1answer
59 views

Insert Row in sharepoint list form newform using jquery

How to add a tr in between rows in share point Newform using jquery? Attached is the DOM of my sharepoint form. . I tried like this but it inserts inside the inner table of the form var attachHTML='&...
0
votes
1answer
37 views

Adding a new control in New/Edit form using CSR display templates

I am planning to attach a attachment control in my newform and edit form using CSR display templates. i was able to add the control in the page but it is repeating (screenshot for the same). How can i ...
0
votes
2answers
65 views

Attachment Control in Newform and Edit form of a list Using Jquery

Has any one tried inserting Attachment control in Newform and Display form using Jquery with out going for Custom forms from Designer. I know we can add an attachment control through designer. When i ...
0
votes
1answer
22 views

Remove Span Tag on adding a text

On dropdown change event i am making a column mandatory. if you see the below pic for the first time when TypeofRequest="508web" what format should be return as becomes mandatory. The below code works ...
0
votes
1answer
27 views

Fetch the text value of Nobr based on child td

I wan't to fetch the text of nobr based on child td. MY HTML is below in screen shot I tried like this but it gives me empty value $("[id^='FormatShouldReturnas']").parent('td nobr').text();
1
vote
3answers
88 views

Get Specific <td> tag in Sharepoint List New Form jquery/javascript

I need to add a span element to a specific in Sharepoint List New Form.But, how to get that specific td element using jquery ot javascript. Anyone can help me in this? beside to single line text ...
-1
votes
1answer
41 views

how to alert message in sessinStorage

I have a button on my update page. This button redirects and refreshes the page after sending sms I want that; If the user pushes the button and sends sms 1 time, do not press the same button 2 ...
-1
votes
0answers
25 views

Printing SharePoint online web parts

I am using the following to print all the web parts on a SharePoint online webpart page and it is working however I am missing my headers. I have customized my headers with CSS to show background ...
0
votes
2answers
50 views

jQuery .combobox() breaks SPCascadeDropdowns relationship

I've implemented SPCascadeDropdowns functionality on SharePoint Online into my new item form. That's ok and it works. $(document).ready(function(){ $().SPServices.SPCascadeDropdowns({ ...
0
votes
1answer
25 views

sharepoint dropdown change event based on TD ID

in My custom form i have my HTMl like this <td width="400px" valign="top" class="ms-formbody" id="Type_x0020_of_x0020_Request"><span dir="none"><select name="ctl00$ctl33$...
-1
votes
0answers
21 views

SharePoint 2013: populate DateField with Hour and Minutes

On a new form, I need to be able to auto-populate the date, as well as the hours and minutes fields. I DO NOT want Now() b/c I want the initial date to be fixed. The following code fills the date but ...
0
votes
1answer
74 views

Is there a way you can fetch SharePoint's more than 5000 items using datatable?

Is there a way you can fetch SharePoint's more than 5000 items using datatable Jquery recursively in REST API? I also wanted to show the next set of data (next 1000 items) after clicking a button.