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
0 answers
Local Image Upload with TinyMCE and VisualForce page
I'm working with tinyMCE editor and I was wondering how to enable local image uploading? I'm using this editor inside of VisualForce page and iframe.
I tried all examples provided in documentation but none of them work for me...

Mila Mirovic
- 31
- 3
0
votes
1 answer
How to display hierarchail json as tree in lwc
I have a JSON object.
[
{
"label": "Lauren Boyle",
"name": "Lauren Boyle",
"expanded": true,
"items": [
{
"label": "Banoth Srikanth",
"name": "Banoth Srikanth",
"expanded": true,
"items": [
…

Banoth Srikanth
- 1
- 2
0
votes
1 answer
How to get FROM and TO address updated dynamically in the "Create Email as quick action with LWC"?
I am trying to implement "Create an Email as a Quick Action" using…
0
votes
2 answers
Passing a variable to href in HTML
0
votes
1 answer
Why is this code not passing the check challenge?
I'm currently studying for my first superbadge, and it's been quite an adventure so far! However, I've hit a roadblock on the second task (Automate record creation) and could really use some assistance...
If anyone has any insights or tips regarding…

Rafael Moraes
- 1
- 1
0
votes
0 answers
Salesforce LWC to screen flow events
Is it possible to trigger standard component event from a custom Lightning web component. Like a value change in flow textbox to update a label in LWC on the same page and instantly.

Hasan Zubairi
- 1,037
- 4
- 23
- 57
0
votes
1 answer
Unable to populate the Account.Name lookup value in data table
I'm unable to populate the Account.Name lookup value in a data table. Although its visible in console but not on the data table.

John jonny
- 9
- 1
0
votes
0 answers
Worker error with using Mapbox GL CSP JS in Salesforce LWC
I am working with mapbox gl csp as per documentation from mapbox. It recommend using mapbox-gl-csp and mapbox-gl-csp-worker for using this library in environment with Strict CSP policy. In my case I am trying to put a map in salesforce LWC and I am…

Sandhu
- 141
- 2
- 10
0
votes
1 answer
How to pass selected records i.e, list of records which isn't related to any sObject and Custom Object from LWC to Flow
I'm having a list of records which isn't related to any custom or standard object I need to pass it to Flow. how to pass the list of records from LWC to flow using in js-meta.xml and also help me what kind of flow resource I need to create so that I…

satheesh
- 3
- 2
0
votes
0 answers
TypeError: _client.ApolloClient is not a constructor getting error in jest case while mocking the apollo client
I am trying to mock @apollo/client in my jest file with LWC component.But not able to mock it properly i guess.
here is the code below:
import { ApolloClient } from '@apollo/client';
const mockClient = new ApolloClient({
link: new HttpLink({
…

jkvitlko
- 11
- 1
0
votes
1 answer
Lightning-combobox dropdown options not visible on UI
Dropdown options for the lightning combobox are not getting displayed on UI.
All values are getting fetched through the standard method getPicklistValuesByRecordType in the Js file of LWC component.
kindly assist me, where and what did I miss in the…
0
votes
0 answers
Unable to see datalabels on chartjs in LWC
Trying to display datalabels on the a pie chart using chartjs library in LWC. Tried both version pairs for chartjs and chartjs datalabel plugins libraries (V4.2.1- chartjs & V2.2.0 - chartjs-datalabel-plugin) & (v2.8-chartjs &…
0
votes
1 answer
How can i use
I have a SVG file with some text content, this file is inside static resources.
OnClick of that text i need to call a JS function from the LWC.
This works fine in salesforce org but for community tag is not loading the svg.
HTML
0
votes
0 answers
amcharts: Not able to load amcharts/index.js in lwc
Trying to build a component to use amCharts in salesforce lightning web components. The index.js fails to load with undefined error in the catch block. On enabling the debug mode and adding a debugger, the error seems to be coming as ReferenceError:…

Devarshi Mishra
- 11
- 2
0
votes
0 answers
Does a user need to authorize everytime when he logs in to make an external callout which is configured in auth provider?
I've 2 salesforce org where one Org A need to fetch data from Org B so I configured named credentials and auth provider and authenticated as Org B which is working perfectly.
My doubt is what happens when the access token expires or what happens…

Banoth Srikanth
- 1
- 2