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
1k views

Add new item to child list and refresh the parent form - multiple lookup

I've created a parent list (Vendors) and a child list (software list). There can be multiple vendors for one piece of software. I've created a custom new form with a link which opens up a modal to add ...
0
votes
1answer
4 views

Updating a list item using date() function

I have a column [ScheduleTime] which is a DateTime type in my List. Using JavaScript i need to update the [ScheduleTime] column which should be Current Day whenever my script loads. But here I need to ...
0
votes
1answer
8 views

How to pull data fields from Document Sets within an Asset Library?

I have an Asset Library with document sets, that I need to pull data from. I'm able to pull data from using the following code, but not sure how to get and enumerate data from the associated document ...
1
vote
1answer
29 views

js link group count list SharePoint 2013

(function () { var itemCtx = {}; itemCtx.Templates = {}; itemCtx.Templates.Group = GroupOverride; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(itemCtx); })(); function ...
4
votes
8answers
13k views

How can we get Cascading Lookup Columns in sharepoint 2010?

How to get the cascaded Lookup columns in sharepoint 2010,Iam having requirement like i have two lists(Category List and Sub category list)..For each item in category list i have 5 different items ...
0
votes
2answers
10 views

How to set the people picker field using jquery in sharepoint 2013 to current user

I was able to set the current user to people picker field in SharePoint 2010,but now i am new to SharePoint 2013 . Please tell me how to set the current user value to that filed. In SharePoint 2010- ...
0
votes
2answers
29 views

How can I call a custom JavaScript function after a form has validated?

I have a form for submitting events to our calendar. What I want is to call a function once the form has validated. Something like this: User edits item User clicks save button Form validates ...
0
votes
1answer
389 views

Hover effect over an image in SharePoint 2010

