519
questions
0
votes
0
answers
22
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
31
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
votes
0
answers
18
views
Unable to display data with escape characters in response
I am getting data from an API from APEX and I'm using that data in LWC.
When I get the response in LWC, it has a lot of escape characters (\n) and when I'm displaying it using HTML the escape ...
0
votes
0
answers
21
views
Adjusting Flexipage Bottom Margin for Hidden LWC Component on Salesforce App Page
I’m working with a Salesforce LWC component attached to an app page, where I need to control its show/hide behavior. However, I’m encountering an issue where a small space remains above the component ...
1
vote
1
answer
45
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/...
0
votes
0
answers
26
views
Test class coverage issue
I have an apex method i have to write test class for that
@AuraEnabled(cacheable=true)
public static userWithStateTerritoryDetails userWithStateTerritoriesDetails(String programType,String programId){
...
0
votes
0
answers
22
views
LWC slds table onblur function
not able to call onblur function in LWC js
In my LWC slds table I've used this in td key={field} data-field={field.fieldValue} data-index={indexRow} data-column={colIndex} onblur={onblurData} class=&...
0
votes
0
answers
52
views
Refresh Tab - Service Console (Salesforce)
Problem Statement -
We have a "Refresh Tab" in the service console, which refreshes all the standard components. There are multiple LWC custom components on my record details page, and I ...
1
vote
0
answers
35
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
57
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
141
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
0
answers
37
views
LWC ShowToastEvent Undefined
handleSubscribe() {
//Implement your subscribing solution here
const messageCallback = function (response) {
console.log('New message received: ', JSON.stringify(response));
...
0
votes
0
answers
37
views
How to change Label and Placeholder from Lightning-input-field which is a standard lightning component?
I have this lightning record edit form here, so now the label and the placeholder are coming directly from the record. But I want to change them according to my requirements. So how shall I change the ...
0
votes
0
answers
24
views
I have a list of images in the UI on click of remove image i have to match the id of deleted image record id and i have to delete from the databaseLWC
I have a list of images in the UI on click of remove image i have to match the id of deleted image record id and i have to delete from the databaseLWC
removeImage(event) {
let index = event....
0
votes
0
answers
82
views
How to change color of Selected values from Combobox in LwC
I have this piece of code, i need to the change the color of the selected to red instead of black(which is default) How shall I achieve this?
<template>
<lightning-combobox
...
0
votes
0
answers
41
views
Input Number Format
I am working in LwC, and when I enter a value in the input box say 123456789 then when I leave it, it automatically turns to 123,456,789 which is I know an default behavior. But I don't want in that ...
0
votes
0
answers
16
views
Change Data Capture available entities not showing
How can I see the standard and custom object entities list?
Please provide the steps how I can show the entities list.
Or can you please provide the steps to be able to show all standard and custom ...
0
votes
0
answers
31
views
Salesforce LWC stuck on first deployment and did not change with the updates
I have an LWC got stuck on first deployment and I tried to clear caches in my browser and uncheck the Enable secure and persistent browser caching to improve performance int he session settings. but ...
0
votes
1
answer
55
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
31
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
0
answers
160
views
LWC lightning-input date's datepicker is displaying outside datatable
I have a datatable with date input field. The problem is the datepicker is very far from the input type. It's outside the datatable. How to display it just adjacent to its input field? Let's say, ...
0
votes
1
answer
42
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
54
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
13
views
Issue in sending the reply mail In salesforce
I have an LWC Component which have two buttons one is for new mail and another one is for reply mail there is no issue in sending new mail, but for reply mail button when user click it, need to send ...
0
votes
0
answers
116
views
Unable to embed an external url in iframe in an lwc which needs certificate to access
I am trying to embed an external url in my lwc as an iframe. The external url needs a certificate and that certificate i have added in certificate and keys in setup. But I am unable to access that url....
0
votes
0
answers
59
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
0
answers
17
views
VisualForce Page data not displayed after uploading to "Notes and Attachments"
As the below given, there is a quick action in Account page, which enters Contact details and on saving, it redirects to the Contact page where a pdf is attached in the 'Notes and Attachments' of ...
0
votes
1
answer
24
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
17
views
why is my code not changing to the next page which is the suggestion page after hitting the button it says unknown error during login
why is my code not changing to the next page which is the suggestion page after hitting the button it says unknown error during login.
import { LightningElement, track } from 'lwc';
import logIn from '...
0
votes
0
answers
34
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
27
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
0
answers
99
views
object declared in lwc getter is proxy object
I am trying to create an object in a getter for a lwc. For some reason when I declare the object, it is proxy object and does not retain any of the properties that I assign to it.
I am really ...
0
votes
0
answers
275
views
How can i show custom error message on my record form in lwc in salesforce if the lastname of the person account is blank?
I want to show a custom error message which says please enter the lastname of the person account if kept empty on the lwc component created using record form
I am expecting a way to show a custom ...
0
votes
0
answers
20
views
Selenium webpage data missing
When running a selenium test I am running into an issue wherein sometimes I can see the data element present in UI but when seeing the element on inspect in dev mode I do not see the related data ...
0
votes
0
answers
62
views
Salesforce LWC: Total Quantity Not Updating Consistently in Shopping Cart Component
Add an Item: Add an address to a specific item in the shopping cart.
Enter Quantity: Enter a quantity for that item using the provided input field.
Observe Total Quantity: Notice that the total ...
0
votes
0
answers
44
views
Flags are not displayed correctly when using Salesforce LWC on Community page(Experience Cloud)
I have got a problem with the flags whereas they are not exactly cropped correctly and other country flags are partially shown as picture below shows:
This is how I implemented the Phone input ...
0
votes
1
answer
72
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
165
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
0
answers
45
views
How to call controller methods/utils during Aura to LWC conversion
We have a campaign Image aura component that uses this Java controller
I am trying to move this to a new LWC component and wanted to know how can I use the controller in my LWC component?
Are the ...
0
votes
0
answers
55
views
LWR Navigation from one LWC compnent to another
I have 2 LWC component applicationPage and gettingStarted and I want to use the page in LWR.
ApplicationPage is having a button which should navigate from applicationPage to GettingStarted in the same ...
0
votes
1
answer
106
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
50
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
0
answers
17
views
I have to capture the previous and current value of an lightning selected and enable or disable the fields based on that in aura
<lightning:select name="Ordering Type" label="Ordering Type" required="true" aura:id="posInventorySeasonalId" disabled="{!and(v.posItem....
0
votes
0
answers
34
views
Kakao JS SDK Calls in Salesforce
I'm trying to develop a Salesforce component that makes a request to KAKAO API using the KAKAO JavaScript SDK.
this is my lwc Javascript code to initiate Kakao App
import {LightningElement} from 'lwc'...
0
votes
0
answers
94
views
Lightning Web Component Fails When Deleting Second Record in handleRowAction Method
I'm working on a Salesforce Lightning Web Component where I need to manage a list of records that users can edit and delete. Each record is represented in a data table with an action button to delete ...
0
votes
0
answers
339
views
LWC DataTable not rendering custom picklist column correctly
I'm developing a Lightning Web Component (LWC) that displays records from a Salesforce screen flow in a data table. I'm trying to include a picklist column that edits the value of the Conceptos__c ...
0
votes
1
answer
96
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
784
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
28
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
0
answers
41
views
JAWS reading the error message twice in lightning input LWC
JAWS reads the error message on the lightnin input twice because of the presence of both aria-errormessage and aria-describedby attributes. Values for both attrubutes are same.
How to resolve this and ...