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
0answers
20 views

How to get data appended to select element added to each row dynamically?

As I am new to Sharepoint Framework, I am trying to add rows dynamically to a table and each row having select element ...So I want , the "options" in select element to be fetched from ...
0
votes
1answer
15 views

Edit Form read only to submitter

I would like to make the edit from disabled/ read only to submitter after they have submit the item. Is there a way to do so? I've tried setting workflow to "View Only" for people/ picker ...
0
votes
1answer
28 views

Display items in list view based on group permission

Is it possible to display the items in Sharepoint 2013 customized List based on the group permission? I have 3 groups in permission, i.e. Group A, Group B, Group C. Some people are in only 1 group and ...
0
votes
0answers
15 views

Extend Power Apps width on SharePoint Webpart

Please I need assistance, I have built a power app application which I want to take the full width of the sharepoint page I have placed it, currently inserted power apps applications take the max ...
1
vote
2answers
36 views

CAML Query not display in Sharepoint2013

My end goal is to display items from SharePoint 2013 list that is more than 60 days from today and status is in process. This is my first time using CAML Query in JavaScript. I am not able to have the ...
1
vote
0answers
21 views

How to use people picker control using sp-pnp-js( Pnp-JS-Core) library and save users selection in Person or Group type column in Sharepoint List?

As I am new to Sharepoint framework, I wan to know how can I use the people picker control using sp-pnp-js library and save the users selection in Person or Group type column in Sharepoint List.... I ...
2
votes
2answers
31 views

What user permissions are required for the development of webparts in Sharepoint Framework?

As I am new to SharePoint Framework, I want to know what all user permissions are required for the development of web-parts in SharePoint Framework, along with web-part deployment in Microsoft Teams ...
0
votes
0answers
14 views

Retrieve Sharepoint online data from an externally hosted website (might be on Azure)

I need to retrieve SPO document information from SPO into a public website. I would imagine an app with some secret keys would do it. Or have a kind of authentication master account to enable my ...
1
vote
1answer
14 views

Why does the SP.SOD.executeFunc function not work properly?

I use this code to compare two dates, the date of today and the date in the list item. On the screen the dates look fine but when I check them in the debugger the dates are way off. Some are even one ...
0
votes
0answers
21 views

Copy a List Item from one SharePoint List to Another with JQuery

I am trying to copy few list item from one SharePoint List to another SharePoint List from a SharePoint Form. Both are identical lists with same Column names and Types, when an item's Status column ...
0
votes
1answer
24 views

How to get data from videos in asset library?

I have an asset library in SharePoint 2013 with lots of video files. How can I request the video url (.mp4), preview picture and video title from this library using a JavaScript API call?
0
votes
0answers
15 views

Multiple input filtering on SharePoint calendar listview using Javascript

I am trying to use the code below generously provided by @Cat in this post; https://stackoverflow.com/questions/63093757/javascript-filtering-by-multiple-columns, to filter a sharepoint calendar ...
0
votes
0answers
9 views

Print Button only in EditForm and not on DispForm

I used function printForm(){ window,print(); } to create a print ("Drucken") button: However, this button only appears in the EditForm. I want it to appear in the DispForm as well. ...
1
vote
0answers
28 views

How to convert word document to PDF in SharePoint 2016

Is it possible to convert a word document to PDF on SharePoint 2016 using custom code such as JavaScript ? I have heard of Word Automation Services but I am looking for custom code solutions that ...
0
votes
1answer
14 views

Uncaught ReferenceError: test (function) is not defined

I'm having a hard time figuring out exactly what the issue is in my function call. Iv'e tried a number of things such as defining my call before it gets used and placing the script reference tag for ...
0
votes
1answer
23 views

After Rest Call, how do I get my results from a sharepoint list to populate an html table

Below is my code, obviously it isn't going to Run because I have external sources that I am pulling from. My main issue is that I can't get the listItemInfo from onQuerySucc to display in the table in ...
1
vote
1answer
20 views

Rest api to get all document where checked out is Yes and checked out by system account

Is there any REST API to get list of all documents where Checkout is yes and checked out by system account?
0
votes
1answer
14 views

