Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
33 views

How to pass sharepoint site name dynamically in below working code

I am using below code in SharePoint online. Function loadcompanies takes one argument as projectName and that is used to perform filtering of a list column, it works fine. Currently I am hard-coding ...
1
vote
1answer
41 views

SP2010: Run JavaScript function when a document is opened

I’ve a document library view where I have some JS code which should run when someone opens a document. I’ve wrapped my code inside a jQuery click method and I’m trying to target the Name column in the ...
0
votes
2answers
2k views

Populate textbox based on dropdown selection from a Sharepoint list

I have a SharePoint list called "Products" (containing 4 columns - Product, Manager, Approver, Status) I have a dropdown list that populates the 'Product' column of the 'Products' list. Say I select ...
1
vote
1answer
118 views

How to remove all handlers from dialog's close button?

When any user clicks the close (X) button of the list edit form, I want to prevent closing it and to show an additional submission dialog. For this purpose I tried to remove all event handlers from ...
3
votes
1answer
117 views

Change image and send filter to datatable on click, via SharePoint jslink

I am using the DataTables jQuery plug-in to drive custom formatting, filtering, and searching on a SharePoint list. The list is an agenda for a conference, with dates, topics, rooms, session types, ...
5
votes
3answers
551 views

Responsive content to list view width in SharePoint 2013

When I change the width of a SharePoint list to a certain amount of Pixels, I have the problem that some content of the list gets cut off on the right side - see the following Screenshot: Is there ...
0
votes
0answers
155 views

How can I read excel document from Document library in SharePoint 2007 using JavaScript?

I want to read the contents of excel file stored in document library in SharePoint 2007. SP2007 does not support Sandbox solution and I can't deploy farm solution. I need JavaScript based solution. ...
0
votes
3answers
234 views

jqueryui not rendering on sharepoint 2013 page

I have a 2013 sharepoint site I created a CEWP to read my hmtl page. All the html is rendering ok but I am having some trouble linking jqueryui.css or jqueryui.min.js into my site. It works ok when ...
1
vote
2answers
332 views

How to hide sharepoint column fields on Display form?

I am using below code to hide a field on SharePoint display form but unfortunately its not working. Can someone please help me correct it, thanks in advance. <script type="text/javascript" src="...
1
vote
0answers
205 views

Fetch values into dropdown list column based on query from another list - jquery

Please help me with some code (preferrably jquery). Sharepoint 2016. I have List 1 with columns Resource, Attribute1, Attribute2,..., Attribute10. And I have another List 2 with columns Project, ...
1
vote
0answers
70 views

Error on setting people picker in Sharepoint 2013 since updating CU

We have some javascript on a Workflow Task EditForm which upon changing a drop dowm menu would set the value on a PeoplePicker field. This worked for a long time, but something has happened - possibly ...
1
vote
0answers
22 views

How do i turn the SharePoint 'Default tick-box pop-up filter' into a 'Dropdown filter'?

As above, how do i turn the SharePoint default tick-box pop-up filter into a dropdown filter? Here's the current filter screens: The filter on the home page- (Sending values to search in the list) ...
1
vote
1answer
189 views

How to call a function when user enter name in SharePoint People Picker

Need to grab user email from SharePoint people picker and show an alert. I have tried below options but unable to get an alert after adding the name in people picker. var supervisorPicker = ...
1
vote
2answers
63 views

How to set sharepoint list drop-down to a value based on Site name user is working on?

I have two metadata drop-down columns added on a Shared Documents library upload form. I am leveraging SPServices to perform cascading and its working nicely. These drop-downs are: Project and Company ...
1
vote
1answer
288 views

How to hide radio button based on status

I have choice field called status, default is set to a value submitted. It has the following values. Save Submitted Rejected Approved if save or submitted is selected the other two should be hidden. ...
1
vote
1answer
56 views

How to leverage sharepoint cascading using javascript?

I have a parent list called called Items List residing on parent site containing columns as Site and Workspace. I created a Site Lookup column and named it as 'Workspace' which references Workspace ...
0
votes
1answer
98 views

Disable and enable on click on date calendar icon

