Questions tagged [lightning-components]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
3answers
474 views

Difference in using Lightning Component <lightning:badge/> and Normal DOM with slds <span class=“slds-badge”></span>? Which is Better and Why?

Example: <lightning:badge label="Lightning Component"/> <span class="slds-badge">DOM Tag</span> Which is better? Which is faster? And why should I use Lightning component if I am ...
2
votes
1answer
118 views

Lightning Component - promise returned before Apex method is completed

I'm developing a component that calls an Apex method which performs a callout to our integration platform (generates an SAP customer from a salesforce account). The component is a button placed on ...
1
vote
1answer
1k views

How can I pass object data from parent to child component?

I'm trying to pass the data(object) from parent to child component but I got undefined on my child component's variable when I passed the data(object) from parent to child. /* Child Component*/ <...
1
vote
2answers
2k views

Case Save and Close button in Lightning Experience

We use Save & Close button while creating a case so basically we are creating and closing the case at the same button. But I can't seem to find this button in LEX. Whats the solution here please ...
1
vote
1answer
145 views

Are lightning component visibility filters deployable? Where can I find them in metadata?

I have some custom lightning components on the layout. These components have some visibility filters. I need to add and remove some filters. It is easy to do it in UI in page layout settings, but is ...
1
vote
1answer
69 views

Add a Lightning Component to Activity Layout

I want to modify the Send Email Global action and add some custom fields to the layout which is not possible in the standard Global Action. Hence I am trying to create a Lightning Component and add it ...
1
vote
1answer
77 views

Inline Visualforce page vs Canvas App vs Lightning app

What are the difference between Inline Visualforce page vs Canvas App vs Lightning app. I'm looking to build an app that needs to inject UI inside detail page for an object. Should work for both ...
1
vote
1answer
123 views

Close flow screen after the Flow finishes

Calling a flow from Quick Action wasnt refreshing the screen , so I calling the Update Screen action from the https://unofficialsf.com/the-update-screen-flow-action-component/. Quick Action updates ...
1
vote
1answer
483 views

Why can not get the data item on the li onclick event?

