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
61 views

lookup columns are displaying an “ID;#” how to remove them using jquery

I am using spservices to fetch the lookup value . I have used the below code in All items .aspx and is working fine. However the lookup value is showing like this 49#;santosh@gmail.com;#19;#afre@...
3
votes
3answers
142 views

SharePoint DateTime issue when date is saved using CSOM

The timezone set in SharePoint Online is EST and when it is being saved to SharePoint using CSOM/ECMA script from location with UTC +5:30 timezone the date is reduced. Everytime we edit the time is ...
1
vote
0answers
91 views

SharePoint DateTime Control Change Event

I have SharePoint DateTime control and I want to execute some code whenever the user changes the date using JQuery or JavaScript. Thanks
0
votes
0answers
41 views

Call a Javascript Funtion when Delete Operation Occurs in Document Library

I need to call a Javascript function when a delete operation occurs in a document Library. What is the best way to do so? Example: Suppose I need to show a JS Alert when a document is deleted.
0
votes
1answer
68 views

How to set Date Field on insert form to null if date is not required

I am trying to set date field to allow null values on my insert form but every method I have tried comes back with " cannot insert null values". I simply want to allow users the option to insert a ...
0
votes
1answer
33 views

Appending stylesheet from master page to all the iframes(App parts)

I am trying to append stylesheet from master page to all the app parts included in the master page using javascript. Here is the piece of code i worked upon: var d= frames[0].document; d.open(); d....
2
votes
1answer
38 views

i am retrieving date of birth from list..but my o/p is coming as Tue Dec 15 10:30:00 UTC+0530 1992