Not able to fetch data from particular list item of site content using React APP WEB-part

I am able to fetch the list which we see on the landing screen of the site-content. However, when I am trying to fetch data by finding a particular item by its title I get an error CANNOT FIND LIST '...
0
votes
1answer
19 views

Import Excel to SharePoint List Tutorial Error

I am attempting to import/copy excel data into a SharePoint list. I am following this tutorial to a tee: https://www.udayagirisreekanthreddy.com/2017/12/reading-excel-file-using-html-5-and.html?...
0
votes
0answers
17 views

Dynamically Updating SharePoint Page based on List Dropdown

I have some SharePoint Wiki Pages, and these pages contains few steps for a process. Based on the environment (Dev/QA/Prod) These process have a change in system names, while the steps remain the same....
1
vote
1answer
15 views

Unable to read sub folders inside document library with REST

I have a document library with files and folders. I am using the below code to try to get the list of files inside a specific folder that sits in this document library using the SP REST API. I am ...
0
votes
0answers
22 views

jQuery console loads twice in SharePoint

I am having issues with this jQuery code. I don't understand why my function runs twice. 'dosomething' and data shows up twice in the console and i'm not sure why. Please help. $(document).ready(...
1
vote
2answers
25 views

running multiple ajax calls synchrnously in SharePoint rest api

I have written javascript REST API code with two AJAX Calls. Code is like below: $.ajax({ onSuccess(function(){ for(let i=0;i<=data.d.results.length;i++) { GetEmployeeDetailsFromOtherList(data....
0
votes
1answer
36 views

Multiline text field JSON to array - SharePoint SPFx

I'm building a webpart application using SharePoint SPFx with react. I would like to use SharePoint's multiline text field as a way to store an array. I saw this thread here which said you can convert ...
0
votes
0answers
21 views

SharePoint SPFx - Creating comment section using textarea field

I'm building a SharePoint SPFx using react. In one of my components I want to have a comment section. Where a user can write a comment and then submit it to my Multiple lines of text field called ...
0
votes
0answers
22 views

Document column filed need to update from existing list on the SharePoint 2013

SharePoint Developer experts, We have one document library and one List on SharePoint 2013. List name as "Policy" and Document library name as "Process documents". On list, we have ...
0
votes
0answers
10 views

Using JS or Jquery to hide SP 2013 list items until filter(s) are checked on list header columns

I cannot show my list; however, I am using a Wiki page app in SP. I would like to have all items hidden until a user checks off filter(s) from the list's column headings. Once these are checked, I ...
0
votes
0answers
29 views

SharePoint Online Modern UI site is slow when using IE11

We are using the SharePoint Online Modern UI site. It doesn't matter if my browser is Chrome or Edge, but IE11 takes a long time to display the list etc. Does anyone have this kind of experience? How ...
0
votes
0answers
13 views

SPFx define custom config folder for building solution

Is it possible, to somehow define which config folder gulp will take while bundling. Saying i will have a build script for each sppkg solutions gulp clean && gulp bundle --ship && gulp ...
1
vote
0answers
14 views

SPFx monorepo with shared typescript code

Tasks are: Having multiple similar sibling folders each contains spfx projects with one webpart, and ability to develop each separately and build each own .sppkg file for a separate deployment. ...
0
votes
0answers
6 views

Checking/Ticking Checkboxes from ID in array

Everytime a checkbox with the class "thischeck" is checked, i push the id of that checkbox to an array. I then switch tabs and when i switch tabs, my checked boxes disappear, I want the ...
1
vote
1answer
11 views

OnSuccess of Ajax request check if array contains data

I have an Ajax request, when it gets to on success function I start to do things with data.d.results like reading through and filtering in another REST API. However sometimes data.d.results.ID for ...
0
votes
0answers
15 views

unable to get treeview dropdown in classic site

we are facing issue with N level tree view drop-down while getting dynamic data form list using 2 columns data in classic share point site. 1.column is parent 2.column self lookup column to parent ...
1
vote
0answers
8 views

Is there extra Javascript involved in the 2016 version of a multi-lookup control?

I have to filter the available options for a multi-lookup field based on the value of a Taxonomy field. I had it working in 2013 doing this: On page load, detach all the option elements from the ...
0
votes
1answer
15 views

Provider Hosted App-Not able to get data from list using JSOM or Javascript in sharepoint 2016 On-Premise

My Provider-Hosted App published and hosted on IIS with https. The URL is like: https://localhost:44343/Pages/Default.aspx?SPHostUrl=http%3A%2F%2Fecontent&0319c41%2Eecontent%2Eelibrary%2Eapps%...
1
vote
1answer
23 views

Submitting to SP List, Input string was not in correct format error JavaScript

I am getting the error, "Input list was not in correct format error" My sharepoint list has single text fields so i cannot see the problem function savingsdatick(varid) { //Get Current ...
0
votes
2answers
36 views

addEventListener not working on SharePoint list form load

I have a SharePoint list form and I prepopulated certain fields with sharepont user properites. I also decided to use DOM development for form manipulation on the list form. Using the DOM, I was ...
1
vote
2answers
25 views

jQuery hiding column based on another column's value

I've successfully used the following script in NewForm.aspx to hide a column 'Date SharePoint checked' when another column 'Check SharePoint?' is set to 'No'. When I open the same list item in ...
2
votes
2answers
171 views

Uncaught TypeError: Cannot read property 'apply' of undefined at Array.<anonymous>

I want to retrieve all the lists title of my SharePoint site and add in them into a list. But the error "Uncaught TypeError: Cannot read property 'apply' of undefined at Array." appeared in ...
0
votes
2answers
29 views

Triggering workflow via javascript not working

I'm not super familiar with javascript and how it interacts with SharePoint, but I was tasked with starting a workflow on several items with one click. I did some research and found this which walked ...
1
vote
2answers
40 views

Javascript : Retrieve an item value from SP List

Before explaining my problem, I give you the context. I've made an first page that will display a "Marquee" message (message that will scroll horizontally). I would like to make possible to ...
0
votes
0answers
22 views

How to embed images to email body with cid method using SP.Utilities.Utility.SendEmail

I believe i have to use the AdditionalHeaders property, but im not sure how I tried to insert headers like: Content-Type: image/png; name="moz-screenshot.png" Content-Transfer-Encoding: ...
0
votes
2answers
31 views

update filed another document library with current list input filed column on SharePoint 2013

Hi SharePoint Developer experts, We have one document library and one List on SharePoint 2013. Users update list daily base. There are two column on the list with name as "Document Title" ...
0
votes
1answer
43 views

Update SharePoint list item by column button click

I created a SharePoint list with a column having button as described here. Now, I want to update another list item by clicking on this button. The list look as above: So, when I click on the "...
1
vote
1answer
11 views

Is it possible to prevent editing of the address bar in SPO [closed]

I’m creating SharePoint Online ModernUI team site. I don't want the user to paste the URL directly in web blowser, so I want to prohibit editing the address bar. Is there any way?
0
votes
1answer
23 views

400 error when making POST request (adding item to SP list)

I have a form that contains check boxes and input fields, and hitting the Submit button should ideally add the content values to a SP list. When I run the debugger I can see that each input (checked ...
0
votes
1answer
17 views

Connecting Calendar to Another Application

Using SharePoint 2013 and SharePoint 2019 is there a way to connect a calendar to HR application that collects dates of events and important notices. Here is the scenario. I want to pull the dates ...
0
votes
0answers
11 views

Can the onListViewUpdated() method run async?

I need to implement a button that is only visible if the user has edit permissions for an item in a list. Therefore I have to make an async api call in the onListViewUpdated() method, but I does not ...
0
votes
0answers
6 views

Restrict Project Online Data Access in SharePoint online

This is the required scenario: Project managers need to access only their data. Project managers who may not have uploaded anything on the tool and should, therefore, see nothing or rather 0 values. ...
0
votes
1answer
29 views

Getting all Content Editor web part details who are using Custom Script using Powershell in SharePoint 2013

I want to find out all the Content editor web part details who are using Custom Script, JSlink using SharePoint Power Shell. Please help me on this Thanks

1
2 3 4 5
103