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

learn more… | top users | synonyms

0
votes
2answers
29 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
20 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
13 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
19 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
43 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
40 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
28 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
29 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
31 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
16 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
11 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
22 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
23 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
39 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
25 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
29 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
1answer
64 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
15 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
64 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
24 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
27 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
33 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
18 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
29 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
21 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
78 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
25 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 ...
0
votes
2answers
31 views

SharePoint online jquery link

I'm getting a jQuery undefined error because my library isn't loading from CDN. On my html master page I've got this reference. I'm a little new to SharePoint branding and have seen lots of ...
1
vote
0answers
31 views

SharePoint Online Lookup Dropdown Autocomplete/Combobox

I have a list in Sharepoint Online, which has a lookup to an other list. No matter what, on the form it will always render as a dropdown value. When this list of values becomes huge, it's hard to find ...
1
vote
4answers
71 views

change value in dropdown menu sharepoint

I have a dropdown box name Status added in sharepoint page which have option (choose.. , In progress, Closed). Where Choose.. is bydefault value. When I open the page the value Choose.. should get ...
0
votes
2answers
39 views

jQuery EditForm redirect to DispForm

I want to redirect user after editing item and pressing save button to item DispForm. I currently have JS code: $( document ).ready(function() { $('input[value=Save]').click(function() { ...
1
vote
0answers
23 views

Can I programmatically access the values and modified dates for appended column entries?

I have a Projects list with a multi-line text column named Progress Update set to "Append" to create a record of updates. This appended Progress Update column saves a "blank" value when a list item ...
0
votes
0answers
15 views

SharePoint 2010 navigation rendering on mobile devices

My menu works great and is responsive in all browsers but not on a mobile device. on a mobile device the navigation renders spans and not the ul. my code <div id="topnavbar" class="navbar"> ...
2
votes
1answer
38 views

HTTPHandler Note Hitting the the breakpoint in VS2010

I'm trying to send some Async Data to the server form SP webpart. I added the HttpHandler to the Layout folder in webpartproject and registered it in web.config file for the SharePoint site. But the ...
0
votes
2answers
41 views

Conditionally hiding/showing fields on a custom newform using jquery

This is something I have been struggling with for some time now. I have looked all over the internet at different forums and blogs trying to find a solution and I have finally gotten ALMOST there. I ...
0
votes
1answer
29 views

Upload javascript file to sharepoint online library saved in wrong format

I am trying to Upload a myfile.min.js to sharepoint online using JavaScript using JSOM but its stored as wrong encosing format var req = jQuery.ajax({ url: sourceFileItem + '?ver=' + ...
1
vote
1answer
43 views

Display All Sharepoint site owners in a table for a site and subsite

I just want to display all the Site owners in a table for each site. So i have developed the below code where i was able to fetch the users form the Owners Group. It is working only for the first ...
0
votes
0answers
25 views

Overrding the closing button on a list form modal dialog

I have a custom list form that opens within a dialog. What I need to do is the following: Override the closing button (X) by prompting the current user to see if they want navigate away from the ...
0
votes
2answers
45 views

Adding a new node in JSTree [closed]

I am working on below JSTree plugin. http://www.jstree.com/ What I am interested in is when i click on node Make a call to server Add new node I found on change event and it triggers when I ...
0
votes
1answer
40 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
30 views

Apply jQuery to search result webparts sometimes fails

On the start page of a Sharepoint 2013 Intranet portal I put a search result webpart. The webpart is styled and formatted into a slider with jQuery & CSS For some reason sometimes the jQuery on ...
0
votes
1answer
22 views

Hiding 'About Me' from users from the Username drop down list

I'm using 2013 Enterprise and have customized a copy of seattle.master. I'm editing the seattle_custom.html and uploading the changes and publishing a major version. So far I've not been able to get ...
0
votes
1answer
69 views

HTML + JQuery (CSOM) to add multiple item to a Sharepoint list and get their IDs

I try to use HTML + JQuery in CEWP to build some sort of analog of InfoPath's repeating table in order to be able to insert multiple items in a Sharepoint list using CSOM. The current task is to get ...
0
votes
0answers
14 views

zWeatherFeed does not display on publishing pages

I've included in my masterpage, just above </head> tag, following code: zWeatherFeed plugin scripts (required) <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ...
0
votes
1answer
62 views

SP.RequestExecutor is undefined for angular controller

This is a sharepoint hosted app where I am trying to use the Sharepoint Request Executor to make a REST API Call to the host web to get list items. The code is however failing on the file: ...
0
votes
1answer
35 views

Cascading Dropdown lists with SPServices not working

I have a list called BRM with the following fields: BRM (Text) Country (List) Business (List) The country list is simple: http://screencast.com/t/uh93fIhzWn The business list is also simple: ...
0
votes
0answers
42 views

Jquery Async call issue CSOM

I am creating a custom Navigation using Termstore value. I am getting all term using JSOM like that function getTermStores() { context = SP.ClientContext.get_current(); var taxSession = ...
0
votes
1answer
86 views

Web Part specific DOM Manipulation. Two identical Script Editor Web Part Code blocks

We have a script editor web part with javascript that references some jquery libraries. The code creates web part properties and hides DIV tag in the web part based on some conditions. It works ...
0
votes
2answers
37 views

Highcharts jquery version for web part in SharePoint

I am trying to create a web part in SharePoint to get data from a custom list that contains our departments revenues. I don't want the users to check the original values instead I have a publishing ...
0
votes
1answer
46 views

Script Editor web part stops working after a filter

Whenever I apply a filter to a list view using the default filter options, my script web part stops responding. The code I'm using for the web part is: <script type='text/javascript' ...