Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
778 views

Javascript injection in office 365 site.

I am doing a js injection using custom action. I am loading jquery first and then my custom js. I have applied sequence in custom action 0 for jquery and 100 fro my custom javascript. My problem is ...
1
vote
1answer
24 views

How do we call Power Automate Flow using Javascript button click?

we have a requirement of triggering the power automate flow using javascript button, we are still using the classic sharepoint site, we need to pass an item id to the power automate if they select an ...
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 ...
1
vote
1answer
1k views

Unable to get SPField named 'FieldName'

I keep getting an error every time I am trying to insert some jquery/sputility code to get a SharePoint form field to be hidden if certain conditions are met. The error is "Unable to get SPField named ...
0
votes
1answer
1k views

editform jquery value returns undefined

I've added the following code into a CEWP part at the top of the Editform.aspx page (using SharePoint 2013) <html> <script src="https://oursites/jquery-1.11.3.js" type="text/javascript">&...
0
votes
0answers
22 views

Change date and time entered by user to different timezone in React Sharepoint SPFx

I am trying to change date entered by user to different timezone. Right now it only for default value. But I want to change the date which will be entered by user in React Sharepoint Framework SPFx &...
0
votes
2answers
19 views

Sharepoint:formField Javascript

We have a custom SharePointFormField for your DisplayForm and DOM Looks like this. <div class="FormRow"> <div class="FieldLabel"> <a name="SPBookmark_FileID&...
0
votes
1answer
943 views

Reset sharepoint lookup with None option using jquery

How to reset the lookup value to None in Editform.aspx page using Jquery. I want to empty the lookup dropdown if text box does not have any value . Here is the code which i have tried.I was able to ...
12
votes
4answers
3k views

Using jQuery $(document).ready() in JavaScript Object Model

I've been using with great success the $(document).ready(function() { FunctionName(); }); in a SharePoint WebPart code snippet to fire off COSM CAML queries using JavaScript to build various ...
0
votes
1answer
998 views

Getting error “Object doesn't support property or method 'commitPopup'” when saving a new alert in SP 2010

In my SP 2010 environment, I have a html page, that has an iframe, and the iframe is the page where you create a new alert for a list. In the html page, I dynamically create the iframe and then insert ...
0
votes
2answers
2k 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 ...
1
vote
1answer
873 views

DispForm.aspx get value with :contains not working

I want to get a value from a field on the DispForm with jS / jQuery. I tried the following Code: var question = $('h3:contains("Frage")').closest('td').next('td').text(); However it doesn't work. ...
1
vote
1answer
235 views

Save as draft functionality on SharePoint online list form

On SharePoint list, normal we have Save and Cancel option when user fill new form. User want one more button "Save as draft". So user can fill form with some data and then after user need to fill data ...
2
votes
1answer
1k views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
0
votes
1answer
1k views

Group by field using jQuery

Say I didn't want to use the Group By option in an out of the box view to group my list by a certain field. Is there a way to achieve this using jQuery, JavaScript or something other front-end code?
1
vote
3answers
1k views

How to Add a tooltip in Radio Buttons when checked in newForm.aspx page

I have custom list with a field type of radio buttons with 4 choices. I want to be able to show a box on right hand side when each radio button is checked .How do i do that? So far i was able to ...
3
votes
2answers
2k views

How to restrict the number of lines to show using jquery or css?

i have created simple Custom webpart. It looks like in that web part, Description display multiple line . i have used html P tag to display Description value <p>​Loream Ipsum​Loream Ipsum​...
0
votes
1answer
1k views

Hide and display things if user member of group

i have group, were i have some users, if the current logged in user is a member of my group then display that, if the user is not a member of the group then dont display. Right now it first says the ...
0
votes
0answers
21 views

How to use Anchor tag in SharePoint Custom Navigation

