Skip to main content

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
12 views

How to fix tall headers in Data Table child component

I created a data-table child component that I reuse throughout my org. I followed Rahul Gawale's tutorial on how to have header wrapping (link here) It worked really well, and now my header's do not ...
blackpink1234's user avatar
1 vote
1 answer
16 views

Problem with namespace referencing in LWC in package deployment

We are trying to deploy our package, but a weird error is thrown: The thing is, in that LWC, we are in fact NOT adding the namespace when importing those fields: import PRODUCTO_FIELD from '@...
joacoiudica's user avatar
0 votes
0 answers
15 views

CSS not loading in LWR static site

I am starting a new brand new LWR static site project. Even though the CSS file is present in the folder, its throwing an error while loading in localhost. You can see from the below screenshot - ...
Aditya M's user avatar
  • 420
1 vote
1 answer
49 views

What is the meaning oft the exclamation mark in this graphql query?

Trying to learn how to use graphql in lwc and looking at the lwc recipes repo. What I cant find info on is the relevance of the apostrophe after ‘$searchKey:String’ in this recipe. Can anyone please ...
CloudHugger's user avatar
  • 1,791
0 votes
0 answers
28 views

How to fix SLDS updates in new release, issue for tab icon color

I have following code working perfectly with tab icon color brings up perfectly. Suddenly after today's release patch it got failed, Any idea to enable tab icon color ? HTML: <template> <...
Ragul's user avatar
  • 541
0 votes
0 answers
28 views

Rich text with image inside is not displaying in Lightning record page

I have rich text area on lightning record page with logo image. Image is stored in static resource as public. This component is displaying in all lower env but not in production. Verified in prod ...
Shivangi Singh's user avatar
0 votes
2 answers
28 views

How can I check if a variable is declared in "this" or not?

I am developing a function to assign a value to a property of this in Lightning Web Components (LWC) by passing its variable name. Additionally, I need to raise an error if the property is not ...
Xin's user avatar
  • 173
0 votes
0 answers
25 views

Phone number with flags are not visible on Community pages Salesforce LWC

I want to show phone number with flags like that: But the flags images are showing like that import { LightningElement } from 'lwc'; import flagTelpicker from '@salesforce/resourceUrl/flagTelpicker';...
Kavita's user avatar
  • 1
0 votes
0 answers
9 views

SLDS Email Docked Composer not displaying complete composer

We are creating a create send email component which is replica of standard email component due to customer requirement. So created a custom button at LWC component, On click of the button email ...
Ragavendra's user avatar
0 votes
0 answers
14 views

Test class to cover 75% code coverage , getting fatal error for the codes [duplicate]

