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)

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
95 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
26 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
31 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
26 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
38 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
76 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
22 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
55 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
40 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
100 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
36 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
36 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
80 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
63 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
70 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
69 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
104 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
33 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
51 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
11 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
162 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
55 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 ...
1
vote
1answer
58 views

Customize Context Menu of a library with JavaScript (Script Editor Web Part)

I'm searching for a way to customize the context menu, which is opened when one clicks on the (...) of any item in any document library. Following things I would like to realize: I would like to ...
0
votes
1answer
38 views

loading workflowservice manager from javascript giving “Invalid request” error

I have a web part page where a list view is added and need to start workflows on items in this list using java script, on click of a button. Below is the code snippet, which fails with error message ...
0
votes
0answers
49 views

run external JavaScript or jQuery in sharepoint infopath form after postback

problem occur when postback on a field happen, all external js code stop working until run js code again. how can i use external JQuery code in sharepoint with infopath form in it ?
0
votes
0answers
28 views

Content of Content Editor webpart received by REST call? Is that possible?

I may have various GUIDs and paths/files in hand, but still not able to find the inner content of webpart editor via REST call. I have 1) page name and path, where Content Editor webpart is placed 2) ...
0
votes
2answers
37 views

monotools and sharepoint 2013 conflict

There is a conflict between SharePoint and monotools.js . SharePoint tries to use the method: Type.registerNamespace and monotools.js register a function with the name Type as well. If you call the ...
1
vote
2answers
160 views

Add JQuery to SharePoint

I want to add some global JavaScript to Sharepoint 2010. So I put JQuery to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\LAYOUTS and my script to C:\Program Files\...
0
votes
1answer
49 views

Open attachments in new tab issue

I am trying to open list item attachments in a new tab (when user clicks on an attachment in display form) I am using this piece of jQuery/javascript in my custom display form to do that: $(document)...
0
votes
2answers
35 views

Show column depending on dropdown selection - not working

Depending on dropdown column selection,. I need one of 5 columns to show and hide the others, however the code does not seem to work, what am I doing wrong? I know I'm missing something. // Execute ...
0
votes
1answer
34 views

How to have number of chosen Lookup field in another list?

I am working on SharePoint 2013 Enterprise. I am looking for a functionality so I can sum item chosen in a list. As an example I have a list call Bus which is the parent list. The second list is the ...
0
votes
1answer
59 views

Pull Data from SharePoint List using JS and converting it into HTML in the following format?

I was wondering how to use JS in order to pull Data from a SP2013 list convert it into HTML using the following structure below. For example: The List fields are as follows: Title Date Image Body ...
0
votes
1answer
46 views

deleteObject undefined error

I'm getting this error when i'm trying to execute delete code SCRIPT5007: Unable to get property 'deleteObject' of undefined or null reference Here is my code...Not sure what is going wrong here....