Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
15 views

Jquery Validation Plugin Error This[0] is undefined - Sharepoint Online Add-in Development

I'm development a Sharepoint Hosted Add-in in Sharepoint Online tenant. I'm using Jquery and Jquery Validation to make form validation, but I have a issue with JQuery Validation because of get error ...
0
votes
0answers
10 views

Custom JS produces different results based on user's permission level in SP 2013 [on hold]

HELP! I understand this question is a bit vague, however, that is because I have never run into this issue before and I have no idea where to start. Anyone who can share a similar experience and ...
0
votes
1answer
9 views

how to get people picker field value and store it in a variable

i have a small requirement where in, i have a column "Employee Name" as a people picker field, now i just want to retrieve the employee name value in a variable after the user has entered his name in ...
0
votes
0answers
6 views

Comparing changes in multi-value fields in a better way in SharePoint Online

We have created a user database and as part of this we have a few multi-value fields in the SharePoint List. When a new value is added to the multi-value field we use the versioning to see which of ...
2
votes
1answer
22 views

Check if a user is a member of SharePoint group JS REST API using async await

How can I check if the current user is a member of a specific SP Group using REST API and async/await? _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups/getbyname('" + grpName + "')/...
0
votes
1answer
18 views

How to SP2013 list put it into DataTable dynamically?

I have a sharepoint 2013 list with some items, I need to put it into DataTable dynamically, is possible create the html table automatically?
0
votes
2answers
30 views

SharePoint Custom Webpage/Part Not Consistently Loading

I hope this is the right place I have been in a role within my organization working with SharePoint for a couple of months now, so i'm a newb more or less. I have some experience (again a novice) ...
0
votes
1answer
30 views

Retrieve users info with js and sharepoint

I am facing following issue: I need to retrieve users from the whole domain not just siteusers list at sharepoint so that can can manipulate them and for example add them to sharepoint groups. I ...
0
votes
1answer
28 views

Freeze First Column of Sharepoint online List view using Jquery/javascript [duplicate]

i want to fix first column (ex: Title column) of my sharepoint list view, so that whenever the user scroll horizontally the first column should be fixed. Thanks in advance for your support.
0
votes
1answer
14 views

Only Showing Timeline in Task List

I know how and find many ways how to hide the timeline from the task list but I don't find where I can just show the timeline and hide everything to the list. Question: What can I do to show the ...
0
votes
2answers
12 views

Connected Excel Spreadsheet to SharePoint List

Here is what I have done and what I am trying to do. I have a SharePoint list that I exported to Excel and then created a connection. When I add an item in the SharePoint list the new items are ...
0
votes
0answers
13 views

SharePoint 2013 Hide list row based on another list with javascript

I have two lists, Parking Slots and Reserved Parking. Reserved Parking has a look-up column (Slots) from Parking Slots. I have a page where both lists are displayed. What I need is a javascript ...
0
votes
1answer
15 views

Javascript to read site collection storage volume

It is possible to read the storage Volume of a site collection with JavaScript?
1
vote
1answer
34 views

javascript not working first time after iisreset in a visual web part

I am having a bug in one of the visual web parts. First of all, this is not my code and I am not an expert in javascript. Secondly, this issue is only happening the first time after the pool has been ...
0
votes
0answers
25 views

What is this unwanted files in SharePoint Online when we keep debugger?

I am facing very strange issue in SharePoint Online. I have a kept some JavaScript code to a Content Editor Web Part on a SharePoint Online Page. When I try to debug the JavaScript file, instead of ...
0
votes
2answers
23 views

ctag parameter is getting added to js file on web page Sharepoint online

I am working on CEWP.when I am trying to debug the javascript file.On button click i called a function but function is not getting called becos js file not loaded properly .At the end of js file some ...
0
votes
1answer
17 views

How to log data to a database using javascript?

I am to track who viewed a specific document in a document library, I found out that there is no Item Viewed event or similar event in the SPEventReceiver class. SO I developed a spfx solution that ...
0
votes
0answers
12 views

How to attach SP date picker to text input via javascript?