Test coverage for the below Apex classes are not enough, getting errors while deployment. public class AccountDiscountsController { public Account accountRec { get; set; } public String accId { get; ...
Nav Vel's user avatar
-1 votes
0 answers
19 views

Experience Cloud Shows Single Sign On Error When hyper link is clicked

I have a LWC app that works in both Salesforce lightning and Experience Cloud. One key feature of component is to redirect users to a record page when a link is clicked. This works flawlessly in ...
Mike's user avatar
  • 29
-1 votes
0 answers
22 views

Detect Record Changes before Save in UI using LWC

I have a scenario where I need to show an alert message when any field is being updated (not yet saved to the database) using LWC. Say, when a user updates any field value in the UI, immediately a ...
Loki_72's user avatar
0 votes
0 answers
17 views

Keep richtext codeblock identation and style to chatter feed item

Hi I'm trying to use a richtext in a lwc, in order to accept code snippets (String) denoted by triple single quotes like this: The lwc takes the richtext value and create a chatter feed item through ...
RProgrammer's user avatar
5 votes
2 answers
409 views

400 Bad Request for lightning-file-upload on Summer 24 Orgs

We have a basic lightning web component that allows guest user to upload file through a public site on Salesforce for couple of our customers. Starting from this morning we noticed Summer 24 orgs that ...
tugce's user avatar
  • 2,727
0 votes
1 answer
57 views

Add rows to a datatable

I have been working on a lighting data table and have now been able to edit the data table values and when saving create new records. My question is, can you add a row to a data table? I read where ...
Phuc's user avatar
  • 369
1 vote
1 answer
32 views

Avoiding Batching of Concurrent Remoting Calls with LCC.callApex in Salesforce

I am developing a managed package in Salesforce where I have integrated Angular as a static resource. From the Angular application, I make remoting calls to Apex methods using LCC.callApex. However, ...
Arkan Mansuri's user avatar
0 votes
0 answers
24 views

Order of matching-info fields within lwc record picker

I want to define order of fields for which typed values will be mathced. Record picker has the attribute matching-info when we can define: matchingInfo: { primaryField: { fieldPath: 'Name' ...
Grzegorz Połuch's user avatar
0 votes
0 answers
35 views

LWC: maintain focus on radio group option after re-render

my LWC radio group component's input[type=radio] elements are losing focus when keyboard navigated to or clicked. <fieldset role="radiogroup" part="input-radio-group">...
Vignesh Pethuraj's user avatar
2 votes
1 answer
44 views

Import PDF.js into an LWC

I've uploaded a minified pdf.js file (CDN link) into a static resource, but when trying to use it, pdfjsLib is undefined no matter what I try. It was my unstanding that pdfjsLib would be defined and ...
upjosh's user avatar
  • 21
0 votes
0 answers
20 views

How to listen to an event triggered from my lwc in an aura application

I am trying to trigger an event from my lwc based on which I need to conditionally render some components inside my aura application. My application is independent of any other aura components and we ...
Arjun Karat's user avatar
0 votes
0 answers
21 views

Best way to design screen flow reactivity with LWC outputs on the same page

I have created a LWC that acts as a top-level filter for user's to choose different properties and filter data based on their selected inputs. Multiple screen flows and LWCs need to be able to react ...
andre_b's user avatar
0 votes
0 answers
33 views

Extended Datatable - Custom picklist dropdown is being hidden

I'm working on a inline editable LWC Datatable where I have a multi-select picklist column (Followed https://techdicer.com/multiselect-picklist-in-lwc-datatable-inline-edit/) . The dropdown values are ...
vandanasridatta's user avatar
0 votes
1 answer
43 views

Is there a way to make production creation required/mandatory when user is creating opportunity?

When user is creating a new opportunity can we make it mandatory to add a new product. I know about "Opportunity Settings" on setup that we can use to prompt "add products to ...
Ajit's user avatar
  • 11
0 votes
0 answers
18 views

save draft and non draft rows to new records

I am trying to do the following. Allow user to edit data table. When user clicks save it will create new records and not modify the original records. So if there are 5 rows and the user edits 2 of ...
Phuc's user avatar
  • 369
0 votes
0 answers
25 views

To use standard "Insert email template" in custom LWC email composer

I have created a custom LWC email composer. I want to use or mirror the standard lightning "Insert email template" functionality (screenshots attached for reference). Is there a way to use ...
Hari's user avatar
  • 1
1 vote
1 answer
29 views

LWC Addition Assignment Operator (+=) appending

I have a lWC that is summarizing a total. If I have a single row the Cost summary works but when a new row is added it fails because it adds a 0 to the front of the total and I am not sure why. Its ...
Phuc's user avatar
  • 369
0 votes
1 answer
36 views

LWC : [Cannot read properties of undefined (reading 'write')]

I have following LWC component which keeps throwing " [Cannot read properties of undefined (reading 'write')]" error. I have tried everything to check that record is being pulled and new ...
login2sf's user avatar
  • 171
2 votes
1 answer
51 views

Beautify code snippet string in LWC

Hi Im removing html tags from a richtext input in order to make it a raw string, the string will be a code snippet. However I could not achieve it through using the standalone.js of prettier library. ...
RProgrammer's user avatar
0 votes
0 answers
20 views

Lightning component warning/error in flexipage

As i need one component(button) to be displayed in the record page, but receiving the following error/warning in Lightning page: "this related list cannot be displayed because its not in the ...
Vidya's user avatar
  • 1
0 votes
1 answer
40 views

Access LWC via text template URL from flow

I have created a screen flow. It has a text template. I have created a button in the template that will call a LWC. Below is the code added in text template: <a class="slds-button slds-...
user15754268's user avatar
0 votes
0 answers
30 views

Display error message and character count in same line below in lwc

I have a requirement to display a character count underneath an input field, which is a required field. However, I'm encountering an issue: when the user does not input anything and the error message ...
Shira's user avatar
  • 49
0 votes
1 answer
21 views

How do I uniquely format one of a few Lightning-card compenents?

I have multiple lightning-card components on the same page. I can use the following css to format all of the cards but I only want to format one of the cards. Is there a way to format just one of the ...
Frank's user avatar
  • 435
-1 votes
0 answers
24 views

Remove cell selection after a button-icon is clicked on the lightning-datatable

I have a button icon column on a lightning-datatable that has an icon added to the row conditionally. When the user clicks on it, there are row updates happening and also the button-icon of that ...
Sumesh's user avatar
  • 11
0 votes
0 answers
22 views

Not Able to update version of LWC component

I have updated the Lightning Locker API Version to 61.0 after that I'm trying to update API version of my component but am not able to do import { LightningElement, api, track, wire } from "lwc&...
garvita asthana's user avatar
0 votes
0 answers
32 views

Cant add LWC Action on Product Object, but I can add it on Account or custom object

I am trying to add Action button LWC on Product but even after adding it on layout its not visible. This action if created on other Object such as Account or any custom object works fine. Has anyone ...
summer's user avatar
  • 118
0 votes
1 answer
31 views

lightning-datatable Fieldset Editable

I have an LWC lightning-datatable that I am populating using a field set. When I go to the datatable the fields are not editable. Is it possible to make the fields editable so that I can save all the ...
Phuc's user avatar
  • 369
0 votes
0 answers
47 views

recordId value is null

I have following case: I have simple screen flow, where I want to have rich text input from user, which will be used as a body text for email. So I created LWC and Apex Controller additionally. From ...
Qba2312's user avatar
  • 11
0 votes
0 answers
28 views

Renaming LWC - Post Renaming

When you rename the LWC Component and deploy it from VS Code, what will happen to the existing LWC Component with the older name? -- Will it be deleted automatically and replaced with the new name? -- ...
Loki_72's user avatar
-1 votes
0 answers
25 views

I need to add horizontal scrollbar on case object

I need to add horizontal scroll bar on case object only for details section to view record details
Shannu's user avatar
  • 1
2 votes
2 answers
91 views

Issues using jsPDF library in an LWC

recently in our org we have needed the ability to create PDF files. I am aware you can do this using visualforce pages with the render as PDF method, however we would like the pdf to be styled more ...
Jake Colledge's user avatar
0 votes
2 answers
38 views

Lightning-datatable column value overflowing into the next column

Some items of the Part Name column go beyond its configured column width. In the snippet provided, the first item is displayed as expected. However, the value of the second item is overflowing into ...
Sumesh's user avatar
  • 11
4 votes
0 answers
42 views

Widening the popover for a lightning-datatable editable custom data type to allow a lightning-dual-listbox

The Make a Custom Data Type Editable documentation provides an example of an editable table cell custom type and that example works well. I'd like to use a Dual Listbox for one column in a table but ...
Keith C's user avatar
  • 136k
0 votes
1 answer
93 views

How to place a custom footer below the screen in Screen Flow?

In my Screen Flow, I need buttons that are not available in the Flow Builder, so I developed a custom lwc component - a footer with the buttons that I need. I placed this custom footer under a data ...
MirniyPirojok's user avatar
-1 votes
0 answers
18 views

Customized Options in Picklist

I have two picklist. first picklist with values Class A and Class B. Secound Picklist values with values 1, 2, 3,4, 5,6,7, 8, 9,10, 11,12. On selecting Class A in picklist 1, the values in picklist 2 ...
Nandhini Anand Babu's user avatar
0 votes
0 answers
25 views

How can I create a public link for a content folder via Apex that opens the folder in Salesforce Lightning Experience?

I was trying to generate public link for content folder inside one of my library via apex. I am using following code snippet from anonymous window:- String folderUrl = URL.getOrgDomainURL()....
vikalp saxena's user avatar
0 votes
1 answer
94 views

Stop lwc timer when console tab changes

i have a lwc on record page which calculates how much time the tab is active and work is going on . when i am switching the tabs which are standard console tabs on Case object , i want timer should ...
sfdc_to_learn's user avatar
0 votes
1 answer
43 views

Clone Button Not Visible In Salesforce Lightning

How to add or enable clone button for dashboards? The edit button is displaying. Clone button appears on Salesforce Classic.
rameesha's user avatar
-2 votes
0 answers
29 views

How to show all fields present in the field set dynamically on LWC component, with ability to save and show any validation errors if thrown

Show all fields present in the field set dynamically on LWC component, with ability to save and show any validation errors if thrown.
shareef's user avatar
0 votes
1 answer
44 views

Error dialog box when click on button to run API call through APEX class using LWC - Error [NoErrorObjectAvailable]

Hi I am new to salesforce development so please bear with me. I created an LWC to create table inside "accounts" object that shows some data. This data is loaded through an external API call ...
Syed Haris Ali Ghaznavi's user avatar
0 votes
0 answers
32 views

Use a LWC Button on the Hightlight Panel without using Dynamic Actions because other forms needs to have the old standard

I've created an apex class to identify in which Status a Case is and if It's on "B" It changes the Status to "A" and the users need to choose when this is going to happen, It means ...
André Rödel's user avatar

1
2 3 4 5
176