Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

Dispatch event is not propagating to parent LWC

There are 3 data providers, OrderDataProvider (available at Page level), OrderDeliveryGroupsDataProvider (dependent on OrderDataProvider property -> DeliveryGroups), OrderLineItemsDataProvider (...
Paras Saini's user avatar
1 vote
1 answer
34 views

Populate Lookup Id field in the Navigation Mixing while creating a new record

I have a scenario where I am using Navigation Mixin to create a new record. So during the creation of the new record I want to prepopulate the Lookup record Id in it. But even though I configure the ...
Loki_72's user avatar
  • 11
0 votes
0 answers
43 views

I have to show custom validation message on lightning field of lightning record edit form

I have lightning record edit form with two picklist values. One is Rating and another is Industry. So when user select Rating as Hot then only i am displaying industry field on Ui. So when user ...
Vinayak Karande's user avatar
2 votes
0 answers
18 views

JAWS reading the error message twice in lightning input LWC

JAWS reads the error message on the lightning input twice, because of the presence of both aria-errormessage and aria-describedby attributes. Values for both attributes are the same. How to resolve ...
LoneWolf's user avatar
1 vote
1 answer
44 views

Unable to remove "Complete this Field" on Cancel button click from lwc input type

In LWC, there are multiple input fields but input types are combo box & text, and a few of them are required. Below is the html code <lightning-combobox class ='validateClass' data-...
Arunangshu Pal's user avatar
-1 votes
0 answers
25 views

How to Implement the rate limiting in the forget password

Can you please guide me, How to Implement the rate limiting in the forget password number of password reset emails to 5 per hour per email address. Set up a verification mechanism to track the number ...
Chittu Kala's user avatar
0 votes
3 answers
53 views

Verify Email addresses in LWC

I have a LWC component in which one of the part i am sending emails , but here i want to check that the emails are exists in real world or not for now i am just doing the format validation in JS that ...
NewBaySales's user avatar
0 votes
1 answer
54 views

refreshing current tab in lwc

I am trying to get the current console tab (tab with case number 060833...) to get refreshed when I press the Remove menu item, but only the feed section is getting refreshed... import { ...
user149369's user avatar
2 votes
1 answer
25 views

Radio group lwc partial bold text in the options

I am using a multiselect picklist and displaying my options dynamically in an LWC using lighting-radio-group. E.g. <template> <lightning-radio-group name="radioGroup" label=&...
justkeepswimming's user avatar
0 votes
0 answers
20 views

If a standard button is overriden with a flow, is it possible to get the record Id

I have a scenario where I am trying to get the recordID from an object when I create a new record. However, my new record is overriden with a custom aura component. The custom aura components calls ...
Chinomso Johnson's user avatar
-1 votes
0 answers
14 views

Handling Login and Logout Buttons in LWC Component on Community portal

We are using the community portal in our Salesforce org. Our homepage features an LWC (Lightning Web Component) with both a Login button and a Logout button. Here’s the behavior we want to achieve: ...
Prashanth's user avatar
0 votes
0 answers
16 views

NFCService API Not Triggering 'then' Clause on Successful NFC Read

I'm encountering an issue with the NFCService API in a Lightning Web Component designed for mobile. When attempting to read an NFC tag, my mobile device vibrates and provides sound feedback, ...
Ashish Kumar's user avatar
1 vote
1 answer
44 views

Passing values in lightning-button-menu lwc

In the lwc I am trying to reset some field values (of Order) in Case record which previously had updated using the link to case button. User will first search for an order with order number, if found ...
user149369's user avatar
0 votes
2 answers
54 views

Toggle field is not getting updated properly

I have a scenario where I have toggle input and if the toggle input is changed, I have a Lightning Confirm popup and in that if the user selects okay button, the system should put whatever value the ...
Loki_72's user avatar
  • 11
1 vote
1 answer
80 views

LWC Wired method not working

I have a controller with a apex method which takes a user id. This controller is used in a LWC component. Here is where I am trying to call the apex method via a wire method. This is done in a ...
Liam's user avatar
  • 121
0 votes
0 answers
38 views

Translations for LWC label and description

I have created a LWC component, where I have defined a property called limit like below <property name="limit" type="Integer" required="true" label="Number of ...
nica's user avatar
  • 1,400
-1 votes
0 answers
15 views

Inside of an Experience Cloud help center, how can I auto filter search results based on the topic the search event occurred in?

I have a help center that organizes articles for many products offered by one company. To be exact, there is 12. Rather than building independent sites for each, I decided to build one for the main ...
Vincenzo Meschi's user avatar
2 votes
2 answers
71 views

Behavior of draft-values tag in a lightning-datatable changed in Summer'24

I have a Lightning Web Component that is feature-rich, so to say. 250 lines of HTML and 1350 lines of JS. Due to these sizes, I cannot list the complete source. One of the things that it uses is this ...
Sander de Jong's user avatar
0 votes
1 answer
32 views

How to prefill lookup value in lightning web component

I have a requirement to create a task on opportunity with prefilled values from custom fields on the opportunity. I have a lightning web component on the opportunity detail page which I want to use ...
Thomas's user avatar
  • 2,298
0 votes
0 answers
34 views

Beforeunload unexpected behavior in LWC

Im trying to publish a platform event from a LWC if the browser tab gets closed or the browser itself gets closed. It works fine for both of the cases, however if I repeteadly click on the refresh ...
RProgrammer's user avatar
0 votes
1 answer
30 views

Changing the layout of the standard button for the custom object

there is a change owner button standardized by salesforce. They want to add another checkbox on the layout of this button. How can I add this field to the layout of this button? Note that It shouldn't ...
Saber's user avatar
  • 11
1 vote
1 answer
109 views

How can I conditionally control a modal height?

I have a custom component that allows the parent component to use a modal dialog. The component has a slot that the caller can use to customize the content in the body. We've found a use case where we ...
Chuck's user avatar
  • 967
0 votes
0 answers
41 views

LWC pass all new rows from child to parent

I want to pass all of the newly created child record rows to the parent LWC. This would create a parent record with the Customer_PO__c value. Then related records from the child records LWC Parent ...
Phuc's user avatar
  • 347
-1 votes
0 answers
24 views

Display Phone Number from Contact in LWC

Hey, I am working on click-to-dial Component, for now, I simply want to show text the "phone number" of the account open in salesforce. the phone number is hard coded, I want to display the ...
omar's user avatar
  • 1
0 votes
0 answers
26 views

Lightning input validation blocking the button click

I have a lightning input configured like below <lightning-input type="text" label="Phone Number" name="Phone Number" ...
LoneWolf's user avatar
0 votes
1 answer
48 views

Our custom LWC that has config properties and is using Chart.js is silently failing in Summer '24

Working before Summer '24. Now the component does not render and we see no errors in the console. The component is used in a Digital Experience and is now not offered in the builder component list. In ...
Keith C's user avatar
  • 136k
0 votes
0 answers
22 views

$A.get('$SObjectType.CurrentUser.Name') is undefined

I am using a script in the head markup file in the experience cloud. $A.get('$SObjectType.CurrentUser.Email') works fine, but $A.get('$SObjectType.CurrentUser.Name') returns null. I tried debugging it,...
user131722's user avatar
0 votes
0 answers
28 views

EMAIL IS NOT GOING IF ATTACHING 500KB or Above

I am trying to upload file of size between 1MB and 2MB using LWC component and after upload saving the same file as an attachment and sending it in an single email as an attachment. I am able to ...
Learner's user avatar
  • 21
0 votes
0 answers
45 views

NavigationMixin.Navigate: Use of this is not working to navigate in 'Edit' page of a custom object

NavigationMixin.Navigate: Use of this is not working to navigate in 'Edit' page of a custom object Below is the code: import { LightningElement, api } from 'lwc'; import { NavigationMixin } from '...
RACHANA J's user avatar
0 votes
0 answers
45 views

Need Help with Importing Salesforce Schema for Custom Fields

I've created a custom picklist called Discount_Type__c within the Opportunity Product object. Despite using the appropriate schema import statements in my JavaScript code, I'm encountering ...
Sridhar's user avatar
  • 49
0 votes
1 answer
37 views

Close Modal using CloseActionScreenEvent

I have quick action that opens a flow in a modal. I have a lwc component that displays a toast message upon the last screen of the flow. I'm trying to auto close the modal upon reaching the finish ...
user1718612's user avatar
0 votes
1 answer
35 views

navigate to Permission set summary directly from LWC

Is it possible to open Summary page direct from LWC? I tried this[NavigationMixin.GenerateUrl]({ type: 'standard__recordPage', attributes: { recordId: id, ...
pincet's user avatar
  • 883
2 votes
1 answer
50 views

A lightning-datatable with the rows and columns transposed?

A lightning-datatable has columns that can have varying data types so a column can represent a record field and a row an individual record. I have a need for the opposite: a column per record and a ...
Keith C's user avatar
  • 136k
2 votes
1 answer
39 views

Add Hover Functionality Popup to Extended LightningDatatable

I'm a bit stumped here and hoping someone can help with this. There's a lot to unwind but I wanted to include everything in this post. I've got the following LWC setup to display contact roles ...
mcg123's user avatar
  • 61
0 votes
2 answers
52 views

how can we change the css of the specific element of array In LWC

I have an array JS file dayNames = ["SUN", "MON", "TUE", "WED" , "THU", "FRI", "SAT"]; HTML file <template for:each={dayNames} ...
Rahul's user avatar
  • 1
0 votes
0 answers
20 views

I have a approval process that needs a checkbox field to be checked as criteria, now I trying to initiate it to use it on a LWC

`public with sharing class ApprovalProcessController {   @AuraEnabled(cacheable=true)   public static Id getTheCurrentUserContactId() {       return [SELECT Id,ContactId FROM user WHERE Id = : ...
Akuma's user avatar
  • 1
0 votes
0 answers
33 views

LWC FlexcardMixin interpolateWithRegex

I am attempting to connected a Custom Event to a Flexcard embedded in an LWC with FlexcardMixin, but I cannot find any documentation/examples of the methods used with OmniScriptbaseMixin It seems this ...
jordan.baucke's user avatar
1 vote
1 answer
50 views

how to generate xlsx file from LWC

I am trying to generate an excel file in xlsx format and here is my code var element = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,' + encodeURIComponent(doc); let ...
PARAG TALUKA's user avatar
-3 votes
0 answers
19 views

[Cannot read properties of undefined (reading 'value')]] [closed]

[LWC component's @wire target property or method threw an error during value provisioning. Original error: [Cannot read properties of undefined (reading 'value')]]
Ranjith Kumar M's user avatar
0 votes
0 answers
30 views

How can we capture the event when the pencil icon is clicked in an editable data table in LWC?

I have requirement in which a lightning Editable Data table(used inline editing) is implemented using below sample code from Salesforce documentation- import { LightningElement } from 'lwc'; import ...
Kapil Saini's user avatar
0 votes
0 answers
28 views

LWC email pop up button

I'm writing LWC code, and I want to add a button to display an email pop-up like the red line in the image. Is there a library with such email sending functionality?
simba's user avatar
  • 1
0 votes
0 answers
59 views

Refresh graphql is not working in LWC

I have below wire method in LWC which is executing a graph query. @wire(graphql, { query: mygraphquery }) graphqlQueryResult(result) { this.graphedData = result const { ...
gs650x's user avatar
  • 2,670
1 vote
2 answers
53 views

@wire getRecords issue

I'm just trying to see some Event's data in the Console window but unable to figure out where am going wrong. I'm sure its a silly mistake, please help! import { LightningElement, wire } from 'lwc'; ...
apz's user avatar
  • 427
-1 votes
0 answers
26 views

What is wrong with this navigation request

building a LWR Community and have a link that doesnt work properly. On clicking a link, lwc logic tries to refresh the current knowledge article view with a new knowledge article. The onclick logic ...
CloudHugger's user avatar
  • 1,757
1 vote
0 answers
37 views

Why namespace prefix is not required while subscribing to platform event from LWC in a namespaced sсratch org?

I’m working on a managed package. While testing a beta version in a sandbox, I’ve noticed that my LWC failed to subscribe to a platform event. The reason was that I didn’t specify the namespace prefix ...
Duck The Developer's user avatar
0 votes
1 answer
31 views

Jest test for lwc modal

I'm trying to write a Jest test to cover a scenario: when the "Reset Location" link is clicked, a modal appears. However, I'm unable to access the cancel button within the modal to simulate ...
Shira's user avatar
  • 49
0 votes
0 answers
20 views

Executing Static Resources within LWC

I hope you're doing well. I'm attempting to use a third party library within my lwc. I've done my best to be abide by CSP policies. I was wondering based on the screenshots below, is there an obvious ...
winston's user avatar
0 votes
1 answer
24 views

value not obtaining in lwc component

I am unable to display the value of orderNumber in the component. Can anyone please let me know what I am doing wrong here? import { LightningElement, wire, track } from 'lwc'; import { ...
user149369's user avatar
2 votes
1 answer
351 views

Why do developers often use multiple divs with single classes instead of a single div with multiple classes?

Why do developers often use multiple divs with single classes instead of a single div with multiple classes? For example this: <div class="slds-form-element slds-size--1-of-2"> <div ...
Jan Kopejtko's user avatar
1 vote
0 answers
40 views

Can someone please explain why the change in property not reflecting in child component?

I am going through getter-setters in LWC. If I am passing an object to child component on component load then it is working fine and showing on child component. But when the property is changed on ...
Vikrant 's user avatar

1
2 3 4 5
175