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

In a Lightning Web Component (LWC), is there a way for expressions to reference the data in the record of a lightning-record-view-form

lightning-record-view-form is given a object type and a recordId had retrieves data for that type for the record with the Id. Then tags like lightning-output-field can reference field values. What I'...
  • 91
1 vote
0 answers
9 views

Salesforce LWC In ScreenFlow looks different in debug mode than in production

We are experiencing a weird issue with a LWC that is imbedded into a Screenflow Login flow. When we debug the flow in flowbuilder, the css is perfectly structured and the LWC signup form component ...
0 votes
1 answer
12 views

How to remove asterisk from the LWC form

I want to remove addition asterisk I think it because I disabled country. Any inputs please <lightning-input-address street-label="Street" city-label=&...
  • 89
0 votes
0 answers
19 views

Nothing happens with navigateFinishEvent in LWC

Html : <template> <lightning-button label="Finish" onclick={handleFinish} variant="brand"></lightning-button> </template> Js: import { LightningElement,...
  • 45
0 votes
1 answer
23 views

Cannot get data in HTML

With this code, I get my data, it is visible in the console, however I think I made an error in HTML because I can't display anything, a little help please Please on how to fix this, I want to display ...
-2 votes
1 answer
14 views

Can I use a regex inside a custom label?

Can we use a regular expression inside a custom label in javascript file of an LWC bundle?
0 votes
1 answer
25 views

Getting user locale information in LWC

In Aura, we can get the user locale info by using $A.get("$Locale.langLocale"). What is the equivalent in LWC ? Searched in developer doc and in google, not able to find it. How to get the ...
0 votes
0 answers
12 views

how to refresh a datatable within a tabset?

I have a map in my js and a tabset in the component. the keys of the map are the tabs and the value is a object list which I put in the dataTable. Now I want to sort a list in one of the tabs. cmp ...
  • 11
0 votes
0 answers
12 views

displaying js object array values in lwc

Having trouble displaying true values in lwc html This is the js: import { LightningElement, api, track, wire } from "lwc"; import retrieveQuoteData from "@salesforce/apex/...
  • 61
-1 votes
0 answers
14 views

Hide Tabs based on Custom metadata value

I need to create the custom setup page for the application so that the admin team can control which tab is visible for the application. I want to show and hide the tab based on a custom metadata value,...
0 votes
0 answers
15 views

lightning-record-edit-form not showing dependency properly if default value is selected. Is this a bug?

Scenario is : Object : ARecord__c Field 1: Controlling_Field__c, with values as CF1, CF2, CF3 Field 2: Dependent_Field__c with values as DF1, DF2, DF3, DF4, DF5 Record Type : Record 1 Now on ...
0 votes
0 answers
19 views

How to open/access a website inside a LWC component?

Is it possible to view any website wrapped inside a Lightning Web Component? I am trying to achieve youtube.com to run in a LWC component so that i can access youtube in my custom salesforce app and ...
0 votes
1 answer
23 views

Stickiness does not work with Lightning Data Table in LWC with CSS

I am trying to add stickiness to the first column of the the datatable(freezing the first column whilst i scroll throws the columns by scrolling horizontally) using the CSS: .THIS table tr td:first-...
  • 45
-1 votes
1 answer
26 views

How to type cast dynamically the value of the field?

I am working on an Lightning Web Component in which User can create record for any sobject. User first select the sobject, then its field and a custom form will appear through which user can enter the ...
0 votes
1 answer
31 views

Lightning Out 403

I have a Visualforce page that is used in a post-chat survey URL. The page uses Lightning out to embed an aura component that calls an LWC: <apex:includeLightning /> <script> $...
0 votes
1 answer
25 views

Lightning Card Slot Footer

I am trying to add a checkbox next to the save button. The save and the cancel buttons are inside a lightning card P slot ="footer" The checkbox does not appear in the same row as that of ...
  • 5
0 votes
0 answers
20 views

Refresh record page when Quick Action flow finish

I have flow used with quick action on detail page to create child records & a LWC component displaying child records in table format on detail page , when flow finish LWC component is not refresh ...
  • 11
0 votes
0 answers
36 views

Call External Service from LWC using Apex

I am trying to invoke External Service using Apex from LWC, but I am receiving an error: System.InvalidParameterValueException: Invalid output parameter type Background: Using BankService External ...
0 votes
0 answers
17 views

lightning tree grid - Make one particular column editable on the child rows

I have an requirement where in I have to make a particular column editable on the child rows of the lightning tree grid. I came to later on(after the development) that inline edit is not possible on ...
-2 votes
0 answers
21 views

How to display lookup fields from listDualBox to DataTable? LWC

In the datatable i display fields with different Data type : Lookup , Text , Picklist On lick button Modfy column , i display all Datatable column as source-label but when i select field lookup like ...
  • 13
-1 votes
0 answers
20 views

Display lightning web component without scrolling

Is there a way to force a modal to display without using the scrollbar? I'd rather decrease the size of the display when the use rotates the tablet than have the scrollbar pop up.
0 votes
1 answer
17 views

Lightning Page Header Icons missing background color

Below is the code for the Header on my LWC page. I am trying to reference the Standard channel_program_members icon. After a lot of tinkering I got it to display however the background color is ...
0 votes
1 answer
21 views

LWC get parent data in lightning-datatable

I am trying to flatten the @wire decorator so i can get __r fields into my datatable, and I am failing miserably let me show you what i have tried, none of which has worked try 1: mapping columns = [ ...
  • 425
-1 votes
0 answers
18 views

Versioning of Email Templates

We have an app that sends emails/sms from Salesforce and thereby lots of lightning emails are being created and modified in Salesforce. Sometimes we also need to track the content of emails being sent ...
-1 votes
0 answers
15 views

Different behaviour in mobile app and browser when using input type="file"

I am trying to launch camera directly in mobile app and allow user to take picture. It is working in browser on mobile, but it behave differently in mobile app. Here is piece of code in LWC <...
  • 19
0 votes
0 answers
22 views

Final check progress-indicator lwc

I'm trying use the lightning-progress-indicator of lwc. I want show the final check if step is finished <lightning-progress-indicator class="path-checks" current-step={...
  • 158
-1 votes
0 answers
19 views

Is there any work around for iframe on salesforce?

we are trying to display external website user profiles from its search (example: Facebook, Twitter, LinkedIn) inside the VF page or Lightening Web Components through iframe tags. But it's not ...
-2 votes
3 answers
50 views

return type problem

I want with this code to check two conditions: if I have information but the family is empty display the error message of the label. If null information display again the same error message if not, ...
0 votes
0 answers
28 views

Problem while I tried to deploy lwc component to org

Javascript import { LightningElement } from 'lwc'; import { showToastEvent } from 'lightning/plateformShowToastEvent'; export default class MyApp extends LightningElement { handleAlertClick() { ...
1 vote
0 answers
34 views

LwcWebpackPlugin with AliasModuleRecord for lwc.dev isn't loading HTML file for component

I use LwcWebpackPlugin to load Lightning Web Components. Everything works fine but because I want to load compoennts from 'lwc' direcotry the namescape won't work. I must get components from /lwc ...
0 votes
0 answers
28 views

Files from SF library are not displayed for Partner user in Community Site

I have created LWC where i want to display in img tag file from files library in Community Site (LWR). (JS) getFilesOfPodorysyApp() { getFilesOfPodorysyApp({contentDocumentIdOfFile: this....
  • 1
-1 votes
1 answer
26 views

window.alert("msgg"); not working in vs code shows unexpected alert

import { LightningElement } from 'lwc'; export default class BottonClick extends LightningElement { fun() { var msgg = "message for user"; window.alert(msgg); } ...
0 votes
0 answers
22 views

How to navigate from click of the bell notification to lightning tab

I have a requirement in LWC, onclick of button it should send a notification to a manager user. when manager user logins and clicks on the notification, so it should redirect him on custom tab called '...
0 votes
0 answers
20 views

When i click 'X' button in lightning-file-upload popup after file upload..why the operation not get terminated, still it successes? How to cancel it?

when I upload file in lightning-file-upload, a popup with 'Done' and 'X' button appears but when I click 'X' button still the file gets uploaded. Why this as it should cancel the file upload operation....
0 votes
0 answers
30 views

show toast message with custom field values [closed]

I have a requirement to show toast message on account record opening and that toast message should display account related contacts first name separated by commas, How we can create lwc component for ...
-1 votes
1 answer
34 views

How to display lookup field in datatable ? LWC

I want to display Owner.Name as column in Datatable so : Js : @track columns = { OwnerId : {label: 'NOM COMPLET DU PROPRIETAIRE',value : 'OwnerId',fieldName: 'OwnerId',type: 'lookup'...
  • 13
0 votes
0 answers
22 views

LWC: how to go back to default value from <c-publish-cmp>?

If I press the cancel button, I want to reset the value of the combo box made using the tag. I tried two methods, this.template.I tried both querySelectorAll() and value=null; but it didn't work at ...
-1 votes
0 answers
26 views

Cannot read properties of undefined (reading 'Name') in dual-listbox LWC

HTML : <lightning-dual-listbox name="fieldSelection" label="Select Fields (at least 5 and at most 10)" ...
  • 13
-1 votes
1 answer
35 views

How to hide column in Datatable LWC?

I build my columns based on this query : export const caseFieldSelector = "CaseNumber,IncidentSuivi__c,OwnerId,Subject,Status,Owner.name,AccountId,Account.Name,Interaction_client__c,...
-2 votes
1 answer
47 views

How to display (lookup fields) columns from Datatable in listDual Box?

I want to display in All selected Field all the columns of datatable and to be able only to delete columns HTML : <lightning-button label="Modify Columns" onclick={...
0 votes
0 answers
36 views

How to pass data from FlexCard to Omniscript?

I have an Omniscript with a FlexCard (custom LWC) inside. How could I get data from this FlexCard to the Omniscript? I didn't find any doc about it.
  • 79
0 votes
1 answer
62 views

LWC - Perform Data validation on Table upon entering value on Table column and populate other columns

In one of my requirements I am having a empty table with just one blank row having some 5 columns. I can enter new record/data on the rows. On one particular column, when the user enters the data on ...
0 votes
0 answers
27 views

Error ssl reason: write EPROTO and wrong version number

When i try to implement the lwc Ebike project i have this error and I can't understand :
1 vote
0 answers
27 views

Invoke ScreenFlow on click of button in LWC component

I have three flows , a main flow and two sub-flows .I need to invoke the Main flow from button in LWC component I was thinking around if we can embed main flow in LWC Component invoked from a button ...
  • 11
3 votes
0 answers
50 views

Do complex data-type parameters for @AuraEnable methods now all need to be global in Winter'23?

We're doing some testing of our managed packaged in a Winter '23 org and noticed that some of the existing functionality is now broken. Looking at the debug logs I can see this type of error appearing ...
  • 31
0 votes
1 answer
37 views

FullCalendar LWC doesn't work on the Lightning Experience site page

I've implemented FullCalendar v.5 (from FullCalendar.io) into my LWC. On the home-, record- or other pages inside the Salesforce platform it works well, but my LWC doesn't work on the Lightning ...
0 votes
1 answer
66 views

Deploy source to org fail!

I am working Lighting Web Component and when I try to deploy my code from the js file the deployment fails with following message: === Deploy Errors PROJECT PATH ERRORS ...
0 votes
2 answers
59 views

Apex Method doesn't return any value

With this code I want to get the value of the myrecord (Volume__c). But with this code I don't get any value. @AuraEnabled public static List <Volume__c> getObj(String recordId){ Volume__c ...
0 votes
2 answers
48 views

LWC Lightning Data Table - Save All Records(Rows) in the Table upon Save Button Click

I have a requirement to be able to save all records present in the Editable Lightning data table and not just the ones that are edited. Is there a way yo achieve this. I see we can only fetch the drat ...
0 votes
2 answers
24 views

LWC dynamically render components and call method for each

I have a parent lwc component and child lwc component.I need for each item in dataList display child component and then call method for each child component. How can I do it via lwc? Its easier via ...
  • 3

1
2 3 4 5
143