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
21 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
29 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
24 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
29 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
34 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
33 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
57 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
18 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
63 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
21 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
18 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
39 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
50 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
37 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
77 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
21 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
30 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
30 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
66 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
53 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
68 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
28 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
50 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
74 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
28 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
48 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
60 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
98 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
50 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
54 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
31 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
42 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
26 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
36 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
147 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
34 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
33 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
33 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
55 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....
0
votes
1answer
20 views

SharePoint 2010: Add GroupBy to existing list view using JSOM?

Is it possible to modify an existing view, more specific adding GroupBy, using JavaScript / JSOM? I am creating the library using JavaScript and I'd like to add a GroupBy in the "all items" default ...
3
votes
1answer
43 views

Is there a way to only load javascript based on the authenticated or anonymous user?

We have several page layouts that are calling a javascript file and we are trying to improve our page speeds and we figured we only need to call this js file if the user is logged in. Otherwise for ...
0
votes
1answer
16 views

Looping through CQWP li's

I have a CQWP that executes the following JS: var projectstartdt = $(".hiddenProjectStartDate").html().split(/\-|\s/); var ProjectStart = new Date(projectstartdt.slice(0,3).join('/')+' '+...
0
votes
1answer
27 views

Java Script With Sharepoint Designer 2013

How can I Implement the following : I Created Custom Edit Form for my custom List with tow field ( title , checkedIn ), when you click save button i want to show alert message (yes/No) , if You choose ...
0
votes
1answer
24 views

Javascript help with retrieving data from list SP2010

I would like to retrieve data from a list that has 2 columns but 4 fields. Ex. I need the calculation from monthly & yearly cost from group 1 and calculations for monthly cost & yearly cost ...
0
votes
1answer
42 views

How to check page layout from javascript of current page in sharepoint 2013?

Does anyone know how to check page layout from javascript of current page in sharepoint 2013? Ideally I would prefer to not use any ajax calls. Thanks