We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
238 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
46 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
31 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
872 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
65 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
66 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
167 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
696 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
181 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
53 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
241 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
27 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
36 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
472 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
89 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
1k 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
237 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
55 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
392 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
100 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
41 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
393 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
48 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
2answers
142 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
186 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
1answer
424 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
607 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
44 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
2answers
260 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
93 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
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 ...
0
votes
1answer
27 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
188 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
553 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
14 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: =...
1
vote
3answers
611 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
267 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
349 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
120 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
1answer
98 views

How to bind SP.PermissionKind Enumeration to a dropdown list using jquery

I need help as I have a requirement to get all permissions (PermissionKind Enumeration)and bind it to a drop-down. Also, I need help to know what are the different ways to bind Enumerator value using ...
0
votes
1answer
197 views

How to know if 'ms-CommandBar' component has been loaded using SPFX extensions

I would like to hide the above commandbar in all pages using javascript in spfx extensions(application customizer). I have tried the below code @override public onInit(): Promise<void> { ...
1
vote
1answer
46 views

Insert button after webpart

Rather than inserting several content or script editor, is there another way to insert this line of code after a certain webpart? I have 3 web parts I want to have a button underneath them. code to ...
0
votes
1answer
35 views

Color coding a single cell in list with jquery

based on this jquery that worked, how do I change it to color code a single cell instead of the whole row? I also need 3 colors <script type="text/javascript"> $(document).ready(function(){ ...
2
votes
5answers
326 views

SharePoint Online List Search is not working by using jQuery

I am trying to programmatically trigger a search using the "Find an Item" search box within SharePoint 2013 List Search Box. The plan is to insert text into the search box (an input control) using ...
0
votes
3answers
68 views

What is a better way of writing this code? (JQuery which displays x list form rows based on a number entered by the user).

I'm working with a SharePoint 2013 NewForm. The list it relates to contains fields to hold information about batch files that being submitted, 4 fields per file. (So if 2 files are being submitted, ...
0
votes
4answers
287 views

JQuery not working using select or ID in SharePoint 2013

I have the following code in a content editor web part and it doesn't seem to work on my SharePoint new form page. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">...
0
votes
2answers
74 views

how to tell js that a colum value is changed?

i'm trying to set an step progress bar inside an item, but i couldn't make it dinamicaly because i can't catch if the field value is changed. so, can someone tell me if i can call the function when ...
0
votes
2answers
1k views

jQuery.addClass working in Chrome but not IE11

I'm working with a "new item" form for a SharePoint survey. In Chrome, the following code shows an alertbox and then makes every other row darker. In IE 11, the following code shows an alertbox but ...
3
votes
3answers
834 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 ...
1
vote
0answers
33 views

Allow Only One User to Submit SP Form

I know this should be able to be possible but do not know where to start. I am working in sp13 and created a custom list. The custom list form I want users to be able to submit one form and not be ...