Created a web part page to test initializing SharePoint controls via javascript, can't get the date picker working. Its been driving me nuts for hours now. Anyone see any obvious mistakes? <input ...
0
votes
1answer
33 views

Inserting dynamic data in a sharepoint list using jsom

I am trying to insert dynamic data (question number, question and answer checked) to a new sharepoint list. The data needs to be read from another list, i.e. "Questions1List". I have a quiz page in ...
0
votes
0answers
23 views

Inserting multiple rows in a SharePoint list using JSOM

Hi I am trying to insert the data in the form of multiple rows to a SharePoint list. I retrieved question number, question, choice answer options as shown in image. Now, I want to insert the question ...
0
votes
1answer
18 views

SP.js loading issue while retrieving list items using JSOM

Hi I am trying to retrieve list items using JSOM. But, the problem occurring is that SP.js is not loading correctly. It shoul load before the function gets executed. I am confused about where to use ...
0
votes
0answers
30 views

success call back or REST call not firing

Successfully adding items to a list but success handler not firing. Anybody know why? function addListItem() { var guidance1 = $("#guidance1").val(); var guidance2 = $("#guidance2").val(); ...
0
votes
2answers
44 views

How to get email of user's domain name via javascript?

I am looking for a way how to find some users emaill address based on their domain id. I found many solutions for Current users via user = clientContext.get_web().get_currentUser(); however i want ...
0
votes
2answers
44 views

How to add JS validation on SharePoint new item form to check date field populated or not

I am working with a Task list in SharePoint online. On the new item form, I have a field called 'Due Date' (Internal name: DueDate) which is set to optional and for one of the Flow requirements, I ...
0
votes
1answer
24 views

The property or field has not been initialized when setting a lookupfield id on another field

My snippet code below. What i'm trying to do first is be able to update batch items with large number of items(THIS WORKS) and in between be able to get a lookup id field from one of the fields and ...
0
votes
0answers
9 views

Unable to pull in current item on EditForm.aspx using StratusForms

I'm using StratusForms for a SharePoint 2016 classic application (system admin won't enable modern pages) and was able to successfully use a CEWP on NewForm.aspx to contain my code and submit to my ...
0
votes
0answers
8 views

How to save to a richtext column using TinyMCE

I'm trying to make a custom form using js and TinyMCE, and the problem I have is that all of the rich text is saved, except the images, when I check the list, the html is saved like this <img alt=...
0
votes
2answers
24 views

Help stopping a SharePoint Workflow with JavaScript

I'm attempting to write a script that will cancel and start workflows when an error happens. I found this section of code on different sites but have not been able to get it to work. After stepping ...
2
votes
1answer
39 views

SharePoint online TextEditor Option for Javascript and other code no longer available

I have noticed a recent dramatic change in SharePoint online. I have multiple java script and html scripts that control content editor webparts on my SharePoint site. Previously I could view and ...
0
votes
0answers
9 views

Apend a text from a PoG or CalculatedValue to a text single field

I am trying to append a text from a People or Group (varRecipientName) into a Single Field text (.CollectedByUserClass) when a dropdown changes. I tested it with the below code which works when ...
0
votes
2answers
33 views

Unable to get property 'createRange' of undefined or null reference

I have a SharePoint custom list form with a bunch of Javascript running on it. In particular I have one field where it gets its choices from a lookup to another list. The lookup returns n versions of ...
0
votes
1answer
17 views

JSLink not modifying text

