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.
8,830
questions
0
votes
0
answers
25
views
How to use script tag in lwc?
I have a script tag -
<script data-main="payment-js" src= "https://test-gateway.tillpayments.com"></script>
I need to use this is my LWC Website. I have tried putting ...
0
votes
0
answers
47
views
Auto populate the Lookup field and show all the fields of an object
I have created a custom creation page with LWC for rule condition in the related list of notification rule.(rule condition is the detail object, notification rule is the master)
So my requirement is ...
0
votes
1
answer
14
views
Is there a way to navigate to a custom list view that I created using list views in salesforce on click of a button using lwc?
I have created a list view in a custom object. I want to navigate to this list view with the click of a custom button or action on another related object.
eg: I have custom objects A and B related via ...
0
votes
1
answer
28
views
How can I refresh components on a record page via a lightning web component?
Disclaimer: I'm not a developer and I'm very new to working with salesforce and lwc.
https://imgur.com/a/aeAqBmb
I have a lightning:path component tied to an opportunity's stage. Clicking a stage in ...
0
votes
1
answer
32
views
LWC - New Correspondence Modal is not working
I have following code for my LWC component. It does not open modal window when I click "New Correspondence" button. I reviewed code so many time and couldn't find what is the issue here.
Any ...
-1
votes
1
answer
39
views
How to add N hours to a time field in LWC
I have a time field on one of the custom objects (it's just a time field, not a date-time one).
I am sending it to LWC it comes in milliseconds like 32400000 which is actually 9 am.
Now on click of a ...
0
votes
0
answers
32
views
How to Embed a LWC component within another LWC
I have a couple questions related to an implementation:
Does Salesforce support embedding a LWC within another LWC on a SFDC page?
Would these two LWC conflict with each other or could they work ...
-1
votes
0
answers
27
views
How to access object keys with spaces & hyphens in lwc html
let obj = { Name: "Test", Non-Compliant : true, Not Applicable: false}
{obj.Non-Compliant} - does not work
{obj["Non-Compliant"]} - does not work
{obj.Not Applicable} ...
0
votes
0
answers
16
views
CurrentPageReference executing too early when open second component tab in Workspace Api
We have a component on a PersonAccount page in Service Cloud that shows a list of records. In each row there is a 'View' button to open additional information about the record. The additional ...
0
votes
1
answer
40
views
How to UpdateRecords from UIAPI using UpdateRecords from LWC Array
How to update from updateRecord UIAPI in lWC for List of Arrays
I have a lwc component which returns an Array of idString and i would need to pass it to parameter for listofRecords which would check ...
0
votes
0
answers
31
views
Child component not refreshing upon an action in Parent component
Context
I have a parent component that displays some contacts. I have a child component that display a child records of contact. Parent component has actions to perform on the data in the parent ...
0
votes
0
answers
34
views
LWR Cache problem
I am trying to migrate an Aura site to LWR and I am facing some issues, using the same LWC component, in different pages of the same site.
Let me break it down:
LWR Site (lwc layout)
has two pages (...
0
votes
1
answer
16
views
Refer static resource in css of lightning component in Managed Packages
I have a CSS with a class like this:
.c-rating__item {
-webkit-box-flex: 0;
-webkit-flex: 0 0 24px;
-ms-flex: 0 0 24px;
flex: 0 0 24px;
height: 24px;
background: ...
0
votes
0
answers
15
views
Reactivate Record Variable Passed to LWC from Screen Flow
So, I have managed to get the reactivity to work as expected when its just a string variable.
HTML File
<lightning-button label="Click" title="SaveButton" onclick={onClick}...
0
votes
1
answer
37
views
Pass data from one LWC to another
Context:
I'm fairly new to Salesforce development so I decided to make a pet project in which the client can create users by clicking 'Create Account' button near the empty users data table. Inside a ...