I would like to add a kind of hover effect over an image. My source code in JavaScript looks like the following: _spBodyOnLoadFunctionNames.push("color"); function color(){ var $th = ...
3
votes
1answer
43 views

Making SP.UI.ModalDialog Scrollable on Mobile

I have a basic Modal Dialog loading on my SharePoint page through a function. It loads correctly and can scroll on desktops perfectly fine. I began testing the page for mobile functionality on a ...
0
votes
0answers
8 views

zoom out Grantt chart SharePoint 2013 through Javascript

I would like to zoom out SharePoint 2013 Grantt Chart so that it only shows month in scale. I have seen few examples which shows the same thing but none of them is working for me. ...
1
vote
2answers
26 views

How do I add custom CSS and JavaScript to the System Master Page?

I'm using Seattle for our System Master Page. This is working fine, except now I need to insert some custom JavaScript and CSS into it. How do I add custom JavaScript and CSS to the System Master ...
0
votes
0answers
11 views

Sharepoint Survey List Question (OOTB) Column needs character limit

When a survey is entered with one question displaying in the Box On Home Page , there needs to be a character limit so that the box doesn't stretch so far as to go into other web parts and the footer. ...
0
votes
2answers
20 views

javascript to deactivate a list item

I have a Picture Library. It has YES/NO column called "Activation Status". When we deactivate a image, we have to manually, un-check the Activation Status. Can we use JavaScript code to un-check ...
0
votes
0answers
13 views

Can we use jslink for builtin application pages for specific type of lists?

Can we use JSLink for built-in application pages for specific type of Lists? What possible ways we can add CSS and JS to specific out of box List application pages? May can use JSlink?
0
votes
0answers
14 views

_spFriendlyUrlPageContextInfo undefined despite using managed metadata navigation

I'm building a custom navigation solution using the JSOM in Sharepoint 2013. I need to get the navigation term corresponding to the current page and I found this question with a similar problem and ...
0
votes
1answer
1k views

Upload a document in a specific folder

I would like to set a specific folder when I open the upload.aspx page to help. I tryed to look in the dll but the license of reflector is expired. UPDATED Maybe this post can help ...
2
votes
1answer
3k views

Launch SharePoint 2013 Workflow w/Javascript

Looking to launch a list workflow from script tied to a button on a form. I've been referencing this article, as well as the code from example 5, and even tried using SPServices, but have yet to come ...
1
vote
2answers
27 views

JSOM List Item Field Values

This should be an easy one but for some reason the answer is escaping me. I am executing a query with joins that includes projected fields (fields from one of the joined lists) using JSOM. Using ...
1
vote
3answers
475 views

Write items from a SP list to html

I've very recently picked up SharePoint and have a limited knowledge of programming so you'll need to bear with me here. I'm currently building on a development site collection in SharePoint Online ...
0
votes
1answer
35 views

Cross SiteCollection call with JSOM not working

I got a problem and my brain says "yes you made no mistake" but it doesn't work. Here is my problem: I have a SharePoint hosted App which has "Tenant read" permissions in the App Manifest. That ...
0
votes
2answers
62 views

Hiding Document Library columns used by JS file (JSLink)

Good day, Currently I have a "schedule" list (document library) which is used to store vessel schedules. Shedules uploaded are Excel files, which have named cells linked to custom properties in order ...
1
vote
2answers
43 views

Parsing SharePoint's hyperlink format with JS

SharePoint 2010, at least, has an odd format for storing its lists' hyperlink fields on the backend, namely it uses [URL], [Description] "Well then what does it do about commas in the URL" you ...
0
votes
2answers
64 views

How to set the value for a custom field in a list?

I am editing the script and HTML for a Content Editor web part. My code opens up a Modal Dialog when a user clicks a link on my page. In the dialog, the custom fields I've defined for the list appear. ...
2
votes
2answers
42 views

Is there any way to retrieve a Web by title using SharePoint 2013 JSOM without using the enumerator?

I need to get a subweb with a particular title using JSOM. So far, the only way I can see to do this would be to use code similar to the following: function getStuff() { var oWebsite = ...
4
votes
2answers
345 views

Get MySite URL using ECMA

I am trying to get the URL of the logged in user's Personal site from another site collection. I am working on SharePoint 2013 online and using ECMA.
1
vote
1answer
17 views

jQuery not being loaded from master page

I added references to jQuery and bootstrap to a master page using the <SharePoint:ScriptLink> control: <SharePoint:ScriptLink language="javascript" ...
0
votes
2answers
40 views

Is it possible to refer to a field hidden in current view from JSLink attached to current view?

I have the following JavaScript code attached to List's JSLink property: (function () { var coloringFieldContext = {}; coloringFieldContext.Templates = {}; ...
0
votes
1answer
109 views

The value of the property 'MSOTlPn_ShowToolPane2' is null or undefined, not a Function object

I have a problem with SharePoint 2010 and Internet Explorer 11. The following error message appears when I try to open the webpart menu. In Internet Explorer 8 the wepart menu works as expected: ...
0
votes
2answers
47 views

OpenPopUpPage to go to new URL on close

Currently my code is OpenPopUpPage('mydialogurl', RefreshPage) What do I need to change RefreshPage to be so that it moves to the new URL after my dialog closes? So far I can only get it to go to ...
0
votes
1answer
452 views

Grabbing a filter value via CEWP code behind

I have employed a Query String Filter to parse a value and send it to a chart web part. now I would like to use this value in a CEWP to provide an explaination/clarification for the chart, but the ...
0
votes
1answer
20 views

how can Sharepoint Person and Group field in custom new form display person name suggestions, after typing first few characters?

As with default new form of SharePoint, person and group field allows user to enter multiple names all at once . Also, my most important concern here is that while typing user name its relevant ...
0
votes
2answers
25 views

Custom Lists - set row background color in a list depending on a column value

Starting from this example: https://code.msdn.microsoft.com/office/Client-side-rendering-code-0a786cdd I would like to set the entire row background color depending on a column value.
0
votes
3answers
42 views

pop up message without using alert()

I have created warning messages using alert but it is showing site url also,so I need to create warning message without using alert in java script
0
votes
0answers
22 views

event onclick don't work on sharepoint

I have a problem with sharepoint 2010, I created a new render (.ascx) on sharepoint to be used as a graphical screen that I needed to change. My problem is that after the last deployment, events ...
0
votes
1answer
39 views

Style selected item row in a connected List View Web Part - SP2013

Currently, a selected item in a connected LVWP is only indicated by a filled, black diagonal arrow icon. I would like to add background color formatting for the selected item row. Note: I am not ...
1
vote
3answers
40 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.
0
votes
1answer
20 views

SharePoint 2010 Preloader

I'm wondering if there is any possible way to add a pre-loader like jQuery plugin to SharePoint. Not like when the page is fully loaded, show a loading gif. But something similar to SharePoint dialog ...
0
votes
0answers
21 views

Webpart not functional using custom JS

So i finally finshed my dynamic sharepoint page and everything works perfectly untill I noticed that my calendar (added as a SP webpart) is not working. When i remove the JS it works again. I have no ...
0
votes
0answers
25 views

Window.frameElement.commonModalDialogClose() after Link in new Target (IE vs. Firefox)

We use modaldialog to open popups with 2 images and when you click on one of these images, a new tab opens and the modaldialog close. In IE it works, in firefox only one of them, close dialog or new ...
0
votes
0answers
21 views

Need to show Popup showing whole content of web part [closed]

I have a webpart on SharePoint online site. I have customized the site using bootstrap3 model. I need to write customized JQuery code such that if content on webpart exceeds 4 lines, it should trim ...
0
votes
1answer
20 views

SP.ClientContext.get_current() is returning the wrong AD username?

I'm logged in as the following user myintranet\svc_q_sp_farm. The "About Me" page lists my details as svc_q_sp_farm, however the following CSOM/JavaScript code returns Sharepoint\System as the user. ...
0
votes
1answer
20 views

JavaScript writted via Script Editor web part does not recognize page elements

In SharePoint 2013 I added a div on a default.aspx like this: <div id="myDiv"></div> Then I added a Script Editor web part on the page, and added this JavaScript: var element = ...
0
votes
1answer
427 views

loading multiple files from custom action with SP.ClientContext

I made a custom action that calls GetSelectedListItemAsString(). it should load the files 1 by 1 but somehow it does not load the files can somebody help me with it underneat a code snippet of the ...
0
votes
0answers
19 views

Migration 2010 to 2013 JavaScript

When I´m doing a migration from SharePoint 2010 to 2013 (2010 Compatibility mode) I get the following error: A button click (Custom Code WebPart) at the main page is not working. When I click on the ...
0
votes
0answers
17 views

SharePoint CSWP 50 Item Limit

Would anyone be able to suggest an approach for increasing the default 50 item limit returned by a CSWP? This is for a solution that uses a custom display template to render the results out in a ...
1
vote
1answer
455 views

Column not found when creating list item with Javascript

I am making a SharePoint app with javascript. I am trying to add a list item to a list I have defined in Visual Studio. I have done this just by adding a list in the solution explorer, and I made ...
1
vote
1answer
1k views

_spPageContextInfo is undefined in client web part

I have created a client web part for a SharePoint-hosted app that I am creating. The app makes use of the clienttemplates.js library in SharePoint to render user presence (Lync) in the web page. I am ...
2
votes
1answer
784 views

How to open file in adobe reader using command line without checkout from Javascript?

I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
2
votes
1answer
182 views

Adding 2 Caml queries in same executeQueryAsync

Is it possible to use two different queries to get to different lists and use them in the same executeQueryAsync() Something like this : var camlQuery = new SP.CamlQuery(); ...
1
vote
1answer
230 views