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
1 answer
20 views

Checkboxes in <lightning-record-form> not updating when clicked

I'm getting some strange behaviour when using a with checkbox fields in an LWC. If i click on the actual checkbox, the checkbox does not become checked. But it updates if I click on the label. How ...
Tom's user avatar
  • 152
0 votes
0 answers
23 views

Notification not getting fired from apex

I have added a component added on the community site that fetches details from an external system and fires a notification whenever the page loads. The response which I get as follows: "custom&...
code234's user avatar
  • 186
0 votes
0 answers
19 views

Why is there a thick blue border appearing over elements when its in focus?

Can someone please help to me understand why html elements are showing a thick blue color instead of a light blue color when active/infocus. This is what I'm talking about: Before, everything used to ...
Mike's user avatar
  • 23
0 votes
1 answer
27 views

LWC Injecting HTML

I'm simply trying to use the lwc:inner-html example provided in the link below and can't get around the compile error: LWC1534: lwc:inner-html attribute is not supported. https://lwc.dev/guide/...
bernard's user avatar
1 vote
0 answers
38 views

How to use custom labels in LWC that is used in standalone LWR SPA NodeJS module?

I am trying to create LWR SPA project that consisted by LWCs. I have created new LWR SPA with command : "npm init lwr@latest" The steps was set project name - lwr-project. Select Type - ...
user149845's user avatar
1 vote
0 answers
22 views

Aura Component - Lightning Page Template - Collapsible region not resizing correctly

I am trying to create a Lightning Page Template aura component that has two equal sized regions. Between the regions is a button which when clicked collapses the left region, and the right resizes ...
Tom Young's user avatar
1 vote
1 answer
19 views

Connected Callback and RenderedCallback not getting called 2nd time

I have this below service console tab. On the right side i have added a lwc on page refresh if i try to swtich between tabs i can see connectedcallback and renderedcallback is getting called. but 2nd ...
sfdc_to_learn's user avatar
1 vote
1 answer
34 views

Stopping the up and down arrow keys incrementing numeric fields in an LWC?

I have this input field and want to make the up and down arrow keys not do the default increment/decrement by one as I want to use those keys for some higher level navigation instead:` <lightning-...
Keith C's user avatar
  • 136k
-1 votes
1 answer
17 views

I want to convert my Aura component to lwc

html <aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" > <lightning:quickActionAPI aura:id="quickActionAPI" /&...
raju laddu's user avatar
3 votes
1 answer
52 views

How to Check if LWS (lightning web security) is enabled inside Apex or LWC

I would like to experiment with dynamic LWC components in my managed package. I also would like to keep the option for some clients to use my package in case some other package requires keeping the ...
-1 votes
0 answers
25 views

Getting Selected Records from Standard Community List View

Is it possible to get selected ids from a standard list view in community by clicking on a button? I would like to avoid using a custom list view. (Don't mind the button being custom) Any info would ...
Cap10's user avatar
  • 21
1 vote
1 answer
30 views

LWC remove option from lightning-input-field type combobox

I have a lightning-input-field that shows picklist options I need to remove one of the options at run time, I tried using querySelector to hide the option but it always returns null. <div class=&...
Kevyn Herbet's user avatar
0 votes
0 answers
22 views

Barcode scanner component doesn't seem to work on community pages, is this right?

I have the below LWC to read a barcode, but it only works in the application, I need it to work on a website (community), but it doesn't seem to work for me. Has anyone managed to make it work? import ...
Maicon Douglas Rodrigues Garci's user avatar
0 votes
0 answers
15 views

How to add LWC Global action in FSL

I wanted to add a global action in FSL app from where LWC will be called. I used this solution LWC Global action using Aura component wherein I called my LWC from aura, but it is not visible in FSL ...
Ashesh Kumar's user avatar
0 votes
1 answer
23 views

Apex call returns successfully after errror, resulting in issues

I have an Apex call which causes an error (ENTITY_IS_DELETED, but it doesn't matter which error it is). I might be able to fix that error, but now it somehow also returns successfully anyway, so the ...
Z0q's user avatar
  • 59
1 vote
0 answers
33 views

LWR Community LWC engine ERROR

I have 2 LWR communities on my sandbox. For some reason only one of them is impacted with following issue. Error: [LWC error]: LWC WARNING: current engine is v6.4.1, but template was compiled with v5....
Adam Janicko's user avatar
1 vote
1 answer
88 views

NavigationMixin - file preview - Failed to Load inside slds-file_card div

Is there any workaround to display a file preview under slds-file_card div, when I click the image HTML: <template> <div class="slds-p-around_none slds-var-m-top_x-small slds-var-m-...
Ragul's user avatar
  • 541
0 votes
1 answer
26 views

ESLint not recognizing files in non-standard folder structure

Installing ESLint and receiving the following error when issuing the command npm run lint: Oops! Something went wrong! :( ESLint: 8.57.0 No files matching the pattern "**/aura/**/*.js" ...
Evelyn Maguire's user avatar
0 votes
1 answer
53 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
43 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
57 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
4 votes
0 answers
37 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
0 answers
71 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
36 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
72 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
58 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
33 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
18 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
49 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
59 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
82 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
42 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
91 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
36 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
36 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
31 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
113 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
56 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
30 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
50 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
41 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
  • 917

1
2 3 4 5
175