Skip to main content

Questions tagged [javascript-debugging]

Filter by
Sorted by
Tagged with
-1 votes
1 answer
71 views

JS:: import { LightningElement,track, wire } from 'lwc'; import fetchPatientData from '@salesforce/apex/PatientData.fetchPatientData'; export default class SalesforceCommandFile extends ...
AMR SHK's user avatar
0 votes
1 answer
483 views

I have a Lightning Web Component "dapUserList". This is the HTML: <template> <lightning-card title="User List" icon-name="utility:user"> <c-...
Brian Kessler's user avatar
2 votes
1 answer
131 views

Okay this is a weird one. I have an aura component that I put on our user record pages that display that user's open opportunities. I pull the recordId from the URL, run SOQL to grab all open opps for ...
SethH's user avatar
  • 51
0 votes
1 answer
942 views

I am learning to build some basic lwc and I am struggling with dynamically putting lightning-select options from JS. Here's the html: <lightning-select name="distribution-...
Maciej Zadworny's user avatar
1 vote
1 answer
2k views

I have a SSJS code that i am running SFMC cloudpages. The code is to do a HTTP.GET call to a url and then parse the JSON response.when trying to write out the result of parse i receive the following ...
sam sfmc's user avatar
0 votes
2 answers
673 views

Html File <template> <lightning-input label="Enter your First Name" onchange={captureFName}></lightning-input> <lightning-input label="Enter your Last Name&...
sfdcgv's user avatar
  • 29
1 vote
1 answer
567 views

Due to some recent changes, first: Enabling by default Use Lightning Web Security for Lightning web components Enable Stricter Content Security Policy it becomes impossible to debug LWC Javascript ...
Patlatus's user avatar
  • 18.9k
0 votes
2 answers
721 views

In a javascript file, I get the indentation code quality error: closeComp() { const selectEvent = new CustomEvent('hidemodal', { detail: true }); this.dispatchEvent(selectEvent); } ...
Anmol Khanna's user avatar
11 votes
2 answers
2k views

The new Lightning Web Security model that is set to overtake Lightning Locker is not working the way the SF docs explain. In short: I do not have an 'lws' folder. From developer.salesforce.com: When ...
bkwdesign's user avatar
  • 639
0 votes
1 answer
490 views

Anyone help me, why Javascript "getElementById" return null in Visualforce Page. In my form, I have "Radio button" and "inputtextarea" My requirement is whenever click ...
Tara's user avatar
  • 1
0 votes
0 answers
584 views

