Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
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
51 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
17 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
45 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 ...
2
votes
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
35 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 ...
3
votes
3answers
3k views

Getting Calendar items on Office 365 using REST API

I am having trouble with a REST call using jQuery on Office 365 and was wondering if you guys have ever experienced something similar and could give me some hints? What I am trying to achieve is to ...
0
votes
1answer
17 views

When Calling a JQuery via ID element, it shows twice

When I am calling a JQuery using the ID element in the Div tag, its showing up twice. Is there something I need to do to stop the double showing? Below is my code and under that is the outcome (...
0
votes
1answer
4k views

How to create autocomplete field from normal textbox and a list in Sharepoint 2013?

I found a method how to add an autocomplete function to a simple textbox by using the following code: <script language="javascript" src="/JS/jquery-1.6.2.min.js" type="text/javascript"></...
0
votes
1answer
37 views

How to make foreach function in jquery asynchronous?

I am trying to make each function of jquery asynchronous...In sharepoint framework, I am trying to update each line item of HTML table to sharepoint list using PnP JS Core library. For this I am ...
0
votes
1answer
2k views

How can I add all contents of a dynamic html table to a SharePoint list?

So my table is 1 row where rows can be added, although it does not have unique id's for each row. I'd imagine this is the issue. $('#submitdata').click(function(){ var table = document....
0
votes
1answer
2k views

Updating sharepoint list items with batch pnp, in bad request

I've used this guide to create my batch and update the items. var list = pnp.sp.web.lists.getByTitle("Categories"); list.getListItemEntityTypeFullName().then(entityTypeFullName => { var batch =...
1
vote
2answers
4k views

Populate a choice field when another choice field changes

I have two choice fields. When choice field A is equal to Commercial then choice field B should change to Staged. I've found this hide function and was trying to change it to fit my needs but I'm ...
0
votes
1answer
39 views

Not able retrieve web or list using Javascript

I have added the below code, But I am not able to retrieve the web or site. And added this script in Content editor web part of list. Can you please let me know where did I go wrong? $(document)....
6
votes
1answer
2k views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
0
votes
0answers
13 views

Enable Asynchronous Automatic Refresh removes js to highlight backgound colors

When SharePoint page refreshes the custom highlight fields work, when the webpart is refreshed highlight disappears, if I refresh the page then I can see highlighted background again,the page needs ...
0
votes
2answers
818 views

Listdata.svc and $expand

Normally I would use jQuery to get data from listdata.svc like this: $.getJSON(listUrl, function (data) { $.each(data.d.results, function (i, result) { A ...
1
vote
2answers
2k views

Bind the DateTimeField field with Today's date using SPServices and jQuery

How to bind the DateTimeField field with today's date using SPServices and jQuery? I can't use the default Today to set the column in the Sharepoint UI to use Today's Date as the default value in my ...
1
vote
2answers
921 views

SharePoint 2013 Jquery Show/Hide Fields based on DatePicker value

In a SharePoint edit form, I know that you can show/hide fields based on a drop down field value (SPUtility Show Hide Field Based on Value from another field Custom Form) but I wanted to show/hide ...
0
votes
1answer
734 views

validating people picker; allow submit only if all entries are resolved as valid

In people picker when I give an invalid id and valid id and click on submit button, both are resolved and list get updated with valid id. What I need is if I give no values in people picker and ...
0
votes
1answer
733 views

Site Assets Javascript file will not update

So I have the weirdest problem I have seen in SharePoint yet. So I am trying to practice using javascript and I can't figure out what is wrong with my methodology. For a background, I am trying to ...
5
votes
2answers
5k views

How can I populate a dropdown with a SP list?

I have a SP List with data that I need to be in a dropdown list. I also need these to have specific classes. I'm trying something like the following but having no luck: $().SPServices({ ...
0
votes
1answer
1k views

show hide field based on radio button selection in new form

I have a field "Manager" (radio button with value yes and no) and another field country(dropdpwn) If I select manager = yes then only country should display else it should be hidden when user go to ...
1
vote
1answer
24 views

Sharepoint 2013-File getting downloaded before ModalDialog opens

I am trying to create a modal dialog on click of a hyperlink file column(SharePoint 2013).I am able to open the Modal dialog in an Iframe But it's happening only after the file download. I don't want ...
0
votes
1answer
928 views

Change column width in SharePoint 2013 newform, editform, and dispform

I have found many people asking about changing the column width on a list view, but couldn't find much of anything on changing the column width on a form. Essentially, for longer questions, the "title"...
1
vote
1answer
789 views

How can I use JQuery to conditionally require the people picker field on edit form?

Environment: SharePoint 2013 foundation I'd like to make/validate the People Picker field required conditionally in the edit form of a task list. If the task status is changed to Completed, I want ...
1
vote
1answer
789 views

$orderby not working with lookup column Id

I want to sort order my REST results data with a lookup column's Id in my SharePoint list. I tried using $orderby in my REST query, but got no luck. can anyone of you help me out with this ? ...
0
votes
0answers
15 views

Chosen Single Selected Search Box in SharePoint Online

What do I do if I want to make Choose Single Selected in SharePoint Online?? Because, some time ago I made the same case as now. but the script doesn't work properly. Follow my Script: But this my ...
0
votes
1answer
712 views

Highlight upcoming/overdue calculated column dates in a training list

I have a list to track customer training. Two of the trainig items are recurring; Ethics - annual and GPC Refresher - biannual (every two years). The due dates for each training requirement were ...
0
votes
2answers
755 views

jQuery get div#contentRow height

I try to show and hide a custom footer on a SharePoint 2013, depending if we reach the bottom of the page or not. To do this, I need to calculate the total height of the div with the id contentRow. ...
0
votes
1answer
1k views

ajax filter and select

I am wanting to run an ajax command to return just one column from one row. The first query returns all rows, but just with the Title column. The second query returns just one row, but with all ...
0
votes
1answer
1k views

Replace Source query string value without redirecting

is there some way to replace the Source query string parameter in SharePoint without redirecting the user? All the examples I find use location.href="new url"; which causes the page to immediately ...
0
votes
0answers
21 views

Dynamically Updating SharePoint Page based on List Dropdown

I have some SharePoint Wiki Pages, and these pages contains few steps for a process. Based on the environment (Dev/QA/Prod) These process have a change in system names, while the steps remain the same....

1
2
3 4 5
41