Questions tagged [javascript]

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
174 views

Returning REST response to calling function

Is it possible to return the value from a REST response back to the calling function? In the code below returneddata is always undefined. In the GetMyData function I can see the REST response and ...
Pablo's user avatar
  • 75
1 vote
1 answer
750 views

Get a URL from a SharePoint List item and convert it to base64 using JavaScript

I have a list with 2 columns namely DistributorLogo and BaseURL as shown below. The Distributor logo column contains an image URL I am trying to get the image URL from the DistributorLogo column and ...
Vivek's user avatar
  • 37
0 votes
1 answer
2k views

How to update list item using id in Sharepoint 2016 using rest api

I have two lists 'a' and 'b' with same titles but different ids. I retrieve the title from 'a' list to a html page. And, there is a 'b' list. Here, both the lists have different ids but has same ...
Venkat Sai's user avatar
0 votes
1 answer
82 views

Unable to store the list item value using session storage in Sharepoint 2016

I click on a link then it's updating the count column value in the list. But after reloading the site, the count column value becomes 0 in the list. I am updating the count value using count variable ...
Venkat Sai's user avatar
1 vote
1 answer
1k views

Unable to update the list item in list using REST API Sharepoint 2016

I've been working with this problem from one month but unable to solve this. I'm able to retrieve the list using GET method REST API. But I'm not able to update the items in the list using POST method ...
Venkat Sai's user avatar
0 votes
1 answer
65 views

Unable to match a subtasks to its parent tasks REST API

I am able to get the tasks and subtasks from a SharePoint list using the REST API. How can I match a subtask with its parent task? The following JS inside an AngularJS controller returns two lists, ...
martinbshp's user avatar
0 votes
2 answers
474 views

Clarity on EffectiveBasePermissions object

I recently used some code I found on this site to help resolve a problem. It worked with no issues. The one thing that is bugging me though is there is a portion of code I do not quite understand ...
Pablo's user avatar
  • 75
0 votes
1 answer
221 views

Set List Item Default to Edit Form

We are using some Javascript customizations for SharePoint list items. My boss does not like the fact that we have three forms to choose from (edit, new, and display) and wants the user to be able to ...
Pablo's user avatar
  • 75
1 vote
3 answers
733 views

Make html page with Sharepoint REST result

I'm new with javascript and HTML, so please be patient. I'm trying to make very simple HTML page displaying text with value stored in sharepoint 2013 list. I've made REST query in which I've item with ...
mrik's user avatar
  • 11
0 votes
1 answer
21 views

SharePoint querystring acting abnormal

I am using REST API to read items from a list and display it on a page in a table. I added an extra column and added an edit link which will take the user to another page and passing the id of the ...
OLA's user avatar
  • 211
0 votes
1 answer
230 views

Fetching the data through Graph API in the webpart using sharepoint framework

[I am trying to fetch my email messages through Graph API into the webpart in sharepoint framework] In the webpart Not getting the details of my emails through Graph API Error : Cannot read property ...
abhishek23 Negi's user avatar
0 votes
1 answer
79 views

Jquery not working on dialog box from list view

I am attempting to use some DOM manipulation to change list column names on a list Display view. However when I use Jquery to create the array I get a null value. My test site has the Dialogs setting ...
Pablo's user avatar
  • 75
0 votes
2 answers
411 views

SharePoint SPFX Webpart, Create a callable function that gets user information from the Graph API

My organization is currently using the https://github.com/pnp/sp-dev-fx-webparts (React-Script-Editor) webpart on several of our SharePoint online site collections to enable the functionality we had ...
Brad Fortner's user avatar
0 votes
2 answers
512 views

Node.appendChild Error [closed]

When I retrieve items from my list using REST API, I generate rows to an html table but when I try to append it to a table, I get the following errors: Uncaught TypeError: Node.appendChild: Argument 1 ...
OLA's user avatar
  • 211
0 votes
1 answer
80 views

How to redirect from a TaskList to a sitepage in sharepoint Spfx

This is my Task list, how to redirect to any Site page on the click of the Task Name field? When we are clicking on any Task Name field's value, the default form is opening as shown below: Instead ...
abhishek23 Negi's user avatar
0 votes
2 answers
276 views

REST API data.d.results property error

I am trying to loop through my SharePoint list items retrieved using REST API but I get the following error: Uncaught TypeError: Cannot read property 'ID' of undefined function onQuerySucceeded(data)...
OLA's user avatar
  • 211
0 votes
1 answer
129 views

How to get the number of clicks on a list item in SharePoint 2013 using REST API JavaScript?

I am new to SharePoint and using 2013 classic version. I have created a website and in it, it has list with items. So, I need to trace the number of clicks of each item individually. My code is not ...
Venkat Sai's user avatar
1 vote
2 answers
35 views

