Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

SPServices $().SPServices.SPFindPeoplePicker not working for required field

I am using SharePoint 2010 and SPServices to get values from people picker in custom field. It is working fine but not fetching data for required fields. can anyone help me with this. var PP = $()....
0
votes
1answer
18 views

Calendar Content Query on 3 lines

I have a design requirement based on a custom design created by a UX team to show the 3 most recent calendar entries on 3 separate div elements on a SharePoint 2016 Site Page. Each should only pull ...
1
vote
6answers
9k views

Filter list data using SPServices, CAML Query, and dropdown list

I'm trying to create a table using SPServices to fetch the data, and filter it using CAML Query and a drop down list. I would like to create three conditions: A. If no item from the list is selected, ...
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$='...
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 ...
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 ...
3
votes
1answer
1k 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 ...
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
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....
2
votes
1answer
69 views

SharePoint Online OOTB form access denied error

I have a SharePoint list form which has been customized using SharePoint Designer. I am using the script to populate logged in user details in the form. I have full control of the site and list. So ...
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
1answer
35 views

How do I insert a value in a radio button based choice column in a SharePoint 2013 list using REST API in JavaScript?

Here are the columns I have in the backend list. Here's how I am sending the data to the backend list through a POST request using AJAX. var item = { __metadata: { type: "SP.Data.ListNameListItem"...
2
votes
2answers
7k 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
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 ...
0
votes
1answer
1k 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
1answer
115 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 ...
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
1answer
644 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
0answers
21 views

CascadeDropdown doesn't work

I use SharePoint 2013, create 2 lists 'listA' and 'listB' with fields as below: listA has 2 fields: Department & departPOC Department: single line of text, unique departPOC: Person or ...
2
votes
3answers
2k views

Enhanced Rich Text Field removes my default text

Im trying to set default text using jquery on a mentioned field type. I can briefly see my text as I open a new form, but then it disappears. I tried various methods - .text() .html() .append() but i ...
0
votes
1answer
682 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
4k 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
2answers
809 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 ...
0
votes
1answer
42 views

Trying to POST to a SharePoint List: 'SP' is undefined ReferenceError: 'SP' is undefined

I am trying to write a JS function that sends a POST request to a SharePoint List to add new List items to that List. I have done this in the past using SP.ClientContext and would like to continue to ...
0
votes
0answers
23 views

Sharepoint online - Guided tours, feature tour, walk throughs

TLDR; Is there a way to create in-app walkthroughs/ guides tours/ feature tours using open source packages like intro.js, chardin.js, joyride, bootstrap, HopScotch, Crumble with Modern SharePoint ...
1
vote
1answer
49 views

How to show/hide web part

On a SharePoint page, I have two web parts: One web part displays root Documents folder and another web part on the side is just a text that provides some tips to users. But when a user clicks on any ...
1
vote
1answer
57k views

Get value from textboxes inside dynamic table using selector

I am creating one row every time im clicking on the btn Add row. In this row there is 3 textboxes and one lable(span) and one buttom. I want to reach by selector the value in the (input type:text) or ...
0
votes
1answer
935 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
31 views

Change List Web Part background color when any item in the list has a certain value for a particular field?

Here's my situation. I have a DispForm that has two Data View Web Parts at the top that are displaying a few related items from two other lists. What I've been trying to figure out for hours now is ...
0
votes
2answers
39 views

Customize SharePoint 2013 New Form

I am struggling with SharePoint and JQuery. I tried to add new HTML elements to a a SP 2013 New form. So I fired following command in the Chrome dev console: $("select[title='TEST']").closest("td")....
0
votes
2answers
85 views

Unable to set a People or Group field as Read-Only inside our edit form

I have a custom list inside sharepoint online site, and inside the list's Edit form i want to disable a People or Group field named "Project Manager" using jQuery, but i am not sure if this is ...
0
votes
0answers
31 views

SPO jQuery how to hide multiple columns

I want to hide multiple columns with all their rows followed by those columns (Comments,Test1,Test2,Test5) in my list based on a specific group permission. Here is a screenshot: I have a found a ...
0
votes
1answer
71 views

Query multiple sharepoint lists with big data

