Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
144 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
117 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
52 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 ...
0
votes
2answers
105 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
791 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
2answers
395 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
184 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
607 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 ...
2
votes
1answer
263 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
243 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
53 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
367 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
132 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
399 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
50 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
39 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
1k 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
92 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
93 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
286 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 ...
0
votes
1answer
1k 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
280 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
71 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
557 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
46 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
45 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 ...
2
votes
1answer
816 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
112 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
2k 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
318 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
78 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
671 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
186 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
46 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
577 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
182 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
362 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
756 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
792 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
59 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
456 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
98 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
3k 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
30 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
262 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
753 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
16 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
1k 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
481 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?

1
3 4
5
6 7
40