Questions tagged [lightning-components]
The lightning-components tag has no usage guidance.
102
questions
0
votes
1
answer
871
views
Making a Record Related List Button for Classic and Lightning
I have a related list button in Classic that isn't working in Lightning and we are still transitioning. We created a Lightning Action that calls a Lightning Component and leads to the same controller ...
0
votes
0
answers
41
views
How to call Intercom Javascript Function within a Lightning Component
Intercom, an in-product messenger has several JavaScript functions including one to show their messenger: https://developers.intercom.com/installing-intercom/web/methods/
We are trying to call this ...
0
votes
2
answers
77
views
Does Loading Static Resource Dynamically through URL pass the Salesforce AppExchange Security Review
We have created a Second Generation Managed Package and in it we need to load the static resource which is uploaded by the Subscriber (the one who installs the package).
We have loaded the static ...
0
votes
1
answer
807
views
Trying to get Flow redirect working with a Lightning Component that is running a Flow. Any help would be much appreciated
I think that I am missing something small or then my whole logic is wrong with this.
Here is the Lightning Component, that has been copied from a Salesforce Developer sites.
https://developer....
1
vote
1
answer
55
views
Flow wrapped in a lightning component used as a Global Action Button not closing flow screen after entering data
I've searched and tested out many solutions listed on the site but still not able to have my Screen flow closed when calling from Global Action. The screen flow will create the Case record then a new ...
1
vote
3
answers
5k
views
How can I load jQuery in LWC?
For the convenience of the user, I'm implementing the requirement of katakana is automatically entered when entering hiragana or kanji in Japanese using this JavaScript library.
You can check the ...
0
votes
1
answer
2k
views
How to set maxlength for lightning-input-rich-text
How can we limit the number of characters entered in rich text field lightning field
<lightning-input-rich-text
value={myVal}>
</lightning-input-rich-text>
Is there any ...
2
votes
1
answer
2k
views
Flow Screen Lightning Components with Flow Navigation Actions throwing exception
I've created a flow screen component that allows the user to pass in an apex defined type with button labels and actions to perform the standard flow navigation actions. When adding the same component ...
1
vote
2
answers
69
views
Cannot pass text from LWC to Apex Class
I'm attempting to pass text from a lightning-textarea to my apex handler. I'm still getting null values for the message, but am not sure why. Any help would be greatly appreciated.
HTML:
<...
1
vote
1
answer
2k
views
Open LWC Component upon clicking Bar Chart data-point
My requirement is to open different LWC Component upon clicking different Bar Chart data-point.
I am using ChartJS library to achieve this.
Here is the code I have tried to implement ---
I am using ...
0
votes
0
answers
111
views
How to get selected rows in lightning:datatable using onClick from lightning:button
Use case: Users are presented with a datatable that they can select records from and click a button to convert those records into pdf
I can't get past the selecting and displaying the records in ...
1
vote
1
answer
132
views
"lightning locker" in B2b commerce template does not turn on
"lightning locker" in B2b commerce template does not turn on, how can I switch to on?
after activating it recharges and goes back to off
0
votes
0
answers
51
views
force:navigateToURL has started throwing some exception
Earlier I was using force:navigateToURL to open blob file in new tab but suddenly it has started throwing the exception about startsWith is not a function.
"Error in $A.getCallback() [c....
0
votes
0
answers
67
views
Looking for an alternative solution for set Interval (Salesforce Lightning Aura component)
We have build an component on the Case Lightning Page to highlight dynamically the Case tab after an conditional update on the case record. We also want to use an Case Timer(appExchangeStore) to track ...
0
votes
1
answer
1k
views
Lightning Component in VF Page not working with Force.com Sites
First time using Components - putting it in a VisualForce page to leverage on a Force.com Site. The Component works just find on the VF page accessing when logged in (https://mydomain/apex/Testpage). ...
0
votes
0
answers
53
views
What is Case._LightningUpdateCase quick action?
Good day,
I've noticed in my org, that there is a Related Record component on the Case lightning page that show that case data, but the strange thing there is that in 'Update Action' of that Related ...
0
votes
1
answer
104
views
Update on Case Record Detail Page should automatically render my LWC render or re-render
I am trying to build a custom component which I will place on the right side of the case detail page. Whenever, I update a particular field on the Case, based on that change, the custom component ...
0
votes
0
answers
12
views
experience/community builder list action on mobile
For internal usage whe have a list view action on our case list views.
In our experience Site we have a page "Case list View". On this page is a list view of all cases. There are no List ...
2
votes
1
answer
220
views
Better LWC performance: sibling components with separate wires, or a single service component with a wire that sends data via Message Channel
If you have 10 separate components on the same lightning page that are all using the getRecord wire and retrieving approximately the same subset of fields, is there a performance penalty in comparison ...
0
votes
1
answer
225
views
How to dynamically select and disable an element in a row in the table when the other element is selected
I am new to Aura and hence was not able to find out the exact way to disable the column.
We are building a table where I need to disable other cells in the row when one of the cell is selected.
The ...
0
votes
1
answer
468
views
Limit datatable rows with just javascript, no Apex Controller
I have a LWC Datatable that can return up to 200+ records so I want to initially limit the number of rows displayed down to 25. There is no apex controller involved so have not been able to ...
0
votes
0
answers
708
views
Filter component visibility by running user
Can anyone see, why this wouldn't work?
I have also tried:
userinfo.getuserid()
user.id
account.OwnerId
-1
votes
1
answer
87
views
Lightning Table Not Display Data
I've been wracking my head the whole day at this, I'm very new to Salesforce and trying to create a Lightning Component that displays Contacts and what Commission they've earned.
I'm just not getting ...
0
votes
1
answer
4k
views
Enable Inline Editing for Lightning Table
I have a LWC Table that is in a custom object and will need to display in the Record Page similar to a Table in Excel.
The goal is to be able to enter Quantity and the other columns will not take user ...
1
vote
1
answer
1k
views
How do I pass a variable to a flow component on a Lighting page (that is NOT the recordId)?
I have a Flow for which I have 2 input parameters - the recordId and another Id for a lookup linked to the recordId. Adding the recordId is easy, but I have no idea how to pass the other variable.
...
0
votes
1
answer
533
views
Why is Refresh Apex not working while Inline Edit in LWC datatable?
Why is refresh Apex not working during Inline Edit? When I edit the record, even though the new value gets updated, but in the datatable the old value gets displayed. How can I fix this?
.html
<...
1
vote
1
answer
594
views
Unable to update picklist value using LWC
When I click a button in LWC to update a picklist value, I get this error https://i.stack.imgur.com/JDk93.jpg. How can I fix this?
HTML
<template>
<lightning-card>
<template ...
1
vote
2
answers
408
views
Lightning Datatable record opens blank URL
I have created a LWC component in which some details from Opportunity object are to be displayed. When user clicks on a Name in the Name column, I want to relevant record page to be opened. Instead, a ...
-2
votes
2
answers
385
views
component.find() Not working when there is 1 element, but if they are multiple elements with same ID it works
I have a list of items that I am iterating. Each iteration generates a checkbox:
<aura:iteration items="{!v.roles_empty}" var="role" indexVar="idx">
<...
0
votes
1
answer
65
views
Lightning Components Badge
I need help to solve this problem:
I'm trying to complete the Lighting App Builder Trail... So, I'm doing the last challenge
where ask me:
So, when I'm going install package tab and paste it the ...
3
votes
1
answer
465
views
Is @AuraEnabled(scope=global) real yet?
I'm trying to test out the new scope attribute for the @AuraEnabled annotation that is supposed to be part of Summer '22, but the compiler doesn't seem to recognize it.
@AuraEnabled(cacheable=true ...
0
votes
1
answer
850
views
Why Are "Opportunities" showing up twice under related lists?
On my Account and Contact page layouts I am seeing two "Opportunities" under related lists...
Opportunity object only has a lookup to AccountId and my Account object has no lookup to ...
2
votes
1
answer
629
views
LightningAlert.open from New and Changed Aura Components
hope everyone is doing fine.
I`m new to Salesforce and still learning a lot from it. I need to chance some of the alert() function to the new LightningAlert, due to Chrome and Safari retiring support ...
1
vote
1
answer
101
views
Radial chart attributes
I created a visualforce page which displays a radial chart. How can I change the number of lines of the chart? My chart displays always two lines per value 1, 2, 3, 4, 5, but I want to display just ...
1
vote
1
answer
630
views
Apex/Lightning component - How to access owner field label using getDescribe
In a lightning component, we have to display some records in a datatable with selectable rows and where the table header will display each column field label.
To cater for multi-language, the header ...
1
vote
1
answer
2k
views
Accessing the record fields in Aura lightning component
I am trying to access the value of a field in the lightning aura component like below
<aura:component implements="force:hasRecordId" access="global" controller="...
0
votes
1
answer
437
views
How to override the Tab Style of Account Standard Object using Lightning Component
INFO BELOW IS FOR VISUALFORCE but I need to override the Tab with a Lightning Component. Any idea how to do this?
Create a Visualforce page with the below code(same as yours but without a tabStyle ...
2
votes
0
answers
579
views
Show Popover on Scroll-able Div
I have a custom component which display list of result and a popover like below -
When i make the div scroll-able, it looks like below, (Reason for scroll - List of result is too long) -
Popover ...
1
vote
1
answer
842
views
Should a newbie learn and code everything in LWC? [closed]
Should a newbie use Lightning Web Components for all new components, or are there any cases where we would use Aura or Lightning Components?
I'm new to Salesforce coding and I'm wondering about what ...
0
votes
0
answers
702
views
Community reCaptcha - Lightning component
I've saw some links but apparently all of them are outdated.
I'm trying to add the recaptcha on a community that only contains a custom lightning component.
I've tried to follow this tutorial and no ...
1
vote
0
answers
169
views
Lightning app page is not accessible from partner community user
I made a lightning app page and placed my lightning component on it. It works perfect as an admin user, but when I login as a partner community user, that app page is not accessible. We are using ...
1
vote
0
answers
645
views
Can we add previous and next arrow in the Lwc lightning-carousel tag for image slider? [closed]
I am trying to build component that has lighting carousel tag and which has image slider in it but I wanted to add arrow buttons of previous and next button for manual control over the slider.
1
vote
1
answer
434
views
Need to extract a specific record based on record id from an array of Sobject in lightning component
My ask is quite simple here, i have a lightning component where i have an attribute of type Array of Account (Account[]). This array already has a list of Account records. At a certain event (on click ...
1
vote
1
answer
161
views
List has no rows for assignment exception on AuraEnabled method
I have created an Apex Class with an AuraEnabled method, which I am calling from a Lightning component.
After the method is called I am receiving the below error.
There was an exception List has no ...
6
votes
1
answer
379
views
How are global classes and/or components treated in 2nd Generation Packaging (unlocked and managed)
In 1st generation packaging, a global class cannot be modified after a managed release (and installation). There have been numerous discussions like this one on handling / upgrading / deprecating ...
1
vote
0
answers
120
views
Can't scroll after lightning component quick action finished
I have implemented this Lightning component quick action and it works fine.
Lightning Web Component LWC Quick Action button Lead Ownership
The only issue I'm having is that when the button is clicked ...
1
vote
0
answers
2k
views
Custom "view all" button on Lightning component similar to related list view all
Created a lightning component to display list of records and would like to open the component in new window to show all the values.
But when opening the component in new tab, the data is not ...
0
votes
1
answer
50
views
If conditions while passing paramters to child component in aura
I am trying to pass a value from parent to child component in the following manner
<c:contactSelect accountId="{!IF(v.proposal.CurrencyIsoCode != 'US' && v.proposal.BillingCountry__c !=...
0
votes
0
answers
29
views
How can I transfer id from comp1 to comp2 when comp2 loads after a button click on comp1?
Comp1 and comp2 are 2 lightning component and are not in any relationship of parent-child. I used application in comp1 to fire and it is handled in comp2.
Event
<aura:event type="APPLICATION&...
0
votes
1
answer
2k
views
Lightning component auto refresh to view the case record
In Detail-record page, where you can see (activityTracking page and related list) and on header of the page there is new case button to create a new case record.
I have an activityTracking page(...