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

learn more… | top users | synonyms

0
votes
0answers
9 views

SharePoint 2013 Dynamic JQuery Web Part Page Taxonomy and Missing Field Errors

I tried to implement this code from Mark Rackley -- it's basically a dynamic lookup. Just an FYI, all of the fields I'm using are managed meta data site column 'created from existing columns' inside ...
0
votes
0answers
11 views

SharePoint datetimecontrol Date range selection using jquery/javascript?

currently i'm working on SharePoint visual webpart webpart contains two SharePoint:DateTimeControl trying to select a FROM and TO date in range ,The Date Selection should automatically shade or ...
0
votes
0answers
19 views

Sharepoint Server 2013 Hide/Show jquery/sputility not working on a New Item List Form — no clue why (answered)

The Point When someone chooses "One" as the value of the urlTotal column, it will hide urlTwo and urlThree columns. I pasted the script link from my site assets folder into a content editor in the ...
1
vote
0answers
18 views

Click promoted links tile to reveal another webpart

I have two sets of promoted link tiles. I've placed each set of tiles in their own webpart on a webpart page. What I would like to do is: 1. Hide the second set of tiles, and 2. Reveal the second ...
0
votes
0answers
15 views

Build url with current item's parameters for button on default form page

Using only the browser (No SharePoint Designer) on a default form (DispForm.aspx) I want to add a button and specify that button to go to a certain page, and append the paramerters of the current page ...
0
votes
0answers
11 views

Javascript code to write JQGrid data to excelsheet?

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
26 views

The condition Greater Than (>) cannot work in my jquery code [closed]

I need to check the number of characters in class span, then change CSS according to the number. For example, if length of title is less than 29, the title color should be yellow. If length of title ...
0
votes
0answers
22 views

Dynamically set values for multiselect look up in sharepoint 2013 using jquery

I am trying to set the values of my lookup using jquery. Basically the values are coming from an array from another list. I was able to set the multiselect lookup with my array values. However i was ...
3
votes
2answers
51 views

AJAX Request not firing at Document.Ready

Had a question regarding an AJAX request I'm making via jQuery in my SP site page template. The code in question: //writes CSS classes to body script based on explicitly checked group membership ...
0
votes
0answers
15 views

SPUpdateMultipleListItems not working

I am trying to update a column in a list, changing all the items to Approved. Below is the script i am using. function approveall() { alert($().SPServices.SPGetCurrentSite()); ...
0
votes
1answer
37 views

Prepopulate NewForm.aspx Lookup DropDownList SharePoint 2013 with Javascript

In SP2010 I used the following JavaScript(JS) in a Content Editor on the NewForm.aspx page. This was used to prepopulate a lookup dropdownlist with a value from the Query String Parameter. Now that ...
0
votes
0answers
10 views

Java Script Parent Child Default field

I've been using this blog to help me set up parent/child lists in sp2010. It provides the following script: <script type="text/javascript"> function NewTime() { // Get the Query String ...
0
votes
0answers
12 views

Not getting [Object File] from a File Input HTML Control using JQuery in WebPart Custom Page

I am Using SharePoint Designer 2010 I have a file input control and a button as below: <input type="file" name="Resume" id="upload"></input> <input type="button" id="btnSave" ...
0
votes
0answers
41 views

GetListItem SPServices don't retrieve data

i'm trying to retrieve data from Sharepoint using SPServices. I created a list called "values" with two field: "Title" (text field) and "values" (numeric field). I created a js file linked to a ...
2
votes
1answer
29 views

Use filtered URL in Ajax call to return JSON data

Currently I am working on sort of a JavaScript function library for all things SharePoint to pass around to some of the SP developers at my work. The idea is to just take some simple features I see ...
1
vote
1answer
81 views

Jquery is not loading properly in Internet explorer 11 browser until page refresh

Im using this jquery plugin called Slidorion with SPServices. On firefix,Chrome when the page loads first it works all good. But in IE 11 it doesnt work on first load until i refresh it. I have ...
0
votes
1answer
42 views

http:<server>/_api/web/webs 401 unauthorized

i'm using a jquery script embedded in a SharePoint page. i am able to load the results of a /_api/web/webs call to REST as myself (site collection admin). However, anyone that visits the page that is ...
0
votes
1answer
30 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?
5
votes
2answers
89 views

How to display counter

Is there a way to use jQuery and Css to pop up notification to user's breadcrumb area for user's open Tasks. I can drop a web part which gets all the pending tasks for browser's user. I see following ...
0
votes
0answers
12 views

SP 2010 - Freeze Header Row - Cannot get solutions to work

I have been trying to implement a solution to freeze the header row of a list longer than I care to admit. I was able to get this solution to work: ...
0
votes
0answers
20 views

AddUnresolvedUserFromEditor not working in Firefox

I have two people pickers in a list. I use the following snippet, to insert the current user into the people picker: var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + fieldName + "']"); ...
1
vote
3answers
76 views