I have a custom master page and I need one of the nav items to link to a section on the same page. <section class="mt-3 pt-4 pb-5 grey lighten-4" id="cyberHeroes"> &...
6
votes
4answers
18k views

In 2013 using JavaScript how do you empty a people picker field?

In SharePoint 2013, I want to delete all existing values in a people picker field using javascript or jquery. Simply using .removeAttr('value') or .val("") does not work.
0
votes
0answers
18 views

SharePoint 2013 custom JS not working in IE11 list view

I seem to have some browser compatibility issue but not sure what is causing the issue. I wrote my code using Chrome and buttons, Javascript, etc. runs good. Everything displays as it should. I'm ...
0
votes
1answer
25 views

AJAX POST Call to More Than One SharePoint List

I have been working on a project for quite some time now. I have found this post somewhat useful, but am unsure if it is correct or not for my utilization. Functionality: Read in SharePoint list ...
0
votes
1answer
17 views

AJAX POST Request to SharePoint List from HTML Form

I have been working on a project for quite some time now. Functionality: Read in SharePoint list items from 8 different subsites with a GET request. Populate those items in an orderly(grouped) ...
1
vote
1answer
1k views

disable people picker 2010

I am using following "code" to disable people picker in custom edit form: $("div[id$='_UserField_upLevelDiv']").attr("contentEditable",false);//Disabling People picker $("span[id$='_UserField']")....
1
vote
1answer
857 views

How to adjust Textbox in New Form Item using JavaScript/JQuery

I'm new with SharePoint 2013 Development and I'm really enjoying it. But I did encounter a bump with creating new forms ins SharePoint Designer. I have a simple custom list and I need to have fields ...
0
votes
1answer
26 views

Can jQuery open SharePoint List Settings and make changes?

Can JQuery open SharePoint 2013 List Settings and make changes? Likewise, can JQuery add web parts or add CSS to a Script Editor Web Part or CEWP? If yes, where can I find information to do so? Thanks-...
3
votes
2answers
798 views

Content Query Webpart (CQWP) Pagination in SPO

I am trying to paginate a CQWP results set but I am struggling with XSLT. Is there an easy way to do it? Should I work directly on the ItemStyle.xsl? Should I use jQuery instead? I can't believe ...
0
votes
1answer
1k views

Change Excel web access dynamically using javascript

I have a page with a button and an Excel web part. When I click on the button I want to load another Excel file in that web part. Is it possible to do this? Please suggest some ideas on it.
0
votes
1answer
44 views

SharePoint 2013 SPServices UpdateListItems 403 FORBIDDEN

I have been using the SPServices UpdateListItems code below for several years on an on-premise SharePoint 2013 Enterprise server without any issue. However, we recently migrated to a new cloud-based ...
10
votes
3answers
2k views

Bootstrap in HTML Web Part

I got HTML/CSS from our Designer to implement on a Sharepoint 2010 page. This page is using bootstrap. I implemented it with HTML Web Part and also tried to split the web page layout and work ...
0
votes
2answers
1k views

How to copy data from one column to another in sharepoint 2010 using jquery

I need jquery code which can copy the data from one column(look up column) and populate into other column (single text line) in the same list in sharepoint 2010.
0
votes
1answer
16 views

SharePoint List Drop Down only to display choices not already in SharePoint list

My SharePoint list is connected to Power Apps . I am trying to create a way to check out equipment by SN. I have placed the SNs in a Choices Column and put the SNs. This has allowed the user to see ...
0
votes
1answer
1k views

Set value to ClientPeoplePicker

I need to set value into a ClientPeoplePicker, my list save the user as a SPUserField, I already get the id from the list. Thanks and greetings
0
votes
0answers
11 views

CHange colum header(Display Name) in SharePoint List view

Added list view in a web part page and tried to change column header(column name) using below script but it didn't work out. Reason is column id is keep changing because of the sorting number. Can ...
1
vote
1answer
2k views

Clear multi-value lookup via Jquery SP 2013

