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
How can I get the email Id of the user who 'Logged in as' another user in Salesforce Apex or LWC
Let's say manager_a has permission to view the account of payee_a, so manager_a logs in to payee_a, inside I have my LWC app, I can able to get the payee_a's email id using
import userEmailFIELD from "@salesforce/schema/User.Email";
But I want the…

R_M_R
- 31
- 6
0
votes
0 answers
Stop click functionality of div when we click on anchor tag which is present in that div tag?
When I click on the div tag where I have created a function in which I will redirect to a static page, which is working fine, but when I click on the anchor tag which is present in lightning-formatted-rich-text, it will be dynamic then the…

Kamlesh Regar
- 1
- 1
0
votes
0 answers
Plugins issue of salesforce
When am try to authenticate my salesforce advance code seacher extension in my sandbox it’s getting stuck on the page after I allow it and says object[object].
Does anyone have any idea?
have tried require httpOnly uncheck and caches clear things.…
0
votes
0 answers
Values are not displaying in Combo box. I can able to get the data in @Wire method. I am not sure where is the issue?
Html. File
label="Folders"
value={value}
options={folders}
onchange={handleChange}
…

Sfdc_123
- 1
- 1
0
votes
0 answers
How to integrate Chart.js into Salesforce?
I'm looking to visualize some data in Salesforce using Chart.js.
I downloaded it using npm and retrieved the chart.js file from there. I then tried adding this file as a static resource in Salesforce, but it's not working as expected. How can I…
0
votes
0 answers
Capture the record visitor details on lightning record page it is org default
I have one lightning record page which is org default. I want to show on record level current user name and no. of times he visited page. I wanted to achieve this using lightning web component. can you help me . I am new to LWC.
I tried this…
0
votes
0 answers
LWC header for subquery
I have a problem when I used the SOQL sub query header in LWC. Initially, I wanted to show the UnitPrice from the PricebookEntries using the Product2 as base query (from). But I got a problem initializing the header in LWC.
Class:
public static…
0
votes
0 answers
How to convert 15 character salesforce id to 18 character salesforce id in LWC
I want to conver 15 char salesforce id to 18 char salesforce id in LWC using JS.
i have tried below code but it does not give accurate id.
function convert15CharTo18CharId(id) {
if (!id) throw new Error("id cannot be null or empty");
if…

Gaurav Dholakiya
- 3
- 1
0
votes
0 answers
No build task to run found. Configure Build Task
When I am trying to run my build task, I'm getting this message -
No build task to run found. Configure Build Task...
I have the following 'tasks.json' file stored inside '.vscode'
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
//…
0
votes
0 answers
How to set default color in lightning input rich text color picker
I have a lightning input rich text field with the following formats enabled:
'color', 'bold', 'italic', 'underline'
I am trying to set the default color to red by setting the format in renderedCallback(below), however, the color in the toolbar is…

spiritqueen
- 689
- 1
- 6
- 14
0
votes
1 answer
How to get updated data from task editor widget from custom field in bryntum gantt chart library
I have created a Gantt chart using bryntum library, it's a very good library so far, all although there are many topics that I am not able to understand from their official documentation,
Like I have added one custom field called phase in the task…

Jon Snow
- 59
- 6
0
votes
1 answer
Salesforce lightning card header background
I am trying to change the header color of the card and also there is line after the data table how to get rid of that line. Is it the border of data table.
I want to get this result
Is it the lightning card or some other component.

Hasan Zubairi
- 1,037
- 4
- 23
- 57
0
votes
1 answer
LWC FlowAttributeChangeEvent issue
This is my variable
textVal==>{"Basin":["Atlantic"],"Storm…

satheesh
- 3
- 2
0
votes
0 answers
Couldn't load Tableau JS API in LWC
this is the Tableau JS API [1]: https://public.tableau.com/javascripts/api/tableau-2.min.js .I had saved this file as JS and uploaded it as static resource in Salesforce.
This is the LWC JS code to load the script
renderedCallback() {
if…

satheesh
- 3
- 2
0
votes
0 answers
Error While Creating Custom Authentication for 2GP Managed Package
I have an LWC that retrieves field dependencies in the salesforce org and I have used a connected app, auth provider, and named credential in the component I want to pack the component using 2GP managed package and since 2GP does not support auth…