Simple Modal SP Online (2013) - not working

<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body {font-family: Arial, Helvetica, sans-serif;} /* The Modal (...
blackblossom's user avatar
0 votes
2 answers
189 views

Select all checkboxes depending on parent checkbox in SharePoint server 2016 on premise

I have a document library in SharePoint 2016 on-prem. The document library has a content type with columns that the user needs to complete when the user uploads a document. Since you cannot edit the ...
user2587315's user avatar
0 votes
1 answer
130 views

Tree-hierarchy for 3 sharepoint lists using the https://gijgo.com/tree .. any help please

I have the below 3 SharePoint lists, and using the REST APIs i am getting the data as follow:- 1- List named named "Department", here is the json for the items "value":[ {"...
John John's user avatar
2 votes
2 answers
725 views

How to get the Alternative text for "Hyperlink or Picture" field Type in SharePoint online

I have a field in my SharePoint list of type Hyperlink. I want to format the list view so that all the items in it will display as bullet items. I am using JSLink and below is my code. I want the DOM ...
santosh kondapalli's user avatar
0 votes
1 answer
22 views

Collect the latest Modified and Modified By info for each user that has contributed to a list. Javascript?

A customer has asked me to display a table that shows everyone who has modified a list and the most recent modification they each made. It would look like: Sally Modified 3 hours ago Jack Modified 4 ...
seaandtea's user avatar
1 vote
1 answer
73 views

Relative URL or using _spPageContextInfo

For some reason, relative URLs are not working OR I am using the wrong syntax. I have tried the following with no luck on my CEWP HTML page. <script src="/jslib/jquery351/jquery351.min.js&...
Pablo's user avatar
  • 75
1 vote
1 answer
76 views

SPServices is not working in one environment and working in one SharePoint environment/

We deployed solution in one SharePoint server, and uploaded the js file after solution deployed. we are getting the following errors on debugging JS. SCRIPT438: Object doesn't support property or ...
sushma manne's user avatar
2 votes
2 answers
435 views

Google Organization Chart from SharePoint list items

I created a Google Organization Chart on SharePoint using the answer from the following question on Stack Overflow. https://stackoverflow.com/questions/33796219/organization-chart-from-sharepoint-list-...
Devon's user avatar
  • 23
0 votes
1 answer
393 views

SharePoint Page Title Does Not Change

So I have created a bunch of SharePoint site pages where the title is just the SiteName.aspx in the Web Browser's title bar. By default, the SharePoint title also appears in the top left of the ...
BeerusDev's user avatar
  • 113
2 votes
2 answers
254 views

Not able to insert data into TaskList In sharepoint Spfx

Using SP-Pnp-Js Library, I am not able to insert data from a webpart into the sharepoint Tasklist. private SubmitWorkflowForm(): void { var TaskNameVal = document.getElementById('taskName')['value']; ...
abhishek23 Negi's user avatar
0 votes
1 answer
94 views

Picture Slideshow Web Part image size too small if page contains multiple picture slidershow web parts on same page

I want to show full size picture in slideshow web part in SharePoint 2010. but SharePoint shows images from /_w folder of picture library which are not original and full size images. I have found very ...
Prasad Gavande's user avatar
2 votes
2 answers
424 views

SharePoint Online JavaScript creates folder instead of document set

We have a SharePoint Online system with 4 custom new forms created with Html/JavaScript. These forms used to create document sets and worked very well for a year (the forms are for different document ...
warrenbarton's user avatar
2 votes
1 answer
2k views

Retrieving "CanvasContent1" in JSON format

I'm trying to build my knowledge of SharePoint Restful API so that we can ultimately script bulk updates to pages. Something I don't understand is why the "CanvasContent1" column is being ...
Daniel Alvers's user avatar
0 votes
1 answer
44 views

Add SharePoint page name in a webpart

I've made a HTML + CSS menu on a page which I happy with. Ideally I wanted the name of the page to appear in it. This way I can use the web part across the site and it will change the page name itself....
Darkstar.Industries's user avatar
0 votes
3 answers
276 views

How to update a multiple lookup field in SharePoint Designer 2013 (REST API)

I would like to update a multiple lookup field in SharePoint Designer 2013. OOTB this is not possible. In SharePoint Designer 2010 it was possible. Now I would like to do this with for example a REST ...
Jackson's user avatar
  • 47
0 votes
2 answers
576 views

Use Rest API to return link from sharepoint list

I'm trying to use REST API in SharePoint to getlistitems to display the link from a hyperlink field from my sharepoint list. I AM successfully using the code to display the title field - but NOT the ...
Kevin White's user avatar
0 votes
2 answers
77 views

D3 is not rendering in CEWP (SP2013)

I am trying to learn D3 for use with REST endpoints (eventually). At the moment all I am trying to do is get D3 to render anything for learning purposes. The code below shows the d3 object loaded when ...
Pablo's user avatar
  • 75
1 vote
2 answers
131 views

How to retrieve all the group names of a particular folder in the Advanced permission tab

I have a folder in document library and each folder in it has unique permissions. Now I need to retrieve the permission group names attached to it using javascript only. On click of advanced as given ...
sushma manne's user avatar
1 vote
1 answer
38 views

SharePoint 2013 DOM dialog object

I'm using SP2013 and I am trying to refresh one of many list web parts on a page with the Manual Refresh button displayed for each list. The current display view has four lists associated with it each ...
Pablo's user avatar
  • 75
2 votes
2 answers
7k views

How to trigger enter key programmatically in search box of SharePoint 2019 library using jQuery

I have tried below code: Set the value in search text box jQuery("#inplaceSearchDiv_WPQ2_lsinput").val("med"); Trigger Enter key: var e = jQuery.Event("keypress"); e....
Manveer Singh's user avatar
0 votes
1 answer
64 views

How to trigger a Javascript function on folder creation in SharePoint Library?

I want to grant unique permission on folder level in SharePoint 2013 Library , Once a new folder is created, edit permission should be granted to the one who has created it. I've been using the ...
Jegan Baskaran's user avatar
2 votes
1 answer
630 views

How to find all selectable properties of a list item

If I run the query ..._api/web/lists/GetByTitle('Site Pages')/items, I get a list of properties, but it is not comprehensive. For example, FileRef is not visible in the resulting JSON, but can be ...
P. Drew's user avatar
  • 23
1 vote
2 answers
183 views

Is there a Javascript report for all Lists and Libraries in a site for SP 2013?

I know PowerShell will do this, but I don't have access. So just using javascript, is there a script that can do item count, date modified, library or list, URL, and times viewed for all lists and ...
Lance Bitner's user avatar
3 votes
2 answers
239 views

Is "sharedhovercard.js" part of SharePoint's default installation?

I've been alerted that a security scan found a vulnerability in one of our SharePoint farms that there is an out of date version of jQuery (which presents a security risk). The file in question is ...
Dylan Cristy's user avatar
  • 12.5k
0 votes
1 answer
389 views

SharePoint 2013 Document Library - Open pdf in New Tab [duplicate]

I am using the code snippet below to ensure pdf files in a SharePoint 2013 document library open in a new tab. This code works fine until files in the document library are grouped. Can someone please ...
Matt's user avatar
  • 3
1 vote
1 answer
170 views

How to Show/Hide multiple column fields based on dropdown selection - SharePoint

I am using a SharePoint list in which we are using multiple columns covering different process steps to be filled based on a dropdown selection. The steps are different depending on the mission ...
Sandy Hanna's user avatar
0 votes
1 answer
3k views

SharePoint Online and adding an interactive page (Javascript)

I haven’t developed in SharePoint for a while and trying to gain some knowledge on how to create a interactive SharePoint Online page - either classic or modern. The requirement is to display/edit a ...
Orange Juice Jones's user avatar
0 votes
2 answers
52 views

SharePoint jsLink replace picture field with value from another field

I would like to override a field with an image using the value of another field. So, I have an image library and the Name field captures the name of the image file. I also have a Hyperlink or ...
OLA's user avatar
  • 211
0 votes
1 answer
84 views

displaying SharePoint image name as image using jslink

I have a picture library in SharePoint 2016 with the ratings enabled. I want users to be able to rate each picture in the library. In the display view, just the image icon shows and not the actual ...
OLA's user avatar
  • 211
1 vote
2 answers
101 views

Sharepoint list: Unable to populate field using variable value

I am trying to populate the list column with calculated value in code below. While the alert & messages show the value being assigned to variable correctly but somehow field is not getting ...
Rameet's user avatar
  • 15
0 votes
1 answer
149 views

Microsoft Clarity on SharePoint 2016 On-Premises

Has anyone implemented Microsoft Clarity Analytics on SharePoint 2016 On-premises? I have tried adding the Microsoft provided code by adding it into the section of Master Page (Seattle), but the ...
Salman Siddiqui's user avatar
0 votes
0 answers
79 views

Can you add a button or link to a Custom action to a display form page using script Editor

I would like to trigger a custom action via a link or button on the form page. Yes, I have already created a button/icon in the ribbon. But what I want to do is create a button on the page front and ...
Tammy Lang's user avatar
0 votes
1 answer
57 views

How to query calendar items from different calendar views?

I have two different calendar views: View Name is "All Events" .../Lists/CalendarName/AllItems.aspx View Name is "Current Events" .../Lists/CalendarName/MyItems.aspx I'm only able ...
Paul Vu's user avatar
  • 111

1
3 4
5
6 7
108