I am trying to make the date field calendar icon unclickable in some scenarios, which I manage by using this: $("#...
0
votes
1answer
72 views

How Can I Have an App in the App Launcher Open in New Window or Tab

I am using SharePoint 2016 On-Prem and would like the Tiles in the App Launcher to Open in a New Window or Tab. Is there a possible jQuery option to have the Apps in the App Launcher Open in a new ...
1
vote
1answer
37 views

IE problem with JQuery

I am working on page layout in SharePoint 2016 on prem, and using jquery for some simple manipulation. I need to load my .js - file in edit mode panel only. I reference the .js-file like this in the ...
1
vote
1answer
227 views

How to correct below code to remove duplicate values from drop-down?

I am using below code to remove duplicate values from a lookup column called Project Name and for some reason its not working, can someone please help me correct it. FYI, i have already enforced ...
1
vote
2answers
2k views

How to show unique values in a lookup column?

One of the Projects I am working on, I have a site lookup column being used in many libraries across various subsites. The list column to which the lookup column is referenced to has some duplicate ...
1
vote
3answers
678 views

displaying items using JQuery Accordion Widget

I want to Displays items using collapsible content panels for presenting information in a limited amount of space using accordion widget. Any idea
2
votes
2answers
54 views

How to correct the below code to hide certain fields based on a drop-down value selection?

One of the Forms I am working on, I want to hide fields called Holiday 1 Date and Holiday 2 Date based on a drop-down metadata column value selection. Below is the screenshot of the form. Here is the ...
1
vote
3answers
566 views

SP.ClientContext is undefined in SharePoint online

I am trying to get details of logged In user through JSOM in SharePoint online. Below is the code which I am trying: SP.SOD.registerSod('sp.js', "/_layouts/15/sp.js"); SP.SOD.executeFunc('sp.js', '...
1
vote
1answer
85 views

How to retrieve list items using JSOM while on SharePoint library edit form?

For one of the Requirements Implementation, I have to filter the Choice Drop-down values and from a condition perspective, i need to retrieve list items from a list called 'Company List'. The library ...
2
votes
3answers
948 views

How to hide certain choice values from appearing in a sharepoint list drop-down?

I have a site column which is a lookup column to a column in parent list. I am using this site column titled as Company Name in many libraries. What I want to do is for certain libraries, i want to ...
1
vote
1answer
89 views

Remove a dropdown option once it's selected

I have a requirement that seeks to remove a sharepoint dropdown option if selected and when you click the save button the option selected needs to get removed from the dropdown menu. here's my ...
1
vote
0answers
28 views

How to apply cascading in below scenario using JSOM?

I Have a requirement to leverage Cascading in a little tricky way and which is where i need help. The Project I am working on, there is a Custom list called 'Company List', please see below screenshot....
0
votes
1answer
87 views

Change Web Part Heading Background Based on Month

I have a filtered list view web part on my SharePoint page that shows only the current month's birthdays. I searched online and was able to find code to automatically change the title to "Current ...
1
vote
1answer
152 views

displaying ajax query results in usable format

I'm trying to run an Ajax fetch which is apparently successful. What I'm unable to figure out is how to pull the individual field data to separate and use. I can display it all with a data.d.results ...
1
vote
0answers
15 views

How can i get a document link with SOAP?

I tried to show documents with a link in a page. I used SOAP to get list items. And ı want to show them when a user click on it. How can i do that?
0
votes
2answers
91 views

Unable to conditionally set a checkbox as required inside my custom list's forms

I am working on a sharepoint 2013 on-premises edit aspx form. now i have the following checkbox:- <span title="Yes" class="ms-RadioText"> <input id="UpdateOrder_0e0052d6-9924-4774-b50d-...
1
vote
2answers
93 views

How to get ErrorCode value using jQuery from bellow SPServices xml response

How to get ErrorCode value using jQuery from bellow SPServices xml response: <Results xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <Result ID="1,Update"> <ErrorCode>...
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
1answer
53 views

Changing “new item” link results in inconsistent behaviour

I've got a list where I'm trying to modify the "+ new item" link at the top to point to a different form than the default for that list. (I realize I can change the default content type but that's not ...
3
votes
1answer
865 views

Master page in Modern UI

We have to migrate our sharepoint pages and other stuffs from classic mode to modern UI. We have master page perfectly in classic mode. Is it possible to create master page in Modern UI? if yes, ...
0
votes
2answers
33 views

Get data from linked lists

I have two lists which are linked. When I want to add a record to the second (child) list I need to get data from the first list (parent). My parent list "PIR" has the fields PIR, number and source. ...
0
votes
1answer
29 views

After creating folder return data is empty

I using the code below, but and the script that creates the folder on my SP online server is working just fine, but the problem is that return data is undefined $.when(pCreate(path + "/" + name))....
0
votes
1answer
830 views

Hide values from drop-down choice list in NewForm.aspx using jQuery

In a SharePoint 2016 list, I have a choice column (appropriately named 'Choice') where I would like to hide certain values in NewForm.aspx. Choice 1 Choice 2 Choice 3 (I'm trying to hide Choice 2.) ...
1
vote
1answer
27 views

Designer Permission Group View

I am working in SharePoint 2013 and I working on a page that has a custom feature on it. The look and feel of the custom feature looks fine as long as the person or persons is placed into the ...
0
votes
1answer
42 views

SharePoint List form to Accept Multiple Items

I would like to do something like above where I can have my default new item form repeat when prompted by a "+" button. My existing new item form is pretty basic with the addition of just cascading ...
0
votes
1answer
823 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
0answers
118 views

jquery to get value from parent list

I have a list that uses a LookupField. I am trying to display the ParentID when I add a new item to this list. Here is my jquery code: <script src="/sites/SWR000744/SiteAssets/Scripts/jquery-3.2.1....
0
votes
1answer
34 views

How do I show SharePoint site name on the Quick Launch and on SharePoint library upload form?

One of the Projects I am working on I have a requirement to show the SharePoint site name on the Quick Launch, now this should be dynamic in nature so whatever site user is working on, he or she ...
1
vote
1answer
41 views

Show/hide button for wiki table of contents

So, I have the code for a table of contents, but I'd like for it to have a show/hide button in the top right similar to an actual wikipedia page's TOC. Everything works as it should when I embed the ...
0
votes
1answer
154 views

disable click in gantt view

I wish to disable any modifications to any of the cells in the lefthand side pane of the Gantt view. I've tried this CSS .jsgrid-control-text { -webkit-user-select: none; /* Safari 3.1+ */ ...
0
votes
1answer
260 views

Hide scroll bar in Gantt chart

I want to hide the horizontal scroll bar on the lefthand side pane of a standard Sharepoint Gantt view. This site shows how to do it for the whole chart https://social.technet.microsoft.com/Forums/...
3
votes
3answers
376 views

Issue in lookup field when items are too large in lookup list

I have issue in lookup field. When item in lookup field are too large, it throws error "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string ...
0
votes
1answer
52 views

How do I read the SharePoint ctype id from the browser url?

Please see below screenshot. I would like to read/retrieve the ctype that appears in the browser url. I guess this is doable using regular expression but I am not really good with it so can someone ...
1
vote
1answer
547 views

How do I get a list of content types using JSOM in SharePoint online?

For one of the Requirements I am working on, I have a choice drop-down in a document library. Basically when a user uploads a document in the library they have to populate the Content type from the ...