I am trying to get a super simple JS script to work on my SharePoint. I found this example here. This is what I am working with: (function () { var statusFieldCtx = {}; statusFieldCtx.Templates = {}; ...
0
votes
3answers
43 views

SharePoint 2013 - Copy People Picker Field to Text Field

I need a way to copy what users place in a People Picker field (single selection only) and place it into a single line text field. I'm not allowed to user Designer so this can only be done with ...
1
vote
1answer
31 views

Get person display name from list via javascript

I am facing problem that i cannot solve. I have a function which works properly but returns number id of user from sharepoint not display name. Here is the function: function getItems() { $.ajax({ ...
0
votes
1answer
20 views

Removing elements with javascript

I have a SharePoint modern page that I would like to customize with javascript or CSS, is this not possible? I want to remove the top bars and the bottom as well, so that I pretty much have a blank ...
0
votes
0answers
14 views

How can I send the results from a form (with HTML, CSS, JavaScript, JQuery, etc.) to a Sharepoint Library

I am trying to create a form with html, css, javascript, jquery. Basically, what I would like to do is, when the user clicks on the "Submit" button, the values entered in the form will be send to a ...
0
votes
0answers
19 views

Uncaught TypeError: Cannot read property 'wpq' of null

Uncaught TypeError: Cannot read property 'wpq' of null at NewOrEditV4Core (core.debug.js?rev=EW80nTQ9XTlOZU%2FEGCD2cg%3D%3DTAG0:4374) at _NewItem2 (core.debug.js?rev=EW80nTQ9XTlOZU%...
0
votes
0answers
19 views

Ordering numbers in SharePoint using JavaScript?

We have a lot of documents given an [Issue Number] which goes in such fashion: 1.1.1, 1.1.2, 1.2.3 ..... 1.1.9, 1.1.10 When ordering by the Issue Number then the 1.1.10 is ordered underneath 1.1....
0
votes
1answer
18 views

Javascript to auto fill data in new form from the previous entry

I want to auto fill the entries in form fields from previous entry in the sharepoint list What I done is I created a new request from my custom form page and submit after that the data added in ...
0
votes
1answer
35 views

SharePoint 2013 - Get sum of number fields and lookup field with Javascript

I'm creating a list that helps track employees projected hours they spend on projects as well as holiday, training and vacation hours. However the holiday field is part of a look up from another list....
0
votes
2answers
34 views

Get value from Column and cut the duplicates using SharePoint Rest API

I've multiple folders inside the pages library Within each folder I have pages Grupo de produtos is of type taxonomy. I run the function GetPagesProd and for each item I get the value from Grupo de ...
0
votes
1answer
21 views

Auto populating sharepoint date field on SP new form shows wrong year value

I have a date column called Today Date on one of the list forms. I am trying to auto-populate it and set it to current date when newform is opened. Its pulling current month and day value fine but not ...
0
votes
1answer
34 views

How i can set a Date/Time field to be required if a People/group field contain a value

I am working on a custom list inside sharepoint online classic UI. and inside the custom list i have 2 fields:- "ResponsibilityOwner" --> People/Group which allow single value. "...
0
votes
1answer
22 views

Filter list data after retrieving the list using JavaScript

I am trying to carry out a number of queries on a share point list. I know you can use CAML queries to filter the list to only show specific information. However I am looking to retrieve the entire ...
0
votes
0answers
28 views

Refresh the Repeated Section when dropdown value has changed

Can anybody advise / help how to make the Repeated Section [ItemDescription] refresh when a dropdown value [ItemName] has been changed. I have used a rule to make the fields within the repeated ...
0
votes
0answers
34 views

Unable to capture when a managed metadata column is changed inside my sharepoint new/edit list forms

I am working on a sharepoint online classic team site. and inside the classic team site i have 2 lists:- Responsibility List. Customer site List. Both of the above lists have the same managed ...
0
votes
1answer
21 views

Popupmenuitem Ribbon

In sp2013 i have 2 list Documents and Notes. I have created a tablet device based site with reponsive UI. In the document library list for example the Manage ribbon Group is displayed as popup as ...
0
votes
1answer
20 views

Creating a URL link with href not going to the URL

We have a page that is using AngularJS. I am creating a link: <div ng-if="breakout.AttachmentFiles"> <div ng-repeat="file in breakout.AttachmentFiles" style="display: flex; align-items:...
1
vote
1answer
33 views

Get users' Email and save it to a Text field on NewForm

I have multi value Person or Group field and a Multi text of Line field in my SHarePoint online site. On NewForm I want to fetch all the users' EMail and save it to Multi text field separated by ...
3
votes
2answers
77 views

Referencing javascript library in content editor webpart

So i have added content editor webpart in NewForm.aspx and reading the code to javascript file called HideFields.ps1. SO the script as below: HideFields.ps1 <script type="text/javascript" src="...