I am trying to clear a multi value lookup field using javascript when an item is re-edited. I have tried all the following combinations without success $("input[id^='Test'").removeAttr(); $("input[...
0
votes
1answer
11 views

_x0020_ Not Working in AJAX

so I have 8 different SharePoint lists I am pulling from. And for aesthetic purposes I want to change the listname from something like "Program1" to "Program 1" as it doesn't ...
0
votes
0answers
14 views

HTML Form Doesn't Send Data through AJAX Post

I have a DataTable that uses AJAX to pull from 8 different SharePoint lists, and organizes them based on there Program attribute, then child row is organized by the Deliverable attribute, followed by ...
4
votes
1answer
3k views

Cannot find module 'jquery'

I am using this tutorial to try to load jquery into my SPF project. http://dev.office.com/sharepoint/docs/spfx/web-parts/basics/add-an-external-library I followed strictly tsd install jquery --save ...
0
votes
0answers
40 views

Sharepoint Preview pane View- Search functionality?

I have a SharePoint Document library that's using the Preview Pane view. As the preview Pane view looses the Document library Search functionality - Id'm trying to add this back in as a custom Control ...
6
votes
2answers
21k views

How can I create Ctrl-F Functionality from a search field?

I have a long page on SharePoint 2010 that needs to be searchable for keywords on that page. Apparently the target group is "unable/unwilling" to learn Ctrl-F so I was asked to create a permanent ...
0
votes
0answers
13 views

popUp in SharePoint using localstorage inconsistent behavior

The code below renders a pop-up once a day for every user that logs into the SharePoint site. It was used in our SharePoint 2010 site for years and worked perfectly. Recently, we migrated from 2010 ...
5
votes
3answers
2k views

Remember filter value using jquery and cookies

I am looking for a solution for the following problem: I have a large list that is related to a second list. The two list web parts are on one page, when you select an item in the first list, the ...
1
vote
2answers
2k views

Retrieve SP-List data cross domain via SPServices?

I am trying to retrieve data from a SharePoint List hosted in a different server/domain. We are still running SP 2010 but about to migrate to 2013. I am not sure if jQuery.SPServices and CORS are the ...
3
votes
1answer
2k views

Force PDF to open in new window/tab

I am using SharePoint Foundation 2010 and attempting to have my PDFs open in a new tab or window. I have been able to get this to work from document libraries by using jQuery. You can see this code ...
6
votes
2answers
4k views

set multiselect lookup column using jquery

I have a Multi select Look up column which as you all know is a control with two list boxes and "Add or Remove" Buttons. The user populates the right-hand side of the control with some values by ...
0
votes
3answers
32 views

Hide drop down value based on selection of another drop down

Please suggest if below works as i want to hide a drop down value based on other drop down value selection , but it is not working as expected. var dropdown1 = $(":input[title='Engagement Type']&...
0
votes
1answer
34 views

anchor tag href redirects to another without clicking the icon

I have made 2 tabs , in the second tab I have a datatable in which one column holds the anchor element... In the anchor element I have "href" attribute in which I have called another ...
1
vote
1answer
3k views

SharePoint Online (Office 365) - AutoResolve people picker with current user and detect change in people picker value

I am trying to implement a solution in SharePoint Online by customizing the NewForm.aspx page of a out of the box Calendar List using JavaScript with the following requirements: When page loads, a ...
2
votes
2answers
2k views

jquery plain multiline text value with CRLF characters

I have a Plain Text multi-line value on my SP2013 list. Text is entered into the box with Line Feed characters. When I use the jquery command in an attached JS program var Falerts = $("input[id$='...
2
votes
2answers
8k views

getEnumerator causing collection has not been initialized error inside of async call inside of a loop in a script editor web part

This is an issue I've been struggling with - What I am doing is using a script editor web part and when a user clicks the button, I check to see if a list exists inside of a loop (in this example, it ...

1
2 3 4 5
41