Questions tagged [lightning-web-components]
This tag is for questions related to JavaScript, CSS, or Markup when used in the Lightning Web Component (LWC) programming model, or for questions of interoperability between LWC and the original Aura-based lightning components.
9,027 questions
0
votes
0
answers
26
views
Apex and GetRecords only return one record
First time post. I've been looking at this for nearly 2 days and can't figure it out.
Objective: Allow users to upload a CSV file with a single column of Account Ids (1). When file is uploaded ...
0
votes
0
answers
10
views
Lightning Tree Grid - Detect Column Width Change
How to detect when a user changes width of columns?
I would like to use an event handler for this so I can save the new width of columns into localStorage and set initialWidth of columns to stored ...
0
votes
0
answers
22
views
Interacting with the Email Body within the Email Composer (Chatter Publisher)
I've seen a video online of a company that has an LWC in the case page, and once clicked, if the email composer is open and someone wrote an email there, edit the email and make it more professional.
...
-1
votes
2
answers
46
views
Lightning Tree Grid View: Show Conditional Image as value
Using the <lightning-tree-grid> view I would like to show conditional images as values.
I do know how to change the CSS but I haven't yet figured out how to make conditional images show ...
-1
votes
0
answers
23
views
Error: The Content Security Policy directive 'report-to' contains more than one endpoint
How to get rid of this error showing up in the console on any and every page in Salesforce?
The Content Security Policy directive 'report-to' contains more than
one endpoint. Only the first one will ...
0
votes
0
answers
41
views
LWC Building help to understand html issue
I am trying to increase my LWC knowledge and set myself a little task that seems too big for me. I have asked some AI platforms, but I think a good human would be better.
I have a custom object with ...
0
votes
0
answers
35
views
How to fix Self Registration form with SSO?
I’ve configured SSO with Salesforce as the Identity Provider (IdP) and Raisely as the Service Provider (SP). The SSO setup is for a Salesforce Experience Cloud (Community) site.
Logging in with an ...
0
votes
1
answer
57
views
LWC within omniscript not refreshing based on value changes in omniscript
I have an Omniscript with a custom picklist field (Picklist value populated from the Apex method), which is working fine. Within the same step as this picklist field, I have an LWC and I am sending ...
0
votes
1
answer
23
views
Filter Stages Displayed in Custom LWC
I have been searching without any success. Is it possible to display a filtered list of stagename values in a lighting-input-field that is in a lightning-record-edit-form ? Here is the current code ...
0
votes
1
answer
42
views
How do I pass data from LWC to Screen flow Dynamically, Without going to next screen?
I want to fetch a Variable's value from a LWC to Screen flow dynamically, without going to next screen. Later I want to use the returned value to pass in another LWC.
Any suggestion would be helpful.
0
votes
1
answer
69
views
LWC component not rendering in Agentforce
I am trying to show credit score of my leads in Agentforce. I am using a LWC to show that in the agent console, but I am getting this issue. I don't know what I am doing wrong, I cant see the LWC ...
0
votes
0
answers
15
views
Is it possible to open the standard email action box from an LWC?
This standard email box that is fixed to the bottom bar of the console:
It would be ideal to open this one from a custom LWC, as this box lets you move around the console without losing the added ...
0
votes
0
answers
24
views
How to dynamically load a remote React remoteEntry.js (Webpack Module Federation) inside LWC without using Aura, iframe, or static resources?
I’m trying to integrate a React micro-frontend into Salesforce using Lightning Web Components (LWC) and Webpack Module Federation.
My goal is to dynamically load the remote React app (remoteEntry.js) ...
0
votes
0
answers
19
views
Custom LWC limit values displayed in stagename
I am trying to limit the values that are displayed in the opportunity stageName field dependent on the current value of that field.
I am using a a lightning-record-edit-form with lightning-input-field....
0
votes
1
answer
65
views
Can't save a page with this error "There was an error saving the page: Required field is missing: leftValue"
I'm having a problem while saving an account page. When I click on Save it gives me this error "There was an error saving the page: Required field is missing: leftValue".
I created a LWC ...
0
votes
0
answers
44
views
Confused about application of SLDS styling hook in CSS file
I will readily admit that CSS has always seemed like black magic to me. It looks simple in theory, but in practice it behaves... unpredictably (at least to me).
And unfortunately, having to use SLDS ...
0
votes
0
answers
43
views
How to call an @api method on an LWC from Aura on a Visualforce component?
In my community I have a Visualforce page/Apex Component that loads an Aura component and a Lightning Web Component (LWC) using $Lightning.createComponent. I need the Aura component to pass two ...
1
vote
1
answer
51
views
How to reference an Asset file in a LWC, used in a Lightning Email Template?
I have uploaded an Asset file. It is marked as "Asset File" and resides in Libraries > Asset Library.
Upon uploading it, I saved the name/API name, both being "facebookv2png".
...
0
votes
0
answers
25
views
Override Edit Button with Lighting Web Component when record has a certain recordtype
An object has legacy functionality where New, Edit, and Clone are overridden with a VisualForce(VF) page. I'd like to implement a new RecordType and rather than make the legacy VF page even more ...
0
votes
0
answers
60
views
FilePond Image Preview Not Working & MIME Type Error in LWC and LWR Site
Hello Salesforce Support Team,
I am currently implementing an image upload functionality in Lightning Web Components (LWC) using FilePond. I have developed two separate LWC components which both use ...
0
votes
1
answer
26
views
How can I achieve proper spacing between the carousel border and the image content?
I'm working with a Lightning Web Component that uses lightning-carousel and lightning-carousel-image components. I want to add a border around the entire carousel card with proper padding between the ...
1
vote
1
answer
73
views
Lazy Loading with Child Component
I have a lWC that passes a list to another lwc. All was fine until an exiting account added 16k records. Now, my LWC takes forever to load. From what I can find, it seems that Lazy Loading would ...
0
votes
0
answers
36
views
Does releaseMessageContext(messageContext) automatically unsubscribe all LMS subscriptions in an LWC?
I’m working with multiple Lightning Message Service (LMS) channels inside a Lightning Web Component (LWC). To manage them, I typically keep track of each subscription and call unsubscribe(subscription)...
1
vote
0
answers
91
views
LWC: Apex-defined ouput variable only storing 1 record
I have a LWC that is embedded inside a screen flow. The component shows a datatable with records of Order object and I want to keep the records that the user has selected (with a checkbox) in the ...
-1
votes
1
answer
25
views
SF support access to B2B refapp
I have two SF cases open for B2B issues that seems to be related to OOTB functionality. Issues are identified as coming from OOTB LWC. But in each case SF support team asks if the issue is ...