jquery multi line textbox scroll

I have some long multi line column on my list. In my dispform, newform and editforms I want to change the appearance of this field to have a vertical scrollbar, rather than just displaying the whole ...
1
vote
0answers
31 views

How do i query date range comparisions in sharepoint 2013 list using JSOM

I need to compare date ranges the result should be between start date and end date. I am using Sharepoint:DateTimeControl picker and get the date using jquery, then converted date like startDate ...
0
votes
0answers
21 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
24 views

Text box event handled by jslink and jquery

I have created my own Text box control using jslink in SharePoint on NewForm.aspx. i want to handle text changed event in jslink. I have given my code below .. (function () { // ...
1
vote
3answers
60 views

Get Text box in JSLink of NewForm.aspx in SharePoint 2013

How can i get Text Box Id in SharePoint NewForm.aspx ? Using Js-Link . . i want to bind Color-picker Control of Jquery to Text-box .. Can anyone have an idea about this? kindly give me suggestion. ...
1
vote
1answer
22 views

Designer workflow through Jquery in sharepoint 2013

Can we trigger a designer workflow on item added event in sharepoint using jquery or SPWEBSERVICES. We have migrated from sharepoint 2010 to sharepoint 2013. In sharepoint 2010 we have a designer ...
0
votes
2answers
38 views

How to save item into list only once?

I am trying save the below into list in SharePoint, but each item is getting saved twice. I need to save only once. What's wrong? function sumcalval() { alert("save function called"); var ...
0
votes
1answer
31 views

Custom validation in newform/editform using jquery

I have an "Issue list" and I am writing some jquery code to validate some fields based on the status of the issue. I am using PreSaveAction() function to make the validation, but I see that the fields ...
1
vote
3answers
47 views

How should I add JQuery on custom page layout for SP2013?

I am working on a SP2013 on-premise farm and try to create a custom page layout. There are some JQuery function I need it render on particular custom page layout but not other pages. <script ...
0
votes
0answers
36 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" ...
0
votes
0answers
31 views

SharePoint 2013: JQuery functions not working in Page Layout

I created Page layout using Design manager and added required content within "pageholdermain" and added reference to CSS and .JS files under "PlaceHolderAdditionalPageHead". The CSS styling working ...
0
votes
1answer
37 views

How Can I Pull data out of a SharePoint list from embedded code on the same SharePoint Domain Using SPservices and Javascript/Jquery?

I am trying to pull data from a column in a list. The list is in the same domain as the page that I have embedded code in. Here is the code, I have removed several of the functions that do not have ...
3
votes
1answer
113 views

How to reference the Site Collection URL inside the src attribute

I added a custom script to my "Style Library" folder under a site collection. The site collection URL is http://servername/HR. So to reference the script inside my master page I wrote the following: ...
0
votes
2answers
29 views

Choices.Add with JQuery

I am using JQUery to fill a DropDownChoice dynamically, depending on a custom DropDown menu earlier. However, if I just add the entries by <option value="1">Option X</option> I can't ...
0
votes
0answers
15 views

Change Site Collection Home Link in Global Navigation

I have a script using jQuery that allows me to change the Text of the Site Collection Root in the Global navigation. By default, I always set it to, "Home" using the following code: <script ...
0
votes
2answers
23 views

Create a Homepage for TeamSite with SharePoint 365

What I am doing is to set the Home.aspx as the Homepage for my TeamSite. I've added a Web Part as Script Editor and put the jQuery script as below to remove or hide the left menu and the Home. ...
0
votes
2answers
9 views

Create a Homepage for TeamSite with SharePoint 365

What I am doing is to set the Home.aspx as the Homepage for my TeamSite. I've added a Web Part as Script Editor and put the jQuery script as below to remove or hide the left menu and the Home. ...
0
votes
1answer
26 views

JQuery & Team Visitor permissions

Problem: jQuery undefined if user logs in and is put with 'Team Site Visitor' group. If I change the user to be in 'Team Site Member' group the jQuery gets loaded correctly and all subsequent custom ...
0
votes
2answers
51 views

Can I get relative path of current site with single function?

I am trying to build a breadcrumb using JS and SPServices. When I browse for a page like http://sharepoint.com/sites/News/pages/f1/f2/default.aspx the breadcrumb should show SharePoint.com > ...
0
votes
0answers
31 views

SharePoint 2013 - Display Hyperlink Field using JQuery/Datatables

I'm trying to display a Hyperlink field in a table using JQuery & Datatables. However, I'm getting the following error message response: DataTables warning: table id={id} - Requested unknown ...
0
votes
0answers
23 views

Cascading Dropdown using JSLink

I have created custom dropdown in newform using JSLink. Both are working fine. Now i want to make cascading dropdown. I searched a lot but i got using SPServices and other third party JS. I want to ...
0
votes
0answers
18 views

Can I load the contents of a webpart from another site?

Say I have a content editor webpart in one of my sites. Is it possible to load that webpart's content from another site inside the same install of SharePoint ? I tried using jQuery load with the ...
0
votes
0answers
9 views

Insert value in Publishing Hyperlink column using ResT API [duplicate]

I have a "Hyperlink" field type of "Publishing Hyperlink". I want to save data into list using JQuery. But this field return an error. var item = { "__metadata": { "type": ...
0
votes
2answers
40 views

SharePoint Online Plan 1 and jQuery

I'm working on a SharePoint Online Plan 1 Site Collection in preparation for our Office 365 deployment and I'm getting a lot of requests for small UI changes and tweaks (make certain Library Columns ...
0
votes
1answer
16 views

jquery code that searches for an item in a list

Looking for jquery code that searches for an item in a list, like ID or Title.
0
votes
1answer
28 views

How to insert value in Publishing LinkField using JQuery?

I want to save data into list but it gives me error when used following code. var item = { "__metadata": { "type": "SP.Data.ListNameListItem" }, "Hyperlink": { Url: ...
0
votes
1answer
16 views

using slidorion plugin slider in sharepoint

Im using this jquery plugin slider in Sharepoint.When i hardcode the html inside a script editor or CEWP it works well. But when i load the html dynamically from a list. It doesnt work and render ...
0
votes
1answer
57 views

Disable column header filter and sorting

I am using SP2013 on-premise. On a list view all the columns' header come with a filter+sorter function. It is not useful on some columns (e.g. photo, which show a picture and no point to sort, and ...
0
votes
1answer
30 views

Set Audience targeting on left navigation with Javascript/Jquery

I want to set Audience targeting on left navigation bar of SharePoint, though there are around 50 links on which i need to set the targeting on. Every time I take a template and restore it, I manually ...