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
if:true comparison inside the for loop
I want to do comparison in the if:true part inside for:each loop.
The answer I got from google is to create a new sub-component. But I really don't wanna go this route... Any other good options?
…

Xi Xiao
- 953
- 1
- 12
- 28
0
votes
1 answer
LWC Horizontal scrollbar
I have a LWC component with 15 input box side to side. All inputbox have a width and the problem is the content goes under the component on the right side in Opportunities.
How can I add a scrollbar in my custom LWC so that the size is fix and I can…

Eric
- 11
- 1
0
votes
1 answer
How can I delete nested rows in Salesforce LWC
How can I delete nested rows in LWC
//Code for parent rows
//Code for child rows
…

H John
- 1
- 4
0
votes
1 answer
I am trying to debug LWC in chrome dev console
I am working on wire service, I get the output on UI (salesforce UI), I want to be able to see the response data in the dev console so that I manipulate the data on template.
Usualy we should be able to see the component in the console. I cannot see…

inbox outbox
- 11
- 5
0
votes
1 answer
LWC: How to reset values of a multiselect combo box on click of a button in LWC
In my parent component I'm calling child component as:
JS:
picklistValues =…

Rose
- 1
- 3
0
votes
1 answer
0
votes
1 answer
How to form an URL in LWC Community Page that can carry User Info?
I am forming a web app in lightning Community Experience Builder using LWC, which already has an URL that carries the domain of my org.
Now I want to handover the URL to users along with an Id appended to its end, such that when the user visits the…

Dweepayan Sharma
- 3
- 1
- 4
0
votes
1 answer
Anyone have experience with exposing Event type in Salesforce Lighting Web Component LWC for the Dynamic Interactions?
I tried to expose the Event tab in the LWC. I followed this Help document from Salesforce: https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_dynamic_interactions.htm&type=5&release=234
Here is another document that has more info on…

Jay
- 3
- 2
0
votes
1 answer
Google chrome open image files instead of downloading it
I am trying to download a file by clicking on a link. But every time, if it is something chrome can open (such as an image) instead of downloading the file, it opens it in the new tab. What should I do to prevent it from opening the file and…

adnan_aust
- 45
- 8
0
votes
0 answers
Custom button for record edit form
I have used a custom button to submit the updated record on LWC, used as quick action. In onclick funtion, I have used "this.template.querySelector('lightning-record-edit-form').submit(this.totalFieldList);" But when I submit the the values are…

RaptorStrike
- 1
- 1
0
votes
1 answer
Using lightning data table with inline editing for multiple records. Getting getting Uncaught (in promise) from validation rule in then method in LWC
I've a Lightning Data table and I'm using Promise.all(promises) as mentioned in the documentation from updating multiple record changes in the inline…

Salesforce Guy
- 1
- 1
- 4
0
votes
1 answer
Get Tailwindcss in Salesforce org
I want get Tailwindcss into my Salesforce org, so that I can use those classes for UI requirements in LWC/Aura components, Searched online a lot but couldn't find anything, Help me with the steps?

heeat
- 128
- 2
- 9
0
votes
1 answer
I want to show contacts of an account
I want to show contacts of an account, for that I have created LWC, I am calling Apex method here and I want to show all contacts of an account using data table, but data is not showing in the UI.
I am using custom label to pass account to Apex…

user97539
- 1
- 1
0
votes
1 answer
trailheadapps / lwc-recipes install failure
Deploying(https://github.com/trailheadapps/lwc-recipes) To a sandbox and gets following error
=== Component Failures [4]
Type Name Problem
───── ────────────────────── …

Sandeep
- 615
- 6
- 13
0
votes
1 answer
Salesforce LWC Database.setSavepoint
Javascript admitted newbie and hacker here, so I suspect this question is very ignorant and a learning experience.
I'm essentially converting an old Apex/Visualforce page to LWC. The Apex code employs Database.setSavepoint() and Database.rollback()…

m.lp.ql.m
- 5
- 3