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

learn more… | top users | synonyms

0
votes
1answer
59 views

How to get SharePoint ID given only item URL?

Looking for the simplest possible solution, but needs to be JavaScript/jQuery if at all possible. I have an XML document that I am transforming using XSLT to render an HTML page. This XML document ...
0
votes
1answer
21 views

Accordian Jquery Events for Customised List forms

Want to understand how do we differentiate Submit/save event in customized list forms. eg: When we are in Section 1 the submit/save should correspond to data being submitted in section1 when we are ...
0
votes
2answers
115 views

How to collapse Ribbons bar when page is loaded?

When user click on an item display view (DispForm.aspx) the "View" ribbon is always expanded by default. It is annoying sometimes. How can I to make it collapse (not hide) by default? When user need ...
0
votes
0answers
22 views

One script blocks other

I have been developing a workflow app on our SharePoint 2013 site. I have two scripts that I want to add to the custom new item form. Each of them (if only one is present on the site) works fine. The ...
1
vote
0answers
23 views

Save the Webpage content as document to Document library in SharePoint 2010

We have a requirement to save the webpage content as document (PDF/XPS/Image) to SharePoint Document library on a button click. Only client side scripts (Javascript/Jquery) are allowed to acheive ...
0
votes
3answers
100 views

jquery to color code a line with negative value in a SP list

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ ...
0
votes
2answers
45 views

Should we consolidate all form customization javascript into one file?

On the project I am working on (SP2013 on-premise), almost all the form pages (Newform.aspx, DispForm.aspx and Editform.aspx) have added a Script editor webpart with JQuery to customize form layout ...
1
vote
1answer
43 views

How to add Font awesome and jQuery Link in SharePoint Master Page or any other page

I am using SharePoint 2013, I want to use font awesome in my pages But when I put the link in Master page or in any page, when I want to access the page it give message like: Show All content My ...
0
votes
1answer
209 views

Jquery fullcalendar - how to make current month (days) unselectable

I am building a SharePoint-hosted app in SharePoint. Basicaly it is a time planning app. I used a jquery calendar plugin (fullcalendar). My question is I have a "lock" button. When user clicks the ...
2
votes
0answers
16 views

Restrict Adding User to SPGroup Based on a User Property

I have an SPGroup that has permissions that are common to several users but my requirement is only one user (of a given parameter) should be in this SPGroup. For example, I have a list of Company ...
2
votes
1answer
51 views

Forbidden error when trying to copyTo document from list to Document Library

I am on a SharePoint 2013 cloud setup (but for testing purposes, it is a prem server). I am customizing an Edit form for a list, so that when a user checks a box the preSave event will copy the ...
0
votes
2answers
38 views

Conditional formatting on list based on a user/person/AD entity

I have found many how-to guides on JavaScripts to render a colored line in a SP list based on a word in some column. I tried it with a 'person' (a people column) and it did not work. The value in ...
1
vote
2answers
31 views

SharePoint 2010 - Jquery - Installed on Server

My company has jquery installed on every SharePoint, and while I have years of SP experience including design, very new to jquery. My problem is I need to use a jquery solution to freeze the ...
0
votes
0answers
87 views

Calling Cross Domain Java Based web service by JQuery AJAX from SharePoint 2013

I am trying to call the Java based Web Service by Jquery Ajax, The URl of the Service is "http://vmABCapp01-staging.domain.com:7083/UserIDCheckService/CheckUserIDServiceImpl". The Jquery Code to ...
0
votes
0answers
9 views

How to view xml code of a list view when multiple filters are applied

Is there a way to get xml data when multiple filters are applied to listview on a sharepoint page. For single filters its working fine. code: var ...
0
votes
0answers
50 views

Filtered lookup using SPServices

I have 3 lists: Schools, Interactions, Contacts In the new form for a Interaction item I have a lookup field displaying a long list of contacts, however I need to filter this list to only display ...
1
vote
0answers
17 views

