Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
975 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
16 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
887 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
759 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
753 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
1answer
750 views

Refresh parent page after calendar event creation

I have created a new page with a default calendar webpart. Below is what I'm doing. Click New Event and the popup gets opened Fill-in the event details Click Save and the event gets saved Calendar ...
0
votes
0answers
9 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
697 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
747 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
704 views

Check user membership of current user in security group using javascript

I am working on SharePoint 2016 on-premises environment. I need to implement the some functionality based on the result whether the currently logged-in user is a part of a security group or not using ...
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
2answers
840 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
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
1k views

Internet Explorer 10 Script7002 XMLHTTPREQUEST network error 0x800c0007, no data is available for the requested resource

I am not sure wha is going on here but I am repeatedly receiving this error when trying to use the REST API when saving a form. I make the $.ajax call, wait for the promise to return but at some ...
0
votes
0answers
17 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....
0
votes
0answers
22 views

jQuery console loads twice in SharePoint

I am having issues with this jQuery code. I don't understand why my function runs twice. 'dosomething' and data shows up twice in the console and i'm not sure why. Please help. $(document).ready(...
0
votes
1answer
870 views

Repeating section in SharePoint 2013

Just wondering has anyone ever found a solution for creating a repeating section on a SharePoint 2013 built in SharePoint designer and NOT Infopath. All resources online point to using the repeating ...
0
votes
2answers
1k views

Hide nearly all page elements except when user is site admin

I'm feeling my way through being a site collection admin. I have a home page I wish to remove all sharepoint elements and just have a table of buttons. I've done this by added this CSS to a CEWP: <...
2
votes
1answer
965 views

Why is my Ajax call returning a 500 Server Error?

I'm currently building an application page for a SharePoint 2010 site. One of the methods on this application page retrieves the User Profile information from the server and displays it to the client. ...
4
votes
3answers
5k views

SharePoint DateTime field as Read-Only

How do I make the SharePoint DateTime field read-only in the NewForm.aspx? I'm using the below script to make the DateTimeColumn read-only. It's working fine in Firefox but not in IE9. The calendar ...
1
vote
2answers
137 views

Get specific page (file) from folder

I am using REST to get item page by specific title, My question is how to get the specific page in folder from list Pages Here is my code snippet : var folder; //folder var source; ...
0
votes
0answers
22 views

Document column filed need to update from existing list on the SharePoint 2013

SharePoint Developer experts, We have one document library and one List on SharePoint 2013. List name as "Policy" and Document library name as "Process documents". On list, we have ...
0
votes
0answers
6 views

Checking/Ticking Checkboxes from ID in array

Everytime a checkbox with the class "thischeck" is checked, i push the id of that checkbox to an array. I then switch tabs and when i switch tabs, my checked boxes disappear, I want the ...
0
votes
0answers
15 views

unable to get treeview dropdown in classic site

we are facing issue with N level tree view drop-down while getting dynamic data form list using 2 columns data in classic share point site. 1.column is parent 2.column self lookup column to parent ...
1
vote
1answer
884 views

Get uploaded document id using JQuery

I need to get document ID of newly uploaded document using JQuery, any help highly be appreciated. I'm trying below code which is not working and gives error, 404 not found. function getListData(...
4
votes
1answer
1k views

401 (Unauthorized) in Google Chrome

When I Get the document list from SharePoint site I get this error "401 (Unauthorized)" only in Google Chrome, but in IE it works. This is my code function GetListItems() { var siteURL = "http://...
1
vote
2answers
25 views

jQuery hiding column based on another column's value

I've successfully used the following script in NewForm.aspx to hide a column 'Date SharePoint checked' when another column 'Check SharePoint?' is set to 'No'. When I open the same list item in ...
0
votes
1answer
43 views

Append current page URL as redirect to new item link

I am using SP2013 on premise. I have 3 lists: Projects Requirements Issues. Lists 2 & 3 have been added to List 1 DispForm.aspx and a lookup column and query string filter links them so that ...
0
votes
2answers
934 views

Unable to get property 'createRange' of undefined or null reference

I have a SharePoint custom list form with a bunch of Javascript running on it. In particular I have one field where it gets its choices from a lookup to another list. The lookup returns n versions of ...
0
votes
1answer
952 views

Filtering list view based on querystring using jQuery?

Using Sharepoint 2010 Content Editor Web Parts (some links dynamically created) List View Web Part Ability to add additional software or packages to the system extremely limited (so would prefer ...
2
votes
3answers
1k views

Hide sharePoint list Columns based on users permissions

I want to hide SharePoint list(Three columns) from users. The columns are only see by HR manager and V/Manager. How to Achieve? I just tried like this: <script type="text/javascript"> $(...
0
votes
0answers
10 views

Sharepoint Star Rating image not updating (display form)

I have been trying to implement a star rating in a display form. For this I partially utilise concepts from this post: Rating Feature in Display Form SharePoint 2013 ; When placing the $().attr() ...
0
votes
1answer
782 views

SPServices UpdateListItems not working

I created a list called testlist then I created a html within the same site with the following layout <table> <tr> <td><strong>List Item to be added</strong></td> &...
0
votes
0answers
38 views

IE11 cross site collection call issue in iframe

Whenever I try to click button which is inside Iframe using jQuery in my SPFx webpart in IE11 it gives below error. Link in the iframe is of different site collection: SEC7111: HTTPS security is ...
0
votes
1answer
775 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 ...
0
votes
2answers
738 views

Using SP Services to get data, Need only top 5

So, as the title suggests, i'm using SP Services to get data from the "Comments" List. I can retrieve the data fine but i'm trying to limit what is returned to only the top (Let's say 5) comments by ...
2
votes
2answers
926 views

Get the data from Multi line Text field and set it to text area line by line

I have a multi line rich text field and I want to get the data from column and set in text area line by line. I tried Splitting but I need another solution if possible.
2
votes
3answers
7k views

how to get sum of a column in sharepoint 2013 list

Not sure if i would get any answer from here. I have a column number and title text. The data would look like this: Title Paid ---------- Jacob 200 Patrick 100 Jacob 100 Patrick 300 What i would ...
2
votes
2answers
279 views

How to execute a JQuery selector after dom objects are rendered complete in a search display template

I want to run a JQuery selector after all divs in Search Display Template (e.g. Item_Person.html) finished rendering. My funcs always seems run straight after master page is rendered, but it still ...
0
votes
1answer
143 views

Displaying only duplicate items based on column value (e.g. Title)

Trying to figure out a way to Create a list of duplicate list items based on a column contained in such a list. In my example, it is the title column. First, I was thinking that I could create a ...
0
votes
2answers
110 views

Calculating 2 weeks forward from a day, using a marker day

I am trying to code the date of the Thursday which falls two weeks after a given date. It is more complex then just adding 14 days to a given date. This is because if the first Wednesday after a ...
1
vote
1answer
86 views

manipulate cells of a list with jquery

I am modifying the Allitems view of a list and want to select each row with a specific title and change the last cell of that row to show the thumbnail of an image with jquery. var results = data.d....
0
votes
1answer
23 views

400 error when making POST request (adding item to SP list)

I have a form that contains check boxes and input fields, and hitting the Submit button should ideally add the content values to a SP list. When I run the debugger I can see that each input (checked ...
1
vote
1answer
785 views

Create a LookUp Column using SPServices “UpdateList” operation

I want to dynamically add a new list ("AddList" operation), and then use the SPServices "UpdateList" operation to add "newFields". I was able to get the "Text" fields to add properly, but the LookUp ...
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">&...
5
votes
4answers
3k views

JQuery to execute on change of taxonomy field

I am trying to find a way to auto populate some values whenever I detect a change in taxonomy selection (ClientPeoplePicker control), how can I achieve this using jquery? This is what I currently ...
0
votes
2answers
906 views

CEWP does not support <form> tag in jQuery file

I added jQuery to my Sharepoint page. When I reference the jQuery file uploaded in my library, I get this error message: <FORM> tags are not supported in the HTML specified in either the ...
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
0answers
12 views

Create a task with multiple attendees to create multiple tasks per attendee

Here is a desirable case. During new task creation, a user can include many attendees ('Assigned to'). But clicking on 'Save' button should trigger multiple tasks creation (one per attendee). All ...

1
2 3 4 5
40