Our SharePoint 2016 site consists of 14 custom lists where each list has approximately 500 list items. We wanted a way to query all 14 lists by PR NO which is common in all lists. We were looking for ...
0
votes
1answer
26 views

Javascript/Jquery list search - search by column instead of everything

I have this function which filters a list from a Web Part on my SharePoint page which works great, the only feature I need now if possible is to search only a specified column for the value, as it's ...
1
vote
1answer
625 views

Javascript code to write JQGrid data to excelsheet? [closed]

I am working on JQGrid, I found one solution but it is writing whole JQGrid on excelsheet. But I only want JQGrid data on excelsheet. My JQGrid data consists of sharepoint list data. So can anybody ...
0
votes
1answer
25 views

Access popup window element JavaScript

I have written the following code to load a popup(List B NewForm.aspx) when a List A NewForm.aspx is submitted. The popup has a div. var dialogOptions = SP.UI.$create_DialogOptions(); dialogOptions....
0
votes
2answers
26 views

Trying to get an Excel document through ajax, running into async issues

I'm adding JavaScript to a SharePoint and I'm trying to write a function that gets an Excel document, or rather the data in it, from a library. I've already figured out how to do that, but the files ...
0
votes
1answer
23 views

Convert PDF content(with images) to the Inline HTML content

Is there any Javascript library or code available to convert pdf content(with images) to the HTML inline content. Any help would be appreciated, Thanks in advance
0
votes
0answers
58 views

Export Web Page to PDF with css using JavaScript / jQuery

I know that, I'm re-posting this similar question, but the solutions that I found on the internet is not fulfill my need. I need to Export a web page (SharePoint online custom page) to a PDF with ...
1
vote
0answers
23 views

Can I get the content of a Site Page and use it inside my SPFx Web part?

I have a webpart which I want to fill with the HTML of a SitePage.aspx. If the user fills the SitePage with a Title, 3 blocks of text and an image, I wish to be able to use that exact same content ...
0
votes
0answers
31 views

Javascript running in edit mode only (Sharepoint 2016)

On my Sharepoint 2016 page I have a list and a search function created via Script Editor that filters the list. I have this exact same code working on a Sharepoint 2013 page fine, but on this 2016 ...
0
votes
2answers
18 views

Remove value dropdown (multivalue) logic in JQuery

How to implement logic button "Remove" in JQuery to remove a value from dropdown (multivalue)?
3
votes
1answer
1k views

How can I set Structural Navigation to “Display only the navigation items below the current site” via JavaScript?

I currently have JavaScript that sets the navigation, however it currently sets it to: "Structural Navigation: Display the current site, the navigation items below the current site, and the current ...
0
votes
1answer
24 views

Error inserting data into SP list using REST API

I've never seen this error before and I've used REST API many times. I am in SharePoint Online so maybe it behaves differently. Whenever I insert and item into a list using REST, I get the ...
0
votes
0answers
52 views

How to disale Contextmenu or Right click event in iframe/embed using javascript/Jquery

I have loaded the PDF document in the .aspx page using iframe, How to disable the contextmenu/Right click event using javascript/jquery. Any help would be appreciated. Thank in Advance.
0
votes
0answers
14 views

Getting a document via ExcelRest: Request Entity Too Large

I'm currently attempting to get a file from my SharePoint library by making an AJAX query to ExcelRest. I'm able to return a document in this way, but when I attempt to get the document I need I get ...
1
vote
3answers
156 views

How to update an outer list with a “beforesave” event? UPDATED

My goal: I have a new form where the users can fill textboxes. The user click on the save button if finished. I check if the fields are valid or not. If valid, based on the textboxs I get records ...
0
votes
0answers
16 views

Limit the people picker control according to contact list of each subsite

We are using SP2016 on-premise. A custom people picker is setup according to MSDN article. The people picker control is working and we want to limit the picker selection according to a list (contract) ...
1
vote
1answer
34 views

How to return results from executeQueryAsync

I know this has been asked before here and I've viewed several similar questions, but I'm just not getting it and could use some assistance. I'm currently reading a file in SharePoint's library via an ...
0
votes
2answers
528 views

Column permission to edit the data for a specific SharePoint group

We have one list in SharePoint Online in which there are certain records. There is one column whose data should be visible to all users,but should not be edited by all the users, it should be enabled ...

1 2
3
4 5
40