466 questions
0
votes
1
answer
38
views
Lightning Web Component (Chart.js) sometimes loads, sometimes not
I implemented chart.js lightning web component in Salesforce home page. It sometimes loads properly, sometimes loads blank and sometimes loads partially (chart with no data) and then it can appear ...
0
votes
0
answers
28
views
LWC Quick Action Not Visible in Feed on Case Object
I have developed a Lightning Web Component (LWC) and exposed it as a Quick Action on the Case object. However, the action does not appear in the Feed section of the Case record page. Is it a ...
0
votes
0
answers
13
views
lightning-input of type date behaving strangely in lwr sites
I have the below lwc which I am planning to use inside lwr. But the behavior is different/strange. For example: when I am giving some wrong date like Nov 39, 2025. it automatically chooses the next ...
0
votes
1
answer
44
views
How to call onclick events written on div through jest (salesforce)?
I have created an LWC in Salesforce and am trying to creat Jest tests for it. I have implemented a div in html file and calling the js function using the onclick event as shown below.
<div class=&...
1
vote
0
answers
78
views
Dynamic Rendering of LWC in a LWR Experience Builder site only works if the user has Debug Mode enabled?
I'm building a site with a user-configurable dashboard using LWC. It is a LWR community site hosted on Experience Builder. Rendering the dashboard using LWC dynamic rendering seems like the perfect ...
0
votes
0
answers
59
views
How to change the sizing or the layout of the label lightning-accordion-section so that it wouldn't overlap with the buttons in the action slot?
I have an issue with the lightning-accordion-section styling where it overlaps with the action buttons:
screenshot here
Here is my code:
<lightning-accordion allow-multiple-sections-open>
&...
1
vote
0
answers
115
views
Custom header checkbox fully accessible to keyboard users (Tab)?
I'm using AG Grid in a Salesforce LWC project and have implemented a custom header checkbox for select-all functionality. The checkbox is rendered in the header using a custom class (not AG Grid’s ...
0
votes
0
answers
57
views
Render pdf from jspdf for LWC
I’ve built a Lightning Web Component that uses jsPDF to assemble a multi-page PDF on the fly. In my generateAndPreviewPDF() method, I:
Load jsPDF and custom fonts
Draw a custom header and body onto ...
-1
votes
1
answer
428
views
how to wrap lwc lightning datatable header text
how to wrap lwc lightning datatable header text,
i'm already using wrapText: true, for table sorting its workig for table data but not for table header
<lightning-datatable data={pagedRecords} ...
0
votes
1
answer
72
views
LWC communication Child to parent
I am trying to understand the difference in child to parent communication when doing with custom event via
this.addEventListener
by defining method name in child component definition in parent ...
1
vote
2
answers
877
views
How to get allMetadata retrieval using SF VSCode.. insufficient access rights on entity: GenAiPromptTemplate
Got latest VSCode,latest Sf cli,latest npm ,latest Java 21
Intention is to get all objects (without using Org browser as it will be very time consuming) in manifest.xml to local VS Code project so ...
0
votes
0
answers
34
views
Unable to update JSON object in LWC throwing :1 Uncaught (in promise) error
I have a wire function where i am getting data from apex
get userAddressBookData() {
var selectedUserListBeforeApexCall = this.selectedAddressList;
console.log('selectedUserListBeforeApexCall--...
0
votes
0
answers
164
views
Lightning Modal not getting focus when opened
I have created a component(modalParent) having lightning modal(myModal) using SLDS.
When the modal is opened, ideally it should get auto focus but that is not happening.
The focus is on the background ...
0
votes
1
answer
904
views
Difference Between Throwing AuraHandledException and Custom Exception in Apex Aura-Enabled Methods
In Salesforce documentation, it is mentioned that Aura-enabled Apex methods should throw an AuraHandledException to propagate user-friendly error messages to the client. However, I have a custom ...
0
votes
1
answer
262
views
lwc select-rows attribute wont update for tree grid?
I am trying to automatically select(checkbox) the nested rows when selecting the parent row in a lightning-tree-grid.
It's my understanding that the selected-rows attribute on the lightning-tree-grid ...
0
votes
0
answers
59
views
handleInputChange data input synchronising to all other rows
I have a LWC which diaplays a table of a custom object called 'Specifications' which a are grouped by Opportunity line items (parent record of the specifications.
The Opportunity row was read only, ...
0
votes
1
answer
336
views
How to change the Button background color in lightning Data Table on onrowaction?
I have a button in each row of the data table, So I want to change the color once it is click.
Below is my code snipeet.
{
label: 'Include GST',
type: 'button',
fieldName: 'invoiceNumber',
...
1
vote
1
answer
53
views
How to change value in tooltip charJS
Im using LightningWebCharts here is the documentation link https://salesforcelabs.github.io/LightningWebChartJS/
I want add 'k' in tooltip value. Tooltip documentation https://salesforcelabs.github.io/...
1
vote
0
answers
98
views
Need to capture the value from a specific field on the standard record edit page in real-time, before the Save button is clicked on Salesforce
I need to capture the value from a specific field on the standard record edit page in real-time, before the Save button is clicked, validate it, and then display the corresponding alert in the custom ...
0
votes
1
answer
406
views
How to hide the Scrollbar while using a Modal from LwC?
I have certain contents under body, but as the contents increases a scrollbar starts to appear as expected. But is there a way to hide it and still the modal is scrollable?
If there's any or anything ...
0
votes
1
answer
765
views
eval("$A.get('e.force:refreshView').fire();") is failing in testing sandbox with error [$A is not defined], but works fine in dev sandbox
So we have a lightning button which calls a LWC component. This LWC component opens up in a popup window with Save and Cancel button.
Now on the click of Cancel button the below LWC js code is called:
...
0
votes
1
answer
172
views
How to Click a Button Inside an LWC Component Using TestCafe?
I'm working on a TestCafe script to automate tests for a Salesforce Lightning Web Component (LWC). I need to interact with a button that is nested inside several layers of components and has specific ...
2
votes
0
answers
56
views
Puppeteer PDF generation race condition with front-end event dispatch
I'm working on a web application that generates PDFs using Puppeteer on the back-end, based on content rendered by a front-end Lightning Web Component (LWC). I'm encountering a timing issue where ...
0
votes
1
answer
161
views
Why is a dynamic picklist query in my Custom LWC component executing twice when added to App Builder and click save?
I have a Custom LWC component exposed on a Record Detail page in Salesforce. This component includes a Design attribute that dynamically queries picklist values. When I drag and drop this component ...
0
votes
0
answers
85
views
Javascript- Onclick event doesn’t open popup modal
This is Salesforce lwc component code. For some reason when I click “New Correspondence” button, nothing happens and no debug log on F12 dev console.
This button does not get registered for some ...
0
votes
0
answers
91
views
How Can I append a recordId with href url in anchor tag
I have a lwc table where I have created buttons. I am using a url inside the href attribute and it is redirecting me to a other page as expected but I need to append the recordId with url inside href, ...
0
votes
1
answer
25
views
Generic JS Function for Async Parallel and Sequential
I'm looking to make 2 generic, reusable functions to process parallel and sequential callouts.
Currently, we use inline await to handle sequential...
export async function init() {
const results1 = ...
0
votes
0
answers
44
views
Search box input is not getting focused on shift tab
In dialog box, there is one input search box and one close button. On tab click both elements are focusable and readable by NVDA but shift+tab not allowing me to focus inside an search box but instead ...
0
votes
1
answer
43
views
Implication of declaring a class with without sharing keyword and providing its access to guest user
I have created a class with without sharing keyword and I have provided access of this class to guest user profile. This class is being called from a LWC component which is hosted on public support ...
0
votes
1
answer
107
views
Using Slickgrid Universal 4.7.0, checkbox column not displayed with Salesforce LWC, header displayed not for rows
I am create a LWC component using Slickgrid Universal 4.7.0 for custom datatable. However I can not set the checkbox column correctly. How can I config the option for this?
I already set the ...
0
votes
0
answers
461
views
Email is sending sucessfully but we're not receiving it when we are sending it from salesforce
I have a button in LWC component. When I click the button, the LWC form will open. When we filled and submit the form, an email has to be sent, but even though the email is sent successfully in debug ...
0
votes
1
answer
227
views
Apex test class for the for loop is not been covered what needs to be done
public class ItemTypeWrapper {
@AuraEnabled
public Id ItemTypeId ;
@AuraEnabled
public String ItemType;
public ItemTypeWrapper(Id ItemTypeId, String ItemType) {
this....
0
votes
1
answer
78
views
I am using salesforce Apex language to do my work. I am using apex class containing functions I want to hit a function using the button on opportunity
I am having an apex class with multiple methods but I want to hit its 1 method on click a button on opportunity.
I had tried different ways but failed to get where to place my button and how to ...
0
votes
1
answer
279
views
Display record based on record type and and industry and show a green button icon if account is active using lwc how to implement
Write a LWC component to display Account records in lightning-datatable and show checkbox
field (IsActive) as an image (true: green check, false: red cross). Please don’t use @wire
adapters.
Please ...
1
vote
2
answers
1k
views
In LWC , event, event.target, event.target.value are undefined
I have a button that, when clicked, triggers another component. Before doing so it logs information about the event.
I am new to LWC. I couldn't find the solution in LWC reference guide.
<template ...
0
votes
1
answer
46
views
Apex call returns successfully after errror, resulting in issues
I have an Apex call which causes an error (ENTITY_IS_DELETED, but it doesn't matter which error it is). I might be able to fix that error, but now it somehow also returns successfully anyway, so the ...
0
votes
1
answer
2k
views
Run method when variable changes in lwc
I simply want to run a method when a variable changes. I think @track monitors the changes, but how do I run this method when it does? How do I write this?
@track displayedData <---when this ...
0
votes
1
answer
118
views
Aura to LWC recursion method migration
I have an older Aura method here that I want to translate to modern Javascript. For some reason I keep getting different output. I console log before recursion (data), then I console log before the ...
0
votes
1
answer
457
views
Passing in an Apex method parameter from Promise correctly?
I keep getting an error from the response of my promise, if I give it a parameter. I can't tell if I am suppose to pass in "columndefinitions" parameter to the apex method or not. I have ...
0
votes
1
answer
248
views
How to Reflect Updated Account Data in Subsequent Salesforce Lightning Flow Screens?
I'm working on a Salesforce Lightning Web Component (LWC) designed to be embedded in a Screen Flow. This component allows users to modify an Account record's fields and then updates the record using ...
0
votes
0
answers
921
views
Salesforce LWC that is subscribed to a platform event doesn't let me use RefreshApex as the element is undefined
I have a screen flow that guides a user to create a billing record in Salesforce.
The last button creates the record and also sends a platform event.
My LWC is designed to show the totals e.g. Amount, ...
0
votes
0
answers
113
views
Unable to implement V6 in LWC component using JS
The full calendar is not working with V6 in LWC Component.
It throws error
TypeError: Cannot read properties of undefined (reading 'changeView')
when trying to call the ChangeView method from JS
The ...
-1
votes
1
answer
182
views
Impossible to retrieve an opportunity by name with form with LWC
Creation of a form that allows you to find an opportunity by name and display the necessary information about the opportunity in a table.
So I'm using Lightning Web Component to create a form to ...
0
votes
0
answers
97
views
How to hide or encrypt the payloads when API calling is made from js of LWC?
When the API is invoked, you can observe the this.accessToken and the request body in the browser's network tab.
const response = fetch(endpoint, {
method: 'POST',
headers: {
'...
1
vote
0
answers
368
views
Customize a <select> tag in LWC
I want to customize the tag of the LWC. I have made the background transparent. My background image is dark. So, I want my text to appear as white so that it is visible. Also, while selecting the ...
0
votes
1
answer
335
views
LWC setter is not getting called
LWC setter is not getting called.
<template>
{message}<br><br>1. getter value: {displayMessage}<br><br>2. setter value: {updatedMessage}
</template>
import { ...
0
votes
0
answers
298
views
Eval() is not working in LWC Javascript, although it is working fine in LWC playground
I tried running this code in the LWC playground and it runs fine for me
When I try to run the same code inside a method in LWC component in salesforce (JavaScript), it's throwing an error.
import {
...
0
votes
1
answer
485
views
How to expose lighting record edit form on salesforce site
<lightning-record-edit-form object-api-name="Financial_Entity_AC_Detail__c" onsuccess={handleSuccess}>
<lightning-messages> </lightning-messages>
<lightning-...
0
votes
1
answer
2k
views
LWC How to display address values in lightning-input-field?
I have changedFields object with the structure like following:
changed fields: {"Name":"Test Practice Test","ReasonForUpdate":"Test","BillingAddress":{...
0
votes
0
answers
1k
views
Hover popup expanding entire row of lightning datatable
I am trying to show User info on hover over Name field in datatable, which is resulting in expansion of entire row rather than just hover popup.
Below is the code for datatable where I am using custom ...