I am trying to create a currency exchange app and anytime I deploy the code to my org via VS Code, I keep getting the error Action failed: flexipage:runtimeComponent$controller$init [Headers is not a ...
Afonja's user avatar
  • 3
1 vote
1 answer
497 views

We are experiencing a weird issue with a LWC that is imbedded into a Screenflow Login flow. When we debug the flow in flowbuilder, the css is perfectly structured and the LWC signup form component ...
Shaun van Huyssteen's user avatar
0 votes
1 answer
802 views

Let's consider the below scenario: I have a scenario to bind integer value which is calculated from apex function. I have to display integer value in lightning datatable column. Please find the code ...
Rose 's user avatar
  • 123
6 votes
4 answers
9k views

I am trying to debug LWC JavaScript using Chrome's DevTools. However I am unable to see /modules/c component under sources tab of Chrome DevTools. The same is working fine for other sandbox. Does ...
LakhanP's user avatar
  • 831
0 votes
1 answer
2k views

I have data returned from apex as a string: [{"Rank":1,"Points":61,"Name":"Susan Johanson","Id":"0038d00000ANPt7AAH"},{"Rank":2,&...
Jonathan Fox's user avatar
2 votes
0 answers
132 views

We tried to include amcharts5 libraries - index.js, animated.js and xy.js in LWC. Animated.js and xy.js is loaded properly in LWC but index.js is failing with an empty exception and it goes inside the ...
Parul Gupta's user avatar
2 votes
1 answer
4k views

I have a LWC that I am debugging(did not write it myself). Its showing 'Type error in LWC cannot read properties of null' yet when i print to the console i can see the data. What else could be the ...
Pauline's user avatar
  • 395
2 votes
1 answer
1k views

In my parent component I'm calling child component as: <c-multiselect-picklist multi-picklist-values={picklistValues} onselect={handleChange} preselected-string={selectedPicklistValue} data-id=&...
Rose 's user avatar
  • 123
0 votes
1 answer
632 views

ExampleArray = [["Relationship", "Subscriber"], ["memberId", "12345"], ["MemberName", "Test Member"]] How would I turn the above into just ...
James's user avatar
  • 37
1 vote
3 answers
2k views

Is it possible to turn on Debug Mode for Lightning Components for a guest/anonymous/not signed in user? When I go to Setup -> Custom Code -> Lightning Components -> Debug Mode, I cannot see ...
Mark Beavis's user avatar
1 vote
1 answer
873 views

@api weekdaySelectionData=[]; The below is coming through data table, but I just want to sort the final list: weekdaySelectionData=[{"Day__c":"Tue","Morning__c":true,&...
user91530's user avatar
0 votes
1 answer
542 views

I tried to do a small poc to understand this in detail like . var a = -1; a>>>0; var a = 0; a>>>0. I know this is right shift zero fill binary operator but what does >>>0 ...
user43388's user avatar
0 votes
1 answer
461 views

i have a JSON Object which has Parent Details, In my page i have an option to add New Row dynamically when i click on + button. [ { "canRepeat": true, "dynamicName&...
SFDC_Beginner's user avatar
3 votes
0 answers
1k views

I have an Aura component that opens a canvas app. The canvas app communicates with the Aura component using window.postMessage. In my Aura component during init, I am adding a listener for postMessage....
Anmol Kumar's user avatar
  • 3,791
0 votes
2 answers
4k views

This is a basic javascript question. FYI the context is: It is in a Javascript controller for a Salesforce Lightning Web Component, editing in Visual Studio. The code is for selecting a set of table ...
skycafe's user avatar
  • 407
0 votes
0 answers
4k views

I am facing the below error for the Lightning component. I tried to debug but was not able to find the root cause. This page has an error. You might just need to refresh it. Error in $A.getCallback() ...
Aditya Phadke's user avatar
3 votes
1 answer
1k views

Tried to install Google chrome extension Salesforce Lightning Inspector but it takes me to 404 page which means that there is no extension literally not available to install. Is there a way to get ...
Bforce's user avatar
  • 6,918
0 votes
1 answer
344 views

I have written below query in Javascript(Visualforce page) and trying to access query result as shown below, but it is failing at second console log and giving error in developer console. var ...
Arvind's user avatar
  • 25
0 votes
1 answer
2k views

I have below Javascript function in lwc apexJobInfoData; @track isBatch; getData({ error, data }) { if (error) { // TODO: handle error } else if (data) { this.jobId = ...
SfdcBat's user avatar
  • 4,759
0 votes
2 answers
97 views

I am trying to check javascript validations on some fields in visualforce page. Following is my code. <apex:page > <html> <head> <script> ...
Umair Ayaz's user avatar
3 votes
1 answer
8k views

I'm getting the following error: Must call super constructor in derived class before accessing 'this' or returning from derived constructor after adding a very simple test constructor to my LWC ...
Brent Bowers's user avatar
  • 3,282
1 vote
0 answers
91 views

Problem: I am using mathjax to format math equations nicely on a visualforce page. Everything goes great on a naked vf page. <apex:page > <!--script id="MathJax-script" src="https://cdn....
Ryan Sherry's user avatar
4 votes
1 answer
308 views

Link to polyfill: https://github.com/jonstipe/number-polyfill The polyfill is to allow increment decrement buttons in Internet explorer for I added the .js and .css file from the polyfill as a ...
VChandra's user avatar
1 vote
1 answer
65 views

I am working on detail javascript button in the lead object. But now I am facing the below issue. Javascript code: {!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/24.0/...
Pavan tej's user avatar
  • 1,490
1 vote
0 answers
128 views

Using Chrome - Version 72.0.3626.121 I often find myself integrating 3rd party libraries and while attempting to do so in LWC's errors are not uncommon, so, I check the errors and using the browsers ...
glls's user avatar
  • 20.4k