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

Questions tagged [jquery]

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

1
vote
1answer
34 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 ...
0
votes
1answer
20 views

Jquery - Generate table out of json data [on hold]

I have json data in below format: [{"TeamName":"Team1","Year":"2016}, {"TeamName":"Team2","Year":"2018"}, {"TeamName":"Team1","Year":"2017"}, {"TeamName":"Team2","Year":"2016"}, {"TeamName":"Team3","...
1
vote
1answer
17 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
27 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
28 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
26 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
20 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
39 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 ...
0
votes
0answers
21 views

Auto email SharePoint Online list InfoPath form as pdf on Field status completed

Anyone know a way to export and auto email a SharePoint Online list's InfoPath form as pdf on Field "Status" completed? Trying to have the form sent out as an email attachment automatically on ...
1
vote
1answer
39 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
30 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
31 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
45 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
0answers
31 views

Can you have two different Jquery script on the same page?

I have two different jquery scripts. I have used the content editor to add these script to the same sharepoint webpart page. It seems like one script overrides the other. How can I have both of these ...
0
votes
2answers
41 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
18 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
18 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
28 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
41 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
44 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
32 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
36 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
39 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
61 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 ...
0
votes
0answers
19 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
39 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
18 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$...
0
votes
0answers
18 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
62 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.
3
votes
2answers
421 views

How to use jquery promise in JSOM

I have code like this (Default.aspx): <asp:Label id="LabelA" runat="server" Text="0"></asp:Label> <script type="text/javascript"> document.getElementById('LabelA').innerHTML = ...
0
votes
1answer
41 views

Display on another SharePoint-Site Content from a DIV located on any SharePoint Wiki Page [SharePoint 2013]

On any Wiki-Page I have created a DIV: <div id="content">This is the content which should be displayed on another site<br/></div> Now, I would like to display this DIV on the Wiki ...
0
votes
0answers
7 views

Implementing SharePoint site tour with pulgin or other JS framework?

How to implement site tour in SharePoint page, i have implement bootstraptour.js but autoscroll issue is there, Anyone have implement a simple site tour in SharePoint page. Kindly help.
0
votes
2answers
41 views

Get current user group name

I am trying to get current user group name when the member is added via Active Directory in SharePoint 2013 using Rest/jQuery. Any help is appreciated.
0
votes
2answers
84 views

No Masterpage/CSS Access. Need to programatically set up drop down menu on TOP Nav bar for Team Site w/o Publishing

First off, my limitations. I do not have access to the master page(s) or global css (either using SPD or not...). Nor do I have the ability to use managed or global navigation. This is a Team Site and ...
0
votes
0answers
18 views

EditForm with angularjs, jquery and REST API

I followed this link to customize my newForm.aspx for creating new list items: https://www.concurrency.com/blog/august-2016/custom-sharepoint-form-using-office-ui-fabric-and But I would like same ...
0
votes
3answers
227 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 ...
0
votes
1answer
23 views

Undefined error when capturing the time from SharePointList

I am trying to capture the time from SharePoint list using jquery, but it says Uncaught TypeError: $(...).closest is not a function when I try to store the hour field in a variable and then use it. I ...
1
vote
0answers
26 views

How can I remove the option of 'Save and Close' on the Survey sharepoint app?

As above from the question, would like to find out if I'm able to remove the option, 'Save and Close' in the Survey app form? Thank you!
0
votes
1answer
54 views

How to retrieve multiple checkbox values with jQuery

I'm struggling with this for a week now and I can't find an answer. I have a multiple checkbox in a Sharepoint form: R1 R2 R3 R4 R5 R6 I need to know when two or more checkboxes are checked. In ...
0
votes
1answer
7 views

SharePoint 2013 Document Library Calculated Column behavior on search

So... I have a calculated column for multi-lingual documents so that I can have the English and French titles usable in document library views. I turned on Document IDs and use the following code: =...
0
votes
3answers
126 views

Checking if a user is in one of the groups

this is the current script that i found online which checks if a user logged into SharePoint is part of a group. As you can see in the syntax below, it is used to check if the user is part of the ...
0
votes
2answers
46 views

SharePoint time field value using jQuery

I am trying to get the time selected from SharePoint list and store it one variable. I have attached an image for reference, Can anyone help me with this?
0
votes
2answers
33 views

I'm trying to get the values of the selected checkboxes in Sharepoint and store them in an array and pass it to POST request

I have tried the following code. I'm not sure where I'm going wrong. I have multiple checkboxes in my sharepoint form. Can somebody help me with this? $(function () { var checkedAttr = []; ...
1
vote
4answers
78 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://...