Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

learn more… | top users | synonyms (2)

1
vote
0answers
40 views

Get the last rated item in a SharePoint list

we have a SharePoint list with social rating feature enabled. On the homepage I want to display the "Latest Voted Item" of that list. Is it possible to get the last rated items in a SharePoint list ...
1
vote
1answer
31 views

Removing the href from the day number link in a calendar

I'm creating a calendar for work requests into the team, I want to limit the view to month only which I've done by hiding buttons etc with css and a little Javascript, if you look at the image below ...
1
vote
3answers
50 views

Office 365 how to hide ribbion

I want to hide ribbon like :- Outlook, Calendar, People etc in below print screen marked in red round I want to hide only these options. Please advice.
1
vote
1answer
42 views

stopping black x when retrieving profile pic, not filling in details

I have a page in which I am getting a profile pic from mysites. It asks for the password and when you fill in the details it does what its supposed to and the profile pic appears. However when you ...
1
vote
0answers
128 views

JavaScript error with paging in community discussion SP 2013

I have a community site with many discusssions. One of them is a discussion divided into 3 pages (each answer has text and animated gif). When I try to go to page 2, in default (Flat) view mode, I ...
1
vote
1answer
180 views

JSLink Client-side rendering

I need to render some fields client-side, I followed this guide: Client-side rendering but this code is not working: (function () { // Create object that have the context information about the ...
1
vote
1answer
56 views

Hide empty columns in PerformancePoint Scorecard dynamically

I have a scorecard with several empty columns which I want to hide dynamically. In the illustration above, I want to hide three empty columns, viz. MidYear Income, MidYear % and MidYear Status. ...
1
vote
1answer
183 views

Automatically add attachment to new list item

is there any way to automatically add an attachment stored on the SP server to the new list item? I enter the URL of the file and this file will be stored after adding item in ...
1
vote
0answers
39 views

people picker, on edit page, display on published page as hyperlink

Basically I have a people picker like so in my page layout <SharePointWebControls:UserField ID="UserField2" runat="server" FieldName="Approver"/> this shows in the edit page and when it is ...
1
vote
2answers
124 views

Sharepoint Scoped External Content Type List - Update and Delete not Working RESTFul

SharePoint 2013 I currently have a OData service created and I have bee successful in reading and Insert to database it references, via javascript. When I am doing a DELETE or UPDATE I get the ...
1
vote
1answer
145 views

init.js Obect expected error with SP.SOD.executeOrDelayUntilScriptLoaded

I am using SP.SOD.executeOrDelayUntilScriptLoaded as follows SP.SOD.executeOrDelayUntilScriptLoaded(NBSFeedbackEditInbox.FeedbackRemove.removemessage(itemid), "sp.js"); Yet I am getting an error ...
1
vote
1answer
39 views

Sharepoint Site Content Gear

I need to hide and avoid reader users (users view just read permission on the site) to view the site content page (viewlsts.aspx) How can this be done?
1
vote
1answer
151 views

SharePoint 2013 Timeline Coloring

I want to color a timeline with data of a specific column. This column is named Topic. So I wrote some code and added it to my SharePoint site but it didn't work. Here's the code I used: var ...
1
vote
1answer
64 views

Sending user's input from JavaScript into date filter webpart

I want to do date filter for one field in my external list using calendar in order to hep user input date value. Since drop-down calendar in date filter web part doesn't work (i don't know why, when ...
1
vote
2answers
54 views

Accessing Custom Web Part Attributes From Javascript Functions

I am developing a web part currently which has custom attributes which are defined through C#, but most of the logic has been completed using javascript. I am having trouble getting the attributes ...
1
vote
1answer
75 views

Add a sequence to list SharePoint 2010

I have a problem of sequence in the list SharePoint 2010. I need a column Sequence with format 000001. This column is in type of single text. I think the best way is customizing a workflow, but I ...
1
vote
1answer
90 views

ClientPeoplePicker is underfined

I'm trying to get ClientPeoplePicker control with following code. function setCPP(userAccountName, controlName) { var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + ...
1
vote
0answers
25 views

Determining Users on SharePoint website with API?

Was thinking about building an app part that enabled some level of in-app messaging to other users currently on the site (probably via use of websockets connections to each other). Is there any way ...
1
vote
2answers
162 views

How to send a document from a document library as an attachment in an email?

I need to add a column to a document library that will have the text "Send in email" for each document in the library. If a user clicks on it, it should open a new Outlook email and automatically add ...
1
vote
2answers
1k views

How to save checked value/state from radio button in an Html page form to custom list in sharepoint online 2013

I have a working loop that finds all the input tags in a Html form. My problem is that it wont save what state the radio button are in to the custom list in SharePoint online. I have other loops for ...
1
vote
1answer
53 views

Return to last page visited

I have Sharepoint in Office 365. The site is set like this: Home>Training>Training Request Form. I have it set so that, on submit, the Training Request Form displays a thank you and a link that ...
1
vote
1answer
517 views

Custom .aspx as modal dialog not working: 'SP' is undefined

SharePoint 2013 server... I have created a custom aspx page for use as a modal dialog. I want this pop up to collect field values and return them to the form the pop up was called from. The pop up ...
1
vote
1answer
192 views

Update Custom Field in Task Project Online

Hello I found this article: Updating Project Server custom fields via JSOM. This article explain about how to update custom field value in Project. In my case, I am trying to update custom field ...
1
vote
0answers
37 views

Cannot update allowMembersEditMembership

I can't seem to update the setting on a group to allow members to edit members. This is my code: function setGroupsMembershipEditingMode(uri) { var context = new SP.ClientContext(appweburl); var ...
1
vote
1answer
70 views

Conditional formatting in display template in sharepoint 2013

I have a Content Search Web Part (CSWP) that lists two different content-types from a different application. I would really like to be able to make the CSWP show content-type A in green and ...
1
vote
0answers
57 views

Uncaught Reference error:InitImgLibView not defined

I have a visual webpart solution.A picture library is there whose view i have modified by taking newsletter as a style.. I have written a code in javascript that will allow only image files to get ...
1
vote
1answer
481 views

CRUD Tasks using Javascript via REST OData

I've looked this post to build CRUD process using Javascript via REST OData. I've have managed it for Risks and Issues list. But, I haven't succeeded for Tasks item. What's the difference between ...
1
vote
0answers
49 views

Upload using JavaScript, outside Sharepoint

Is it possible to upload a file to SharePoint 365 / OneDrive Business, using pure JavaScript or jQuery, when running from an external website? (Not a SharePoint site) I have written some C# code, ...
1
vote
1answer
459 views

REST API ItemCount on oData BCS List

I have a list generated from a BCS oData provider and I am attempting to get the number of items in the list so I can generate a $top on my request rather than bring back only the 100 item generic ...
1
vote
2answers
145 views

jquery in SharePoint 2010 layouts folder not working

I have placed the jquery library script in the layouts folder on my server: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\CustomScripts for what ever ...
1
vote
0answers
51 views

SP13: Blank Space on Pages

I am recently changed the master page to have the page content to be centered. My focus for the centering was on the home page that successfully centered. However, navigating to the other pages the ...
1
vote
1answer
36 views

Script Returning �

I use a lot of JavaScript in SharePoint, but today I came across a problem that I do not understand. Every time I use accents in a script such as in an alert, it returns the following strange symbol: ...
1
vote
2answers
157 views

How to get current search query in a search page

In a SharePoint 2013 publishing site, I have a custom search page. This page can be reach from the search box in the master page. It lands on : http://server/pages/search.aspx?k=myquery, which is ...
1
vote
1answer
122 views

How To “Add New Item” On Quick Launch & Refresh Page

On a SharePoint 2010 site how can I create an "Add New Item" link to the quick launch that will refresh the parent page when the new item is submitted? I have used the following snippet to create the ...
1
vote
0answers
57 views

Create folder inside site assets

How can i create a folder inside site assets from a app? Here is my code, it says that folder item is undefined. var hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var ...
1
vote
1answer
69 views

how can I http POST to libraries with SP 2010's REST API?

SP 2010's REST api documentation cites an example that uses a list, whereas I wish to rely on a library (for example, "SharedDocuments"), because a standard named library already exists in every ...
1
vote
1answer
91 views

SharePoint 2013 Online Search Query for Site Collections

I wonder if It's possible to get all my site collection names or paths in Javascript, Visual Studios. I've found them through REST when I put server/_api/search/query?querytext='sharepoint' in the ...
1
vote
0answers
37 views

Sequential number generator with a twist

I have an assets list. The asset needs to have an asset number assigned upon creation. The format of the number should be A-99999. There are existing asset numbers I have to work around in order to ...
1
vote
0answers
63 views

To Scroll to the top of page

I'm using angularjs & sharepoint 2013. I have implemented the SPA model in one page where the entire page refresh may not happen. Here, the scroll bar is not always going to the top of page since, ...
1
vote
1answer
269 views

Add button to webpart with javascript

I want to add button to all web parts of my home page instead of add new item link and I've no idea how to create it For additional information I am using share point 2013.
1
vote
1answer
58 views

Compare Credentials to his one's own login credentials

I would like to compare the current user credentials with my UserAccount and if they are identical then I would like to have an alert, but It doesn't work. I don't know why.I hoept that you can help ...
1
vote
1answer
151 views

“Working on it” message - Handle event and hide some blocks

I edited master page, added some custom blocks. My problem is when opening the web site I see my footer and header blocks. How can I hide these blocks when "Working on it" block appears? Can I ...
1
vote
1answer
45 views

Access Sharepoint Images from app

I'm in the process of setting up a REST call to access images in a SP folder via Office365. My question is where do I add my onedrive credentials as part of the REST call? Once the call is ...
1
vote
1answer
44 views

PDF Preview in library

I have a library full of pdf's. Is it possible to show a preview of this documents in the library view? The preview is necessary because there are 5 user which work in the library and add the ...
1
vote
1answer
2k views

Conditionally hide/require form column based on radio buttons

I'm sure it's been asked a million times, but after hours of searching and messing around I have been unable to find a solution...Hopefully someone here can help me? I have a SharePoint list that has ...
1
vote
0answers
373 views

SP.SOD.executeFunc not calling function

Compa've added following script to JSLink property of a custom content type ( JSLink="~sitelayouts/ProjectFolder/script1.js" ): window.alert("started"); SP.SOD.executeFunc("sp.js", ...
1
vote
1answer
465 views

How to Print a table with Style

I cannot print a page with Style in SharePoint. Please take a look on two images below. I've added the media="all" or media="print" into <style type=text/css> but these didn't work. The screen ...
1
vote
1answer
618 views

Sharepoint 2013 search box press “Enter” refresh page and not trigger JS event

I am migrating a site from SP2010 to SP2013. One of JS is working on SP2010 mode and not in SP2013 evaluation page. <input id="SearchBox" value="Search…" ...
1
vote
1answer
321 views

Pass NewItem ID to Callback function from NewItem form

I have a rigged a link to call the NewItem.aspx form in a dialog. When the User clicks 'Save', I would like to return the new item ID in the callback function. How is this achievable? <a ...
1
vote
0answers
25 views

Control Access Request Dialog

I want to write in the text area that there in the control of access request programmatically I take copy of the control from sharePoint and added it in application page but I cann't catch it with ...