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

learn more… | top users | synonyms

0
votes
0answers
6 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
32 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
22 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
31 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
20 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
24 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
29 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
83 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
20 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
8 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
19 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
18 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
42 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
19 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
7 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
16 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
8 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
25 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
14 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
26 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
0answers
6 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
32 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
20 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 ...
1
vote
1answer
24 views

Hide refiners depending on the selected browser language - Sharepoint 2013

in Sharepoint 2013, I have two managed properties xyz_en and xyz_fr for a name column. I would like to show xyz_en and hide xyz_fr if the browser language is en. Any suggestion would be much ...
0
votes
2answers
30 views

Change NewFrom using JSLink

I have to customize the NewForm and EditForm using JSLink. Perhaps there is another way of doing this. So what I would like to know are these: How can I make a field required or not depending on ...
0
votes
1answer
27 views

Change value when item is approved

I have a MySQL table which contains the name and the quantity of a material. I access it from a Sharepoint page using Javascript and JQUERY Ajax (jsonp). The user adds a request to retrieve a ...
0
votes
1answer
48 views

How to use 3rd party JQuery file uploader with SharePoint

The OOTB attaching of files in a share point list is a one by one process. I wanted to create a front end solution which would enable multiple attachment of files at once. I researched a lot and the ...
1
vote
1answer
38 views

Select All check-boxes in choice field on document library form using jquery

I have a document library form on which there are two multiple choice fields as shown in below image. Now when user select the option "Select All" in "Vertical" field all check-boxes in "Vertical" ...
0
votes
0answers
18 views

Sharepoint 2010, Jquery to get User Image from mysite on seperate server

I am working within an environment where I only have HTML rights and cannot run shell commands or access master pages. There are 2 sites. a SharePoint 2013 mysite and the 2010 SharePoint site. ...
0
votes
1answer
20 views

Access php through jquery ajax in Sharepoint

I have the following code within a Sharepoint page $(document).ready(function(){ $.ajax({ type:"POST", url:"http://somesite.ro/helper.php", dataType: 'jsonp', // Notice! JSONP ...
0
votes
1answer
19 views

jQuery 2.0.2 doesnt work in IE8 - code compatible? [closed]

I know jQuery 2.0 doesn't support IE8. Is there a way to change the j Query code in our JS file, to ensure jQuery 2.0.2 for compatibility with IE8?
0
votes
2answers
36 views

How to avoid that the jQuery file loads after a custom js file? Sometimes I got $ not defined?

I have add in the master a jQuery registration and a custom js file in the header. After the custom js file I start running a function which is existing in my custom js file. Sometimes I got the ...
0
votes
0answers
21 views

Add multiple items to a list

Need a form like a datatable where a user can add multiple items and the press submit, this then creates individual items in a list. The fields are of different types which include lookups. One of ...
1
vote
1answer
9 views

Changing standard SP Spinner “working on it” in a Modal Dialog

Im trying to find way to change all standard green spinners in our custom SharePoint 2010 solution to another gif. I dont want to replace the actuall gif-files in the SharePoint Hive as these will ...
0
votes
0answers
16 views

Jquery hide/show function in Sharepoint 2013 working on one laptop, but not the other

I have a simple jquery change method which will hide or show form fields based on a selection from a dropdown. the issue i am having is the jquery function is working on my laptop and 5 others, but ...
0
votes
3answers
28 views

jquery appended option not posting in default new form

we have a list for travel schedules. We have a dropdown for Monday to Friday then individual mulitselects for each day. i am trying to use the following code to auto populate the selected item for ...
0
votes
1answer
30 views

color coding in a list view is lost when any of the columns are arranged by clicking on the column header

I have some JavaScript that will colour row in a SharePoint list View web part depending on values in certain column. This part works fine and the rows are coloured correctly upon page load. The issue ...
0
votes
0answers
37 views

modify the min length for the “People or Group” auto complete

i have a "People or Group" field inside my team site, and currently the built-in autocomplete will work after typing 3 characters. so how i can modify this to allow the autocomplete to work after ...
0
votes
1answer
26 views

jQuery validation on date field

I have 2 date fields in SharePoint list Deferral Raised Date and Original Dispatch to date. I want to put formula in jQuery such that value of Original Dispatch to date should be less than Deferral ...
3
votes
1answer
49 views

Modify the “Select People” dialog height

I am using IE 10 32-bit & windows 7 . now the "Select People dialog" will look as follow: where only part of the first user will be displayed! Now the whole problem is with the inner style ...
1
vote
2answers
40 views

Is There A Way to Determine if More Than One Option in Custom Dropdown Field?

I have a custom dropdown choice field that is created using jQuery after a date is selected and a choice box is selected as "Yes." Here is that function: function queryEvents(date){ ...
0
votes
1answer
20 views

Working with SharePoint mobile view and jquery mobile

I have a SharePoint Online site, https://[mysite].sharepoint.com. My goal is to have a couple pages on this site that utilize jquery mobile to give an app-like feel to the user. As it stands, I have a ...
1
vote
2answers
79 views

Custom Jquery script to hide fields inside my New & Edit form is not working on Iphone safari web browser

I have defined the following jQuery script to hide some columns inside my Edit & New built-in forms:- $( document ).ready(function() { $('.ms-formtable nobr:contains("Item ...
0
votes
0answers
14 views

Disable Edit button in View form using JQuery is not working in Firefox

I am trying to disable some ribbon controls on client-side using JQuery. It works on IE8 but not on Firefox. I put the following code in a content editor in dispform.aspx ...
0
votes
1answer
18 views

Which should I use on SharePoint 2010 list item forms? JQuery or InfoPath?

I'm editing some SharePoint 2010 list item forms using InfoPath 2010 and some with JavaScript/JQuery. I know that Microsoft will not support InfoPath after SharePoint 2013. InfoPath is easy to use to ...
0
votes
0answers
16 views

How to make Promoted links responsive?

I'm having (as expected) big times truble trying to implement twitter bootstrap in Sharepoint, anyway, most of the things works properly exept when i'm trying to make the promoted links reponsive. ...
0
votes
1answer
84 views

Hidding Forms; fields using standard jquery versus using JSlink. which approach is better

I want to hide some fields from my Edit & New forms, and i need this to apply to all the subsites. now if i hide the columns from the Content type they will appear again when users modify these ...
0
votes
1answer
13 views

Show Custom field in SharePoint form based from a table in sql server

I hope I can get some tips here. I have some fields in a SharePoint form that I would like to pre populate from a table in SQL server tables. So for example if I select a value in a dropdown field ...
0
votes
3answers
131 views

Is it possible to have a lookup field with autocomplete feature

I have defined a lookup field with multiple values over a contact list inside my SP 2013 team site, and by default I got a select list as follow:- So is there a way to have the lookup field with ...
0
votes
0answers
21 views

Sorting lookup column by descending dates in list form in SP 2010

I have a lookup column (Date of Distribution) that pulls a list of dates from another list on the same site. When the lookup pulls the dates, they are in ascending order, so the oldest first down to ...