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
LWC Jest Test showing show error in Azure Devops Pipelines
When i running Jest test for LWC in azure pipelines i got strange error
Cannot find module 'c/myComponent' from 'force-app/main/default/lwc/myComponent/__tests__/myComponent.test.js'
1 | import { createElement } from 'lwc';
> 2 | import…

Cezu
- 82
- 10
0
votes
1 answer
How to setup remote site origin programatically in salesforce during the app installation
I'm developing the salesforce app using salesforce LWC components, I have requirement where I should process the salesforce data from an external system, for this I'm sending the data to the external api, say 'https://myapi.com/contact', but when I…

R_M_R
- 31
- 6
0
votes
0 answers
Difference between Salesforce application connecting as Site through community vs Pushing into AppExchange
I am a beginner in salesforce and learning salesforce development by using lightning web components. As part of learning we are developing a small scale salesforce LWC application. When we were exploring about the deployment of application , we went…

Mr.DevEng
- 2,651
- 14
- 57
- 115
0
votes
0 answers
How to send oAuth code from Visualforce page to LWC Components Which are on 2 different Windows Using Post Messages?
I'm new to salesforcce developement tried integrating two salesforce org's using oAuth Webserver flow i'm getting the callback code to a vf page but when i'm sending the code using post messages to Lwc it's throwing following error
Can any one…

Banoth Srikanth
- 1
- 2
0
votes
0 answers
How to pass a data to omnistudio flexcard from LWC while using NavigationMixIn.Navigate
I have a requirement where I have to call a omnistudio flexcard from LWC and pass a row data on click of an id in a datatable. I'm trying to use navigationmixin.navigate to navigate to particular flexcard am able to navigate successfully but unable…

harsha kondeti
- 21
- 1
- 6
0
votes
0 answers
Reduce submission time in LWC and Apex
I am utilizing 4 Lightning Web Components (LWC) in a parent component with a public URL. Users navigate through multiple tabs to fill out a form, and upon reaching the last page, they submit the form. However, the submission process takes more than…
0
votes
0 answers
VisJS Timeline Drag and Drop Placeholder
I am currently creating a Timeline with VisJS. The Timeline is relatively equal to this example:
Timeline | Drag & Drop
Timeline Drag & Drop Example
…
mxwe
- 1
- 2
0
votes
0 answers
LWC DataTable with 10 Account Records with checkbox and Submit Button
I have LWC component with 10 Account Records with checkbox and submit button. My Question is Whenever I select multiple Account Records and modifies Account field values and click on submit button then it should send the latest data to apex and…

abhi ram
- 1
0
votes
0 answers
What is the problem with this code snippet?
I wrote this code as JS controller of a component to invoke a VF Page but here it is showing that This error
This page has an error. You might just need to refresh it.
Action failed: c:DataProcessor$controller$downloadDocument [sendDataProc is not…
0
votes
0 answers
How to use jsPDF html() method in LWC
I'm trying to figure out how to use jsPDF html() method in LWC.
To use a pure jsPDF is relatively easy, but I didn't find an explanation on how to do it with the jsPDF html() method.
I did a search. Trust me.
I uploaded jsPDF and html2canvas to the…

Alex
- 1
- 1
0
votes
1 answer
How to pass values from JS to HTML tags in lightning web component?
I am trying to pass color to the existing style of HTML tag from Javascript. However, it's not working as I am trying. Please help.
Actual HTML
BMI:…

Praveen Behera
- 444
- 2
- 8
- 17
0
votes
0 answers
Load and render website in custom LWC tab
I want to load a website in Lightning itself, instead of opening the link in a new browser tab.
I have created a quick action that calls a LWC(myNavigation) on click of it. The LWC is then embedded in lightning tab named 'External_Website'.
Here is…

user15754268
- 29
- 4
0
votes
0 answers
Custom templates not recognized by css file in LWC component
SearchPageLWC
resultTemplates
template1.html
searchPageLWC.css
searchPageLWC.html
searchPageLWC.js
searchPageLWC.js-meta-xml
For some reason I can not apply CSS to templates, for example template1.html.
I imported them in…

Nikola
- 1
- 2
0
votes
2 answers
Merge improper array of object in proper array of objects
I'm getting this type of data from backend
let a = [
{
QuestionNo: "1",
pageNumber: "1",
response: "xyz",
question: "What is your Name",
publicUrl: null,
fieldtype: "Text"
},
{
QuestionNo: "2",
pageNumber: "1",
…

Developer
- 3
- 2
0
votes
1 answer
Can I add/embed an action layout to a LWC or Aura Component?
I want to know if an action yalout can be called from a component in Salesforce (aura o lwc).
This is the action layout that I want to add with its predefined fields

Arturo Castro
- 11
- 1