Function call in selection event

I want to call the following function in a selection event function name calcDay(). var p = getList("Compulsory Leave"); When i put it inside the selection event function it generated error : p is ...
1
vote
1answer
67 views

Check SP datetime control is empty or not

I want to check whether a Sharepoint datetime control is empty or not. How can I do this using jQuery?
0
votes
1answer
53 views

Get the user name

I am working with SharePoint 2010 lists and I am trying to populate the list data in a page using a text box and button where in text box I enter the name of the person and click on button which gives ...
0
votes
0answers
25 views

Reading/Writing to excel

I have a requirement to read/write to excel. I am aware that it can be achieved by using Sandbox solution or provider hosted app. I am trying to do this via jquery. I came across this site which looks ...
0
votes
2answers
117 views

Loop through Radio Button with jquery and get values

I'm trying to loop through radio buttons on a form and get their value to compare to another value. If the values are equal it will check the radio button. The issue I'm having is that the loop only ...
0
votes
0answers
8 views

How to Attach Information to the Beginning of Each Paragraph in a Single Entity?

I am using SPServices to append information from a SharePoint (2010) list onto a page. This information is a summary written by a user, so it can contain multiple paragraphs or it can contain one, ...
0
votes
1answer
52 views

JQuery Hover not Working in SharePoint 2013 Calendar list

I used following URL for loading all resources item in SharePoint 2013 Calendar List and Its working fine as per my expectation. ...
0
votes
2answers
74 views

How do I get custom input values to save when I click the save button in a form

I currently have a list form that I am included custom fields on. I'm using jquery to store the values. To store the values I've create a function that will be called when the Save button is clicked. ...
0
votes
1answer
51 views

Get image from SharePoint by URL

I try to get an Image from SharePoint by using JavaScript code. I have the complete URL of the image which is stored in a SharePoint Assets Library. My app is SharePoint hosted. This code does not ...
0
votes
1answer
77 views

SCRIPT5007: Unable to set property 'ListId' of undefined or null reference

I am working on an enterprise wiki site collection, now when the user edit the properties of the page he will be redirected to the following page :- so i wanted to hide all the fields except the ...
0
votes
2answers
40 views

Issues with hiding <tr> elements in sharepoint form using jquery

I'm running into issue trying to hide elements in my sharepoint NewForm. I've added the jquery script to my NewForm <script src="/SiteScripts/jquery-ui-1.8.24.min.js"></script> I have ...
0
votes
0answers
180 views

List Form Jquery Save Button (validate, save, redirect) error. Is there anything wrong with our syntax?

We have a custom list form that we are trying to save, validate, and redirect. We can get the button to save and validate, but not redirect. And vice versa. We have tried several variations on the ...
0
votes
2answers
80 views

Problems while Accessing SharePoint List items in SharePoint 2013 using REST API in NAPA tool

I am trying to access the list item using an APP in my office 365 share point hosted trial environment.It seems like the call REST call is failing, the alert in error function is getting executed. ...
1
vote
1answer
82 views

Get the permission list for a group using jQuery AJAX requests REST API

How can i get the group permissions for a list using an AJAX request with the REST API? I could add or remove permissions for the group but i want to know the actual permissions of the group over the ...
0
votes
2answers
68 views

Hide field after checking if user is admin - deferred promise?

I am attempting to hide a field from a newform, but only if the user is not a site collection administrator and not assigned full control of the (sub)web currently on. I am not well experienced in ...
0
votes
1answer
83 views

Add Item to List on JSLink with jQuery