Work on LWC. Why I can not get the data item on the li onclick event? <template> <li role="presentation" key={item.key} class={itemClass} id="ms-list-item" data-id={...
1
vote
1answer
122 views

Related record component - does not show action's default values

I am using Lightning in my org I have a requirement to have a tab for resolving a case For this I have created a new case quick action - I called it Resolve Case. Also I have set the Status field ...
1
vote
2answers
1k views

call tooling API when using lightning component [duplicate]

When I make request tooling API from Apex by using lightning component, the error This session is not valid for use with the REST API is responsed. Also, the response status code is 401, and status is ...
1
vote
3answers
268 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 ...
1
vote
0answers
61 views

How to access Add Products standard button from custom lightning component

want to call this 'Add Products' functionality from a custom lightning component. Is there a way to do this?
1
vote
0answers
26 views

Creating a two-dimensional lightning table [closed]

I created a lightning table and wanted to have a two-dimensional table with inline-edit. My goal is to convert my current to table to something similar to this: Currently my table is. Anyone who has ...
1
vote
1answer
31 views

D3js svg does not render on first page load

I have a custom visualisation inside a lightning component which uses d3js. My svg is well rendered whenever I hard refresh the record page containing the custom component, but does not display when I ...
1
vote
0answers
194 views

Open New Tab & Focus from Lightning Component in Console

I currently have a LWC that is embedded within an Aura component. When a user clicks a button on the LWC it will convert a lead and return the new account id. The the Aura component is supposed to ...
1
vote
0answers
126 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
1answer
741 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 ...
1
vote
1answer
392 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
0answers
40 views

Customise Standard lightning Component from custom lightning component

I have a custom feed filter visualforce page created with the help of this link. And then I added the vf page in lightning component with iframe and in case page layout. After the page is loded main-...
1
vote
0answers
318 views

Platform event subscribers on Visualforce page not being called always when platform event is published

We have an implementation in which there are multiple Visualforce pages(seven pages). These pages are using platform events to communicate between each other. The JavaScript code to subscribe to ...
0
votes
1answer
45 views

How to combine two aura ifs into one?

I have been trying to to simplify a nested <aura:if isTrue> into a single line. I thought I could wrap this with an or(statement1,statement2) but I think I'm missing something. The expected ...
0
votes
1answer
11 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
1answer
1k views

Searchable pick-list in Lightning Component? [closed]

I am trying to implement the searchable pick-list in lightning component. I followed this post to implement with help of external jQuery select2. Does any one suggest me the best way of implementing ...
0
votes
1answer
796 views

Retrieve the field values of record in Lightning Component

I am using the Lightning Data service in my Lightning Component to update a case record, before I do update the record I need to check on the field value and update accordingly. Below is my component &...
0
votes
1answer
56 views

I want to populate respected account on account field when any opportunity select

I have created a component and i created a onchange event on opportunity field it called a controller method and this controller method called a apex method with opp id and return acc id so i can ...
0
votes
1answer
73 views

Disable “Save” button after condition on Lightning Component

Hi I'm new to Salesforce and am stuck on this part: How to disable the "save" button after it was already clicked? My Component: <div align="right"> <lightning:button ...
0
votes
1answer
28 views

How to remove mandatory error messages

I am using lightning input field which is mandatory.when ever the input field is empty required error message is displaying.Now what is happening is as soon as we start typing some text inside the ...
0
votes
1answer
5k views

How to use settimeout function in lightning component

I'm a bit new to lightning component and i'm trying to understand how can I use the settimeout function inside my component. I'm trying to do this, but always getting errors and the component is ...
0
votes
1answer
482 views

Loading/ View records of Account using Lightning data service (force:recordData component)? [closed]

I have been practicing the examples given in Lightning developes Guide and the topic is Display Record Data in a Custom User Interface Using force:recordData I copied and pasted the below code ...
0
votes
1answer
3k views

Get Custom Setting's field value in Lightning Component

I have a custom setting with API Name: Company_Setting__c. I need to access the value stored in this custom setting in lightning component. I got a field with API Name: Company_Phone__c. Below is my ...
0
votes
1answer
522 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
1answer
34 views

Can I put actions tab on custom new object page?

I've created a Lightning Component to use for the 'new' action of my custom object. However, I've been asked to put the actions tab, particularly the 'new task' action on the page. I created the ...
0
votes
1answer
856 views

Opening a Lightning Component in a tab in Lightning Community

I am trying to open a Lightning component with a record id in new page / full screen from a Quick Action. Since, the component opens in a small popup, I used the approach mentioned here How to open ...
0
votes
1answer
232 views

lightning datatable: get additional records by enableInfiniteLoading

How can I get additional records by lightning datatable enableInfiniteLoading? I wanna get more 10 records when scroll lightning datatable, but the datatable shows only first 10 records when scroll ...
0
votes
1answer
937 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(...
0
votes
1answer
21 views

LWC hyperlink to custom page with record id

I have a created a custom visualforce page for account record. I have an LWC that displays list of account. I want to direct the user to the custom VF page when the user clicks on the account. This is ...
0
votes
0answers
16 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
0answers
12 views

'Knows about' component doesn't render on User profile community page

I am trying to setup User detail page in Experience builder and include a ‘Knows about’ feature. It doesn’t seem to render (either as part of ‘user profile’ component or separate ‘knows about’ ...
0
votes
1answer
33 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
0answers
58 views

Override New button on parent object to create child record - LEX

I need some help overriding the New button to create a child record from the parent. Currently, when I override the New button in setup, then navigate to the parent record to create a child, nothing ...
0
votes
1answer
34 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....
0
votes
0answers
60 views

How to define the finish behaviour of a flow Launched by an lightning Component

I tried to launch a flow out of the global Actions by a lightning component. I got the instruction out of google and it works pretty fine. The only thing i am struggle with is the finish behaviour. ...
0
votes
1answer
67 views

Lightning Component Quick Action - Hide Modal Placeholder

I've created a new lightning component - which suppose only to update certain fields - and notify the rep when it's completed (using toast event). I added this as a quick action - and every time i'm ...
0
votes
1answer
18 views

How to assign existing option selected value in Lightning?

I want to assign current selected option which is '0' and I want to assign it to '2' when URL is change. How can I do that? Please help. Example.cmp <div class="slds-col slds-size_1-of-5 slds-...
0
votes
0answers
25 views

Fire user notifcation on record

My goal is to display a warning notification(or a pop up) to the end user whenever he saves a custom object which follows some custom logic. The warning is a result of an apex logic. UI: Lightning. I ...
0
votes
0answers
38 views

Unable to add related record component (standard) in app builder record page

I am trying to add the related record component (standard lightning component) inside account record page. While adding there is no error. Its got activated successfully but when I am coming back to ...
0
votes
1answer
26 views

The dataset is returning null value while using lightning component chart

Apex Controller public class TableBookingStatusController { @AuraEnabled public static List<DataSet> getAllTables(){ List<Table__c> result = [Select Name, ...
0
votes
0answers
100 views

Converting On-click Javascript to a Lightning Web Component

I've been trying to convert either our On-click Javascript or a visualforce page buttons to a Lightning Web Component since last month without success. Component <aura:component extends="c:...
0
votes
1answer
49 views

I want to validate the field value before submit the record edit form which is in aura:iteration

<aura:component controller="EditFormTestController" implements="flexipage:availableForAllPageTypes,force:appHostable,force:lightningQuickAction,force:hasRecordId"...