For questions about Lightning Web Components (LWC) - the UI framework for the Salesforce platform. When using this tag also include the more generic [salesforce] tag.
Questions tagged [lwc]
503 questions
0
votes
1 answer
Salesforce -- Anyone experiencing weird behavior of "wire"?
Been learning Salesforce for a month now and this is the first weird stuff I have encountered and not a single documentation was able to help me
I have imported the wire from lwc properly
But whenever I'm deploying it, it says that a wire variable…

Suomynona
- 639
- 1
- 5
- 20
0
votes
1 answer
How can I fix input width and label spacing to match surrounding lightning inputs
I have a LWC, there is a section which comprises of filters. Most of them are standard lightning-inputs, but two of them, are custom lookup components. The problem is, I can't find a way to make them align and look the same.. even if internally it…

joacoiudica
- 117
- 1
- 6
0
votes
1 answer
LWC tree grid not rendering the data
tempdata in consoleHi iam creating an lwc component for tree grid view i have get the data from my controller but it is not rendering into the user interface.
My js code
import { LightningElement, track,wire,api} from 'lwc';
import getDomainsList…

Prasanna Kumar
- 11
- 5
0
votes
1 answer
How to invoke the Flow, On Button Click from LWC(Salesforce)
I have requirement where I have to load flow having different screens, on click of button in LWC.
I found only one blog related to this is :
https://unofficialsf.com/developer-topic-insert-screen-flows-into-your-lwc/
but not working for me. Please…

Anita Mehta
- 625
- 2
- 13
- 30
0
votes
1 answer
How to display SVG from code in LWC salesforce
I am calling the API (GET API).
https://upiqr.in/api/qr?name=SantanuSinha&vpa=9096213138@ybl&amount=100
I am calling the API from the LWC
I get the response in the SVG format.
How can I display the SVG that I get in the response on LWC

Nitin Zagade
- 71
- 1
- 7
0
votes
1 answer
Clear/Delete the values picked off a lightning-checkbox-group
My goal is to clear all the checkbox checks when I move from one lightning-tab to another. I use the lightning-tab onactive={handleTabClick} function to clear all the field inputs when moving from one tab to another. The following code clears…

Jose Roman
- 1
- 1
- 3
0
votes
0 answers
Why can't I move this code out of the event handler for this Salesforce Lightning Web Component?
I have two event handlers, one is fired when the user types a keystroke that I capture with the onkeyup event and the other is fired when they check or uncheck a checkbox which I capture with a onchange event.
This is in the context of a Salesforce…

jkurant
- 45
- 7
0
votes
1 answer
LWC Layout items not getting aligned
I need advise; from LWC Customer community form is getting displayed.
The problem in facing is when I add new button, the form is not getting aligned in the centre.
The code is:

pavan kumar
- 1
- 3
0
votes
1 answer
Lightning Web Component setting dynamic style not working as expected
I'm currently trying to render a specific class across two lightning-badge components that is suppose to change both badges from inverse to success, but am getting this instead:
When the value on the left badge equals the value on the right (so in…

jackb
- 35
- 1
- 4
0
votes
1 answer
Hide Header row in LWC Tree_Grid Base component
I wanted to implement Lightning TreeGrid LWC component with no header row.
Tried Updating the CSS in inspect element
I was able to hide the header by modifying the Thead css as shown in the image from inspect element but not sure which class to use…

Shetty Sushanth
- 1
- 1
0
votes
5 answers
Error Deploying or Retrieving source: The file or directory isn't in sfdx-project.json
All of a sudden I started getting this error everytime I'm trying to deploy or retrieve a file directly (right click on apex file and retrieve). This always worked and now it doesn't for all of my projects. I tried opening new ones, etc.
Error…

Walker
- 11
- 1
- 3
0
votes
1 answer
After selecting an option from lightning-combobox the dropdown show "Select Progress" instead of the option I picked
When I pick a value from the dropdown (Combobox) instead of keeping the value I picked the dropdown shows "Select Progress" instead.
How can I make the code show the value I picked...???
I am trying to show Start time on one of the Comboboxes and…

Jose Roman
- 1
- 1
- 3
0
votes
0 answers
How do I check and uncheck for list of checkboxes coming from JSON data in LWC
Hi there I'm working on a functionality for checkbox selection limited for 4 checkbox in the list , so now I have filter hue-rotate in styling for 4 selected checkbox , now if I uncheck the anyone of selected and check different selection I should…

Manjunath L
- 3
- 5
0
votes
0 answers
Dynamic click listeners not working on lwc
I've been trying to get this related list to render on a lightning web component, and when it updates the only thing that doesn't work is the on click listeners... sort of.
Here's the relevant LWC JS
@api recordData;
@api callLogList = [];
…

chinnc
- 106
- 7
0
votes
0 answers
LWC Datatable in a multi-currency org: Dollar sign $ appears for a moment on Cell change for non-dollar currency
The column definition is:
{
"columns": [
{
"cellAttributes": {
"alignment": "left"
},
"editable": false,
"fieldName": "aiq_BandNumber__c",
"label": "Tier Band",
"sortable": false,
…

Vit667
- 1
- 1