I have a JSLink on my Webpart Custom List, and I need to add an item before render a view. (function () { var overrideCtx = {}; overrideCtx.Templates = {}; ...
0
votes
0answers
24 views

How can I take some user input (html or markdown), transform with XSLT, and write the resulting file to a library?

Not looking for a solution here, just something to get me started in the right direction. I would like to create a page that takes some user input from a textbox (markdown would be cool, but HTML is ...
0
votes
1answer
12 views

Need help rendering .prepend text in SharePoint

Folks, I am trying to use the jQuery .prepend method to display some text on the top of a web part page (underneath the main header). Unfortunately, the text is not rendering across the hole page, ...
2
votes
1answer
40 views

Is there any api for Microsoft Global Address list?

I would like to get the name of a user from the global address list, using their email address. How can I do that?
0
votes
1answer
135 views

Retrieve SP-List data cross domain via SPServices?

I am trying to retrieve data from a SharePoint List hosted in a different server/domain. We are still running SP 2010 but about to migrate to 2013. I am not sure if jQuery.SPServices and CORS are the ...
0
votes
1answer
41 views

get the title of the list

I have a list with title as one of the column which is of clickable and am using jQuery to show the list items in one of my SharePoint page I am getting the name of the title but unable to make it ...
0
votes
0answers
43 views

Ajax call stopped working

I wrote a code to get userProfile from sharePonit in jquery/javascript. few days ago, i tune up my internet speed and the code simple, stop working. I got this conclusion after put a break point and ...
1
vote
1answer
36 views

Get current user's wiki rankings

I am using SharePoint 2013, cloud version. We are very limited in what we can customize. I have created a site that uses the Enterprise Wiki template. A feature that was requested is to show a list ...
3
votes
2answers
142 views

jQuery not working on 2nd page of SharePoint list

On our SharePoint list, we have anchor tags opening in a new window via: <script type="text/javascript" src="/SiteAssets/jquery-latest.min.js"></script> <script ...
0
votes
0answers
42 views

retrieving user name in Jquery datatable and caml query

Hi I am on SharePoint 2010 version , I have created a list with createdby, createdDate and Employee name as columns in it. I am having a text box and a button when I enter employee name and click ...
1
vote
2answers
132 views

jQuery wait for div load to complete

I have a piece of jQuery that constructs the inner HTML of a custom Version History table. To fill each table row with elements I use jQuery's load for each row. However this function is asynchronous, ...
-1
votes
2answers
48 views

CAML query to show _moderationstatus

I am trying to show list items in a publishing page and I am getting all column values except for Approval Status column which should show text as values is showing integers like 0 for Approved ...
1
vote
1answer
50 views

Disabled custom action tooltip

Some custom actions in SharePoint display an additional message with possible reason of the action being disabled. Is there a simple way of adding such a message only when the action is disabled (for ...
1
vote
2answers
105 views

Element “Query” is invalid (GetListItems)

I'm calling GetListItems via spservices, and specifying the CAMLQuery field to be the following value: <Where> <Or> <Contains><FieldRef Name='ows_Title'/><Value ...
0
votes
1answer
110 views

GetListItems on document library not returning items within folders

I'm using SPServices to run a GetListItems query on a particular document library. This is in implementing a custom metadata-driven search for lists/libraries. In cases when the document library ...
0
votes
2answers
118 views

How do I trigger onchange from a default SharePoint 2010 date field?

I am currently running a function on change when a user changes the value of a choice field. This function uses the date (previously selected) to filter items for another drop-down list. However, in ...
0
votes
1answer
37 views

How do I send data to a list form from a SharePoint page

I have a page that displays data from several lists and has links to a list form which open in a modal popup. I need to send some data to the form to be displayed on the form. Is there a way I can do ...
0
votes
2answers
229 views

Can you populate a dropdown choice field with jquery and javascript?

I would like to use a radio choice field to determine the values that will be populated in a dropdown choice field on a sharepoint list form. for example; Food Type (radio field) Options Meat ...
0
votes
2answers
75 views

Javascript in script editor not always rendered

I'm having a strange problem with Javascript and SharePoint Online. I've created a page that contains a script editor webpart with some JavaScript code (calls a few REST services to show a list of ...