Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 8068

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.

0 votes
Accepted

Sharepoint 2013 Return List Columns in Javascript

console: console.log(listEnumerator.get_current().get_item('Description')); console.log(listEnumerator.get_current().get_item('Priority')); So, you overall code would look like: <script type="text/javascript
Gautam Sheth's user avatar
6 votes
Accepted

Set Yes/No field on selected list items by clicking a button

Have modified your code, you need to update it as below. Couple of things, get rid of alert and function.createdelegate var itemId = 2; var targetListItem; function SetToYes() { var clientCont …
Gautam Sheth's user avatar
3 votes
Accepted

Add Context Menu Item to SharePoint Online List

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> <script> $( document ).ready(function() { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', AddCustomUserActionToECB); }); …
Gautam Sheth's user avatar
2 votes

search results webpart after render

ctx.ClientControl.get_element()); ctx.OnPostRender = function(){ Srch.U.animateResults(ctx.ClientControl, ctx.DataProvider.get_userAction()); }; } _#--> So, you can also customize it as per your requirement and add any javascript
Gautam Sheth's user avatar
0 votes
Accepted

Get image URL of column type Person or Group using JavaScript

You need to query the site info list. Try below code: clientContext.load(collListItemBlog,'Include(Photo)'); // //later console.log(oListItem.get_item('Photo').get_lookupValue()); // prints name …
Gautam Sheth's user avatar
3 votes

Using Office UI Fabric JS with SharePoint Online

Fabric UI button, you can use the below html: <button class="ms-Button"> <span class="ms-Button-label">Create Account</span> </button> After that, you can instantiate it as below: <script type="text/javascript
Gautam Sheth's user avatar
0 votes

How to get the name of a selected web-part in javascript?

You can get list name as below. You need to load the list object and then you will be able to retrieve it's title value : function getMailto() { var ctx = SP.ClientContext.get_current(); …
Gautam Sheth's user avatar
1 vote
Accepted

Uncaught TypeError: Cannot read property 'results' of null

You need to add a null check before the for loop. Modify your code as below: if(ArrayRetrieved.Jurisdiction){ for (var index = 0; index < ArrayRetrieved.Jurisdiction.results.length; index++) …
Gautam Sheth's user avatar
2 votes
Accepted

Save data into SharePoint list from HTML text box (using JS)

Create javascript file and add its reference in a script editor/content editor webpart: function AddData() { var listName = "MyList"; var newItemTitle = $("txtBox").val(); CreateListItemWithDetails …
Gautam Sheth's user avatar
1 vote

Using Javascript to access user profile image

Cecilia provided the correct answer for 2013. But I saw in the comments that you are using SP2010, so you can try below code. Have used JSOM and REST api both. You might need to modify the processRe …
Gautam Sheth's user avatar
1 vote
Accepted

Not able to run any script on new list experience forms

Allow Javascript customization and CSS branding/theming in the new Document Library Experience …
Gautam Sheth's user avatar
6 votes
Accepted

SharePoint Online - Redirect to another page using Javascript

Try it as below: if(location.href === 'https://mysite.sharepoint.com/sites/ABC/SitePages/SPage.aspx') { location.href = "https://mysite.sharepoint.com/sites/ABC/SitePages/Pages.aspx"; }
Gautam Sheth's user avatar
5 votes

how to copy files from one document library to another in sharepoint using jsom

function copyFiles(sourceLib, destLib){ var context = new SP.ClientContext.get_current(); var web = context.get_web(); var folderSrc = web.getFolderByServerRelativeUrl(sourceLib); context.load(folder …
Gautam Sheth's user avatar
2 votes
Accepted

Sharepiont REST GetFolderByServerRelativeUrl get files from multiple folders

You can try the batch API as below: SP.SOD.executeFunc("SP.RequestExecutor.js", "SP.RequestExecutor", function () { // create a new executor for the current web var executor = new SP.RequestE …
Gautam Sheth's user avatar
2 votes

Update document set property using Javascript

Try below code using JSOM: var folder = context.Web.GetFolderByServerRelativeUrl("/sites/test/Document/DocSetName"); folder.ListItemAllFields("Title") = "NewDocSetName"; folder.ListItemAllFields("F …
Gautam Sheth's user avatar

1
2 3 4 5 6
15 30 50 per page