Questions tagged [lightning-components]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
3answers
437 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
58 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
197 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
1k 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
84 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
58 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
3answers
106 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
27 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
19 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
25 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
68 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
1answer
520 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
339 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
33 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
251 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
843 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. But It's not working as expected the search result and ...
0
votes
1answer
37 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={...
0
votes
1answer
32 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
28 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
24 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
274 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
1k 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
395 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
27 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
657 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
207 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
716 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
0answers
8 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
42 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
22 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
1answer
22 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
0answers
30 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
14 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
35 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
27 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"...
0
votes
0answers
35 views

Canceled or Disconnected error when calling a server-side method from Aura Component

I'm receiving 'Canceled or Disconnected' error message when trying to call a server-side method from Aura Component. I have a custom Aura Component with a few nested child components that loads in the ...
0
votes
0answers
18 views

How to pass values from Child Lightning Component to new List on Parent Component

I am querying a list of Cases in my Apex Class. I am then displaying that list in a Parent and Child Lightning Component. Each child iteration has a radio input as I want to record the radio input per ...
0
votes
0answers
40 views

How to set Lightning component's column width to auto?

I'm not able to set lightning component's column width. Here is my code. Component <aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:...
0
votes
0answers
38 views

Community Registration reCAPTCHA and Component Error

I have no familiarity with code or development, so bear with me. We are trying to add a reCAPTCHA v2 checkbox to our Register page in our Community. We are using a custom Lightning Component for the ...
0
votes
1answer
16 views

How do I get an updateTime on header of related list with lightning component?

I'd like to know about ' Updated 17 minutes ago' feature how it work on lightning component. I'm making custom related list view with lightning component and I want to show latest update time as below....
0
votes
1answer
120 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 ...
0
votes
1answer
17 views

Can I have dependent pick lists in design attributes

I'm working on a case where I want to show picklists in design attributes. Here, in my case, I want to show them dynamically. i.e. let us take that there 2 picklists in design attributes, first to ...
0
votes
0answers
35 views

Skip “Save change” dialog in Lightning Experience

I'm working on an application which redirects the user once a platform event fired from a trigger is catched in a lightning web component. The event is fired after the trigger adds an error using ....
0
votes
0answers
49 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 ...
0
votes
0answers
20 views

Sdfc.canvas.parent.publish() function is not able give any result beside the event being fired

I am using Lightning Data service to take an input from my component and take that particular record to be displayed in the canvas app which is an external application. So far there are no errors in ...
0
votes
0answers
29 views

Lightning Component to check Account Object value, and send to dynamic URL based on value

I am hoping someone can help me out with my custom Lightning Component - as the support team have been unable to actually help with code, but have sent several articles that seem to contradict each ...
0
votes
0answers
65 views

Fetch all the field values from aura component list

Please Suggest and help me out to solve the issue that i am facing. We are working on Lightning Component in which we are creating multiple rows for lightning component(DynamicCoverage.cmp). For ...
0
votes
1answer
89 views

how to set width for a custom lightning component in UI

I have created a custom lightning component, but on the UI it overflows and not able to set the width. Can anyone please let me know how to do this? I need to display this primary contact as other ...
0
votes
0answers
31 views

Issues with Spinner modal box size

I have created lightning component which calls to screen flow and added this component to my record page. Everything works just fine, but I have one issue: Inside the screen flow, when you click on '...