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
1
vote
2 answers
Add a row from one table to another in LWC
I am very new to LWC and Javascript. I have an LWC component with a search bar and a table (created in HTML file) showing the search result. I want to add another column in the table with a button on each row which allows me to add that whole row…

Niklaus
- 39
- 1
- 9
1
vote
0 answers
Salesforce LWC interact with SVG with script
I am trying to display a SVG that contains a script inside a LWC and have some interaction with it.
This SVG is an exploded views of my product. My LWC will contains this SVG and a list of product. When the use goes over the exploded view, the…

Blandine Alvarez
- 11
- 1
1
vote
0 answers
How to get dataURL of Salesforce ContentVersion in LWC?
I am trying to get dataURL of Salesforce ContentVerison using canvas.toDataURL in LWC method but I am getting the following CORS policy error:
"error image"
LWC html code:
…

Abhishake Chauhan
- 11
- 1
1
vote
1 answer
Full Calendar does not show range for 15 min slot duration
I am fixing someone else's code and I'm not familiar with Full calendar.
Can anybody help me with full calendar. I have an event set for 7:00AM-7:15AM, it should show that on the UI. What happens right now is that whenever I set to 15 mins duration…

Shiro Mier
- 465
- 1
- 4
- 7
1
vote
1 answer
Code deployed successfully but the changes is not showing
I am new to LWC. Sometimes when I deployed the code. Code deployed successfully but changes are not showing.
e.g when I add a button or I change the title of the card so that changes do not show on the component. All packages are up to date. Any…

fawad khan
- 19
- 3
1
vote
1 answer
Call lightning Web Component from URL and capture parameter from URL
I want to redirect user from one LWC to another by clicking on URL in experience cloud. Basically, on my first LWC I am showing the list of records retrieved from Apex and then when any row is clicked, I want to pass recordId of that row and…

spuamtiitl
- 25
- 1
- 9
1
vote
1 answer
Can we create a record for Event object through lwc in Salesforce?
This is my js code:
var fields = {'OwnerId': user,'CreatedById': user,'WhoId': this.doctorName ,'StartDateTime':this.startDate, 'EndDateTime':this.endDate, 'Departments__c': this.depName, 'Doctor_Name__c': this.doctorName};
var objRecordInput =…

Ayushman Saini
- 11
- 2
1
vote
1 answer
How To Make Salesforce LWC work only for New Cases and Not on Existing cases
I have a requirement where LWC component is fired everytime when a case is opened,I want to change LWC component to work only for NEW cases,what changes needs to be done in the LWC to make it work only for specific case types which are in NEW…

Carolyn Cordeiro
- 1,525
- 3
- 11
- 26
1
vote
1 answer
How to use Lightning Web Component inside Visual Force Pages?
I want to achieve file upload functionality in LWC component through Visual force page.
Here, my visual force page code
My Apex Page, Aura Application, HTML an JS code :
…

Ravi Shah
- 843
- 12
- 29
1
vote
0 answers
Get value of Lightning-Input on invalid entry
I want to be able to get the value of lightning-input when the user input is invalid.
From the lightning-input documentation:
For input type number, the component sets the value to '' (an empty string) when the number input becomes invalid. The…

Gabe Givelber
- 11
- 2
1
vote
0 answers
D3 render fill image refresh browser issue
Seeing a weird issue where opening one page will load our network graph with filled circles of images, but jumping to another page will not display the circles. MOF two observations have been made:
Issue does not exist with Safari but only…

Robert Huddleston
- 11
- 1
1
vote
3 answers
salesforce developer - SFDX: Retrieve Source from Org
I have Lightning Web Components called list.
And when I try to do SFDX: Retrieve Source from Org,
To get my classes from Apex class.
I get the following error:
20:32:09.428 Starting SFDX: Retrieve Source from Org
=== Retrieve Warnings
FULL NAME …

Miriam F.
- 21
- 1
- 7
1
vote
1 answer
Local Development Server for Lightning Web Components
I'm trying to set a Local Development Server for Lightning Web Components according to this link but when I try to install the plugin @salesforce/lwc-dev-server I get this error message :
Code: ShellParseError
and a .js file named npm-cli.js opens…

Iago Richard
- 47
- 4
1
vote
1 answer
How can I configure fields in a custom lightning record form as an admin?
I am very new to Salesforce and am currently trying to create a custom LWC for a project that has specific capabilities.
I have created a custom LWC, which is a lightning-record-form to be able to view and edit specific user information/fields. The…

jackb
- 35
- 1
- 4
1
vote
0 answers
Salesforce, LWC lightning-input type="time" weird behavior in Mobile View
I am using, LWC lighting input type time tag, like below
But Selection of Time in Mobile view showing…

VJay
- 13
- 6