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)

0
votes
1answer
20 views

How to Parse GetMyProperties REST Response

This is what the pre-parsed data looks like in the console after querying http://mysharepointsite/_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=Department : I am trying to get the ...
1
vote
1answer
44 views

CSOM: Get the exact Url of SharePoint hosted list

here I wish to retrieve the URL of SharePoint hosted list it's like http://app-0329d4c1001648.spapps.com/sites/site1/EmployeeList/EmpList I tried some approaches but these are not that much useful,...
0
votes
0answers
36 views

JSOM returns empty object on some pages

I've got some JSOM code that I use in two forms: a display form and an edit form. On the display form, DisplayTicket.aspx, it works exactly as expected. On the edit form, it runs and the JSOM call ...
0
votes
1answer
52 views

Focus out event People Picker

I want to do some operation when focus is lost from <SharePoint:ClientPeoplePicker>. Is there is any event like FocusOut or any other event. Thanks
2
votes
2answers
39 views

Status Color instead of Status Text

So I am trying to add the color to the field instead of the status text. How would you guy by doing this?
0
votes
2answers
51 views

SP.js is not loaded in page

I am using this piece of code on a couple of sites within my SharePoint Online environment: SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function(){ alert('test'); //my code follows }); ...
0
votes
2answers
70 views

SharePoint JSLink override not working

I need to overwrite a multiline sharepoint field by a tooltip but it's not wotking. (function () { var SubjectFiledContext = {}; SubjectFiledContext.Templates = {}; ...
0
votes
1answer
98 views

SPServices.SPGetCurrentUser does not work on subsite level?

I am using SPServices to get current user like this: var user = $().SPServices.SPGetCurrentUser(); This works fine in the main site, but when I use the same line of code in subsite, I get: ...
0
votes
1answer
65 views

Getting no REST data in SharePoint in a html file

I am trying to get some data from a REST Service Url in a html file. This works fine when i am using the code direct in my browser. But when i embedded it into my SharePoint Site it wont work. On my ...
0
votes
1answer
53 views

postMessage with SharePoint iframe resize not working correctly

I have a problem trying to resize an iframe inside a SharePoint Online environment (O365) through Cross Domain. I've tried a bunch of solutions found on the net and nothing works except Baker Humadi's ...
0
votes
1answer
38 views

When creating a Sharepoint survey, how can I have an automatically self-updating dropdown list of answers choices?

I am working with SharePoint and creating a survey with it. I would need to have a question where the choices for answers update automatically based on an outside source (either excel or SharePoint ...
4
votes
1answer
49 views

add 15 days to date variable

I have the following line of code that pulls a list field date and stores it in a variable called dueDate: var dueDate = new Date(ctx.CurrentItem.ReminderDate); How do I create another variable ...
3
votes
1answer
103 views

Modify sharepoint document library callout

I am trying to override a sharepoint call out in a document library. So far, I was able to add a link to the footer using this javascript: SP.SOD.executeFunc("callout.js", "Callout", function () { ...
0
votes
2answers
55 views

How to get ClientContext in CSR?

In a document library's /Forms/AllItems.aspx, I am trying to render a column from ID to a file URL (FileLeafRef). However this line of code: clientContext = new SP.ClientContext.get_current(); ...
0
votes
1answer
23 views

What is a “valid SharePoint user”?

I am wanting to use AJAX / SP.Utilities.EmailProperties to send an email out to a group mailbox. I have got the code to work to send emails to individuals, but am unable to send to a group mailbox. ...
0
votes
0answers
31 views

AddBehavior & navigateFrame (Open With Explorer) SP2010

I have been facing an issue with "Open With Explorer" and well, restarting WebClient service helps sometimes, restarting my PC also helps sometimes, but that is totally not handy. I have taken a very ...
0
votes
1answer
27 views

Possible to externally access Sharepoint 2013 via Javascript alone?

Is it possible to access SharePoint List Data from an external javascript sitting outside the SharePoint environment? Is there an example out there?
0
votes
1answer
22 views

Getting the site collection url for 2007 to O365

I'm trying to figure out how to get the site collection url for any version of SharePoint, not sure which method would be the best I figure using window.location probably isn't reliable, ...
0
votes
1answer
32 views

How to hide elements in dialog box?

In SP-2013 on prem, I am trying to hide all elements except the one element where one can browse for pictures, like shown in this picture where I want to hide everything inside the red square. I ...
1
vote
1answer
27 views

Link to Grouping Categories

I would like to create a link that will take me directly to the grouping section in a list. This is similar to page anchors on a word document. Is this possible? Update: This is a custom list not ...
0
votes
0answers
30 views

Papa Parse and SharePoint

So, I have applied Papa Parse to a page that has a view of the list I'm working with. I have successfully read a CSV and logged it to the console. My question is, how do I update all items in my list (...
0
votes
0answers
40 views

I am having trouble with URL's using REST API in sharepoint 2013, for some reason it adds site pages and removes Document Library name

I have recently came across a problem with my code for a Document Library filter using the REST functionality. My code (below) returns all documents and folders correctly but when I open the ...
0
votes
1answer
44 views

Add Webpart to a Page using only Javascript?

Is it possible to add a webpart to a page using Javascript. I want to add a webpart to a specific page whenever a button is clicked.
2
votes
2answers
61 views

Color code due date field

I have modified the following script to display my ReminderDate field in red if the date is past and also the feedback field is false. Before implementing this and because I am a novice in jslink/...
0
votes
0answers
26 views

Hover Popups/Callouts inside SVG tag in SharePoint 2013

I am trying to add a hover popup/callout by applying the CalloutManager in an element inside a svg tag. SharePoint uses a different version o jQuery, it is implemented in a file called mquery.js. The ...
0
votes
0answers
19 views

How do I access a Service Application field in Central Admin using CSOM from JavaScript?

In Central Admin you go to Service Applications and you will see a list of applications. For example: Access Services 2010. When you click Access Services 2010 a list of fields is displayed as ...
1
vote
2answers
82 views

Set Welcome Page using Javascript only?

Is it possible to set the Welcome Page of a SubSite using only Javascript? I'm looking to create an Onclick Event that does this. Anything would help.
0
votes
2answers
23 views

Showing the current date in a text line on a page

I made a report page for our call desk. The page will be printed and be used by management. So preferably i have in the page on top inside a text field a script snippet to shown the date as when this ...
0
votes
0answers
24 views

sending document to record centre using JavaScript

I need to send documents inside a document library to record center using JavaScript. I have tried with officialfile.asmx without any outcome.
0
votes
1answer
44 views

REST copyTo Method in SharePoint Online

I'm trying to make a copy of a MS Word document and add it to a document library in SharePoint Online with the below code, which runs once without firing the success or fail message, and throws "SP....
0
votes
1answer
56 views

How do you populate information from a user's AD profile to a list's field?

Basically I want to create a Staff Directory on SharePoint that auto-populates a user's location (we are multi-site), Phone Number, and Title. I am hoping to automate some of this process by pulling ...
0
votes
0answers
42 views

OK button not working, throws JavaScript error when edit list column name

I have a custom list, when I go to its setting, edit the default "title" column, renamed it to "questions" then click OK button. The page has no response. After inspect the page with inspecting tool, ...
1
vote
2answers
106 views

How to modify/add columns to a default list view using JavaScript

Using a JavaScript, I create new custom lists including some new fields. After list creation, the default view shows all the added fields. But I also want the columns 'Modified', 'Editor' and '...
1
vote
0answers
22 views

Sharepoint dashboards interaction

On a SP BI solution there are two dashboards, both interactive. The wish is when someone click on a field in the left dashboard, an action is happening in the right dashboard, that is, sorting the ...
0
votes
0answers
38 views

Show and hide Web Parts: How to keep Web Part opened?

I've added the script (you can see below) to my site, which hides Web Parts in standard and opens / closes them by clicking on the title. Now I have the case, that I used this code on two document ...
0
votes
0answers
38 views

Add custom button to Sharepoint 2013 ribbon to print

I need to create a shortcut for my client to print a document from a SharePoint library. The user needs to select a file in the library and then in the ribbon click on the custom Print button. This ...
3
votes
1answer
88 views

Overwrite Add Document Function for Document Library in SharePoint Online

I want to hijack the call to CoreInvoke on Adding a new document for a given SharePoint online document library so I can prompt the user for some metadata and populate the Word document with it ...
0
votes
1answer
65 views

How to add a button to a document library

So I want to add a button to a document library next to the other buttons (new, upload, sync, more) that acts as a link to take you to a page related to the document library. I have already put a ...
1
vote
3answers
71 views

Errors when reading a lookup field of a list item using the JavaScript Object Model

I changed a field from being a single line of text, to being a lookup (still only displaying a single line of text, but it's fetched from another list. The field's internal name is Status. This is ...
1
vote
2answers
30 views

How to remove certain entries of context menu [(…)-Menu] using Script Editor Web Part (JavaScript, jQuery)

How can I remove certain entries of the context menu (marked in my screenshot with red border) by using Script Editor Web Part? As an example, I would like to remove the entries "Im Browser bearbeiten"...
0
votes
2answers
73 views

Get the Termset with Javascript and nothing return

We are working on a SharePoint 2013 on-premise farm. I am trying to return the termset object with ID 'xxxxx-xxxxx-xxxxx-xxxxx-xxxxx'. Here is my script. I add a content editor webpart and insert ...
0
votes
1answer
28 views

How to skip preview-window within context menu [(…)-Menu] with JavaScript (Script Editor Web Part)

I would like to skip the preview-window (red marked in my screenshot) within the context menu [(...)-Menu] of a document in a library and go straight into the menu (which is opened when clicking in ...
1
vote
1answer
120 views

how to get current sp user department using javascript/spservice

How to get current login user department using java script or spservices? Any idea?
0
votes
0answers
23 views

How to add 2 display form in one?

Recently I was worked with Related list and it solved lots of problem from my users in SharePoint 2013. I am wonder if I can add 2 Lists Display form in one. This is one of my users idea's and she ...
0
votes
0answers
36 views

SharePoint App - How to Create/Populate Excel Spreadsheet Using JavaScript and List Data

I'm trying to create a Excel spreadsheet on a SharePoint app/add-in. The data that will populate it have been gathered from several SharePoint lists on the host web. Right now, I'm able to interact ...
0
votes
1answer
52 views

How to link a new implemented item in context menu with javascript?

I'm working on customizing the context menu [(...)-menu] of a document library. In line 5 of my code I'm trying to give a link to my new inserted entry of context menu, but the code seems wrong and ...
1
vote
1answer
64 views

SharePoint Online JavaScript client

Is there a way to connect to SharePoint Online from Web client javascript (js-code embedded in an .aspx page). How can I authenticate ? How can I access list item objects such as library ...
0
votes
0answers
12 views

SharePoint 2010 - List, make pop-up confirmation when user clicks the 'X' on the modal pop-up

I have been trying but have had no luck with this. Basically when a user goes to a list, clicks on new item, and then a modal box pops up while the background goes grey that has a grey 'x' on the top ...
1
vote
1answer
182 views

Add Back Button to Survey List in SharePoint 2013

In Survey, people can respond all the questions sequentially within one page or Add branching logic to answer one by one like wizards. Please refer the Image After creating survey with ...
0
votes
0answers
56 views

SharePoint 2010 - SharePointPlus Add/Update/Delete list items baed on an HTML table

I have a list that is updated in a system. I save the list as an HTML table (the table ID is "Tracker") on the SP site. I have the table saved and updated periodically. I found the below code (It ...