function OnLoadSuccess(sender, args) { var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current();...
0
votes
0answers
79 views

SharePoint Online Edit Form JavaScript Errors

I am seeing JavaScript errors on the edit form of one of my tasks lists - see below. I have added my own custom JavaScript on this edit form. This is in the Chrome browser. I haven't tested ...
1
vote
1answer
56 views

I am getting “<div>​Manyata embassy,Bangalore</div>” with extra div tags,but i want only Manyata…bangallore to be retrieved in sharepoint list

function OnLoadSuccess(sender, args) { var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current();...
1
vote
4answers
76 views

How to give one ID to Set of web parts in SharePoint?

I am trying to show/ hide set of web parts on click. I already wrote the coding and I can hide/show web parts one by one on click and the reason is that each web part has unique Id. Now I am facing ...
3
votes
1answer
73 views

What is the best way to add JSLink inside form tag

I am trying to add JSLink insided for tag in my SharePoint hosted app <Form Type="NewForm" Name="{878B105CA-A7O8-7C28-HD7F-5B0DCBA7DSA}" SetupPath="pages\form.aspx" ...
0
votes
1answer
37 views

Sequential ExecuteQueryAsync?

How do you properly code / process 2 ExecuteQueryAsync, with the 2nd one reliant on the items of the 1st one. Basically, I have 2 Lists. 1st List is Main List, and 2nd one is like an extension. 2nd ...
0
votes
0answers
39 views

How to retrieve all pages from “Wiki Pages Library” using JavaScript

How to retrieve all pages form Wiki Page Library through CSOM (JavaScript)? Can anyone share an example?
0
votes
1answer
31 views

use javascript in a commandAction to open a new link

I would like on a CommandAction="" to open a page. I successfully done it with the following code: <CommandUIHandler Command="CustomTab.MyButton1" CommandAction="{SiteUrl}/Lists/Test" /> ...
0
votes
0answers
45 views

How to connect Office Add-In to SharePoint On Premise

I am trying to develop a Word Add-In and I need to retrieve a SharePoint list items. 1st Question: It is posible to write CSOM (c#) code instead Javascript? 2nd Question: How can connect to a ...
0
votes
0answers
16 views

how to give a document link in resourse.js file varialble

I am using below var importFileNameDescription = "Browse to the document you intend to import. This document has to be a Excel file."; for localization in my Resource.en-US.js file in the text I ...
0
votes
2answers
68 views

In SharePoint 2010, is there a way to display the total number of items that were submitted for the current month?

Example: I entered 10 items in a list this month and now I would like to see the number 10 display in another web part in another page. I don't want to see the individual items I just want to ...
0
votes
0answers
28 views

Add New Calendar item default All Day Event BUT reset when unchecked

I have the below code for setting all day event to yes ( checked) BUT I wanted to do the resetting to the original when unchecked in SharePoint 2010 Calendar event: <script> $(document)....
0
votes
0answers
30 views

SP13: Showing Image in Custom List

The first part is working not the second. Intent: To have users select add attachment button on a custom list new form. Then select browse button that allows to browse out to select image on computer....
3
votes
3answers
232 views

Remove ribbon tabs with javascript (no jquery)

I'd like to know whether it is possible to remove ribbon tabs (in a list, page or form) working directly on the ribbon object via javascript. I don't want to simply hide the post-rendered HTML of the ...
1
vote
2answers
101 views

Is there any init function in sharepoint hosted app, It should run once when app is installing

I have to create list when SharePoint hosted app is installing. Is there any function call in SharePoint which runs when app is adding or installing in SharePoint site.
0
votes
0answers
36 views

Javascript to submit Web Part without click

From a previous question, I am able to populate a textbox with a value I can use to reference another list. However, in order for this functionality to be as user friendly as possible, I would like ...
0
votes
1answer
32 views

display image from library picture

I have a library picture called "pictures" on it there is a picture "test" (.png) I searched how to display this picture inside a webpart, i read that Javascript is perfect for it but i didn't find ...
2
votes
4answers
93 views

How to add script reference on master page?

I have applied master page using JavaScript in my SharePoint Hosted App. This script reference is added on default.aspx. Now I want to add script reference on master page which I have applied so that ...
0
votes
2answers
71 views

disable people picker 2010

I am using following "code" to disable people picker in custom edit form: $("div[id$='_UserField_upLevelDiv']").attr("contentEditable",false);//Disabling People picker $("span[id$='_UserField']")....
0
votes
1answer
66 views

How to run JavaScript code when SharePoint Hosted App is installing

I have to run code for creation of lists in SharePoint site (Host-web) when my SharePoint Hosted app is installing. I have 3 to 4 App-parts in my App. Where should I write JavaScript code which will ...
1
vote
0answers
26 views

Javascript error on action buttons in SharePoint 2013

While editing a survey, or reordering columns for Shared Docs in SharePoint 2013, we are experiencing issues where the "OK" or "FINISH" buttons do nothing. Looking at developer tools (F12), we see a ...
3
votes
2answers
66 views

How to restrict the number of lines to show using jquery or css?

i have created simple Custom webpart. It looks like in that web part, Description display multiple line . i have used html P tag to display Description value <p>​Loream Ipsum​Loream Ipsum​...
0
votes
1answer
86 views

JS Link and CSR: Error After Filtering and Viewing/Editing

I have a *.js to color code my rows according to the value of the column Status. It is working very fine UNLESS one filters any column and views/edits an item. After exiting the item view, the ...
0
votes
1answer
54 views

Save conflict - reset ratings and ratingscount in presaveaction

In my Editform I wish to reset all the ratingcounts on save, however I am getting an error message Save Conflict. Your changes conflict with those made concurrently by another user. If you want your ...
0
votes
1answer
47 views

ModalDialog // change title when dialog openned

I open popup modal dialog with something like this: openInDialog: function (dlgWidth, dlgHeight, dlgAllowMaximize, dlgShowClose, needCallbackFunction, pageUrl) { var options = { autoSize: ...
0
votes
1answer
106 views

Uploading File with rest api and HTML5 api

I am using SharePoint 2013 on premise. I am trying to upload file to the custom list from custom webpart purely jQuery and javascript. In my form I have hyperlink, when I click on it, it will open ...
1
vote
4answers
217 views

change SharePoint list field color using jquery code base on value?

I am working with SharePoint list and I need to change the Number field color if it is greater than 60. I tried to change the code below but it did't work. I also checked all answers but none of them ...
0
votes
1answer
112 views

Fetch the document name from Document Library using Document ID

I have a Document Library with multiple documents. One can select multiple documents even all the documents at a time. I need to fetch the documents name which are selected in Javascript using JQuery &...
0
votes
1answer
43 views

Trying to Start SharePoint workflow from code

I have what may be a familiar piece of code for starting a SharePoint 2013 workflow, except mine fails with an error of "Error: Value cannot be null. Parameter name: subscription undefined." The log I ...
3
votes
1answer
48 views

How to know which people picker is which

I'm trying to replace all of the "bad" old-style people pickers on our custom new/edit forms with the new good client-people pickers. With this thread I came up with the idea to use jquery to find ...
1
vote
1answer
80 views

CSR: ScriptLink/Custom Action CDN Libraries load after JSLinked files are loaded

I am almost to 2.0 with the generic iCSR support library. Having some issues with deployment: Adding the library as SiteCollection ScriptLink/Custom action loads it before msajaxbundle where Type....
0
votes
1answer
67 views

changing field values by js // ClientFormPostBackValue // webparts

i have kinda strange issue here. i have an item form. on that form i placed a webpart list view. this webpart list view is binded to my item by ID. this ID i placed in a simple input text field. ...
0
votes
1answer
44 views

New/Edit form how to tell if people picker is multiple or single with code

I'm doing some manipulation of my new and edit forms using javascript and jQuery. I'm able to find all the people pickers on the page with the following selector var $pickers = $('div[title="People ...
3
votes
1answer
86 views

How to get current master page and replace it on the Site using javascript

I am using SharePoint 2013 Online and I'm looking for some JavaScript and html to get current master page for the site and change the same with other master page. If anyone could help or just point ...
3
votes
1answer
83 views

Is it possible to write any c# or server side code in SharePoint hosted app?

I want to render some code dynamically so is it possible to write any c# code in my SharePoint hosted app? And if not, then what are some alternative approach to achieve such goal?
1
vote
0answers
131 views

CSR: RegisterModuleInit without hardcoded JS filename?

Always looking to make CSR development easier... This the typical CSR programming pattern: We hardcode the filename inside the CSR file SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", ...
3
votes
0answers
160 views

How to stop a SharePoint workflow using JSOM

Let me preface by saying that I'm a relative newbie to this SharePoint stuff and am still fumbling my way around a bit learning from code examples where necessary. That being said, I have no issue ...
1
vote
0answers
21 views

Adding documents into a Document Set folder in SPO by busing Javascript

I am working on a project where I have to build the logic to upload documents into document set folders and I am stuck building the end point. Can we work with document sets in the same way we do it ...
0
votes
1answer
251 views

SharePoint Online (Office 365) - AutoResolve people picker with current user and detect change in people picker value

I am trying to implement a solution in SharePoint Online by customizing the NewForm.aspx page of a out of the box Calendar List using JavaScript with the following requirements: When page loads, a ...
0
votes
0answers
48 views

JavaScript not firing after Page Refresh or Paging

I'm using some JavaScript to manipulate a list view, such that the clicking of a button (provisioned through a calculated column), will redirect a user to another page. Based on the reference in ...
0
votes
1answer
87 views

Need suggestions to attach JavaScript function to SharePoint search button click

I need to attached custom JavaScript function to SharePoint 2013 search button click. When user enter some text in search box and click search button or click "Enter" key, my custom JavaScript should ...
1
vote
0answers
66 views

Managed Metadata Global Navigation

I’m using managed metadata to create global navigation on a SharePoint Master Page. I understand that a managed metadata term set can only be applied to a single site collection. To bypass this I’m ...
-1
votes
2answers
36 views

how do i create a custom UI for a list column

What is the best way to create a custom feature to customize the UI of a list by filling in the column and/or field green when the value for row item = yes/no?
1
vote
1answer
56 views

How to change the font of column name

Is there a way for me to change the font size/ family for a particular column name for Default New Form web part. (jquery/ SPD) Like the following image (diff from default style) Thanks!