Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightning-components]

The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth.

1
vote
1answer
9 views

How to use Aura:Iteration index variable inside a placeholder?

I have a component which has a list of teams over which the aura:iteration is looping. I want to use the placeholder attribute of lightning:input as such: <aura:iteration items="{!v.dToPart.teams}"...
0
votes
1answer
14 views

Aura:if not working as expected?

I am trying to display the price of the item if the price is not equal to 0. Whats would be wrong with the usage below? The '0' here is a currency data type in the custom object. Please advise! <...
2
votes
0answers
25 views

How do you center align the text of the column headings for a lightning:datatable?

I'm able to apply color or make the column heading text bold, but I can't center align the text for some reason. <lightning:datatable data="{! v.data }" columns="{! v.columns }" ...
1
vote
1answer
28 views

CSS Error in auraErrorBox

I'm suddenly getting a weird error, apparently having nothing to do with any of my new code (I undid all my code changes and the error persists). <div class id="auraErrorMask"> <div ...
1
vote
0answers
22 views

Custom Popover position and styling issues

Using a custom popover is causing issues as it removes the scrollbar from the screen when it opens, causing the screen to shake slightly when it opens and closes. I've attempted to apply position:...
0
votes
1answer
31 views

Using ui:inputCheckbox with LDS not showing value

Using ui:inputCheckbox with LDS for a new contact is giving me error if I don't select checkbox. If I select the checkbox and then unselect it, it works, else it is giving an error ...
0
votes
0answers
20 views

Can I use single `force:recordData` for both Add & Update record?

I have a requirement where I need to insert and update a contact. Now, I am using force:recordData. <force:recordData aura:id="ldsContact" recordId="{!v.selectedUserId}" layoutType="...
0
votes
0answers
11 views

Invoke Object Quick Action from Enhanced Lightning Grid

I am using a Salesforce Labs package: Enhanced Lightning Grid, within the functionality is the ability to invoke standard lightning actions, for example: e.force:createRecord However, I would like ...
0
votes
0answers
20 views

Need to replace button with image

I am trying to replace this "choose file" input button with an image from a static resource and it should follow the similar functionality as it does now. Can someone help me on this approach thanks. ...
1
vote
1answer
16 views

Get Task description with line breaks in SOQL

I have a lightning component that displays a List of Tasks in a sidebar. I use a SOQL query in the controller to fetch a List that fits the criteria and display them in the component. I manually model ...
0
votes
0answers
22 views

Lightning Overlay Library showCustomModal not working in MS Edge

I'm using the overlay library in a custom component to display a modal. However, in MS Edge, the modal background appears just for a moment then disappears. This works fine in Chrome and Firefox. ...
-1
votes
0answers
29 views

Apex Controller sending wrong return value to the javascript controller in lightning [on hold]

I am trying to send wrong return value to javascript controller from Apex controller. onRowSelect : function(component, event, helper) { component.set("v.showDuplicates" , false); var ...
0
votes
1answer
11 views

How to add comments in Custom approval Process Reassign method

I custom a lightning component to reassign the approval process.I use the code under to reassign the approver successfully,but I can't add comments. Here is my code: @AuraEnabled public static String ...
0
votes
0answers
13 views

lightning:inputfiled with user look up not working Lightning-lookup-desktop.js:2 undefined error

I have used lightning:recordEditform and inside that, I have used user look up and when I search the user in that look up it shows the users list but it's not selecting the user. This issue happens ...
0
votes
1answer
43 views

How do I use Blob to create a PDF in my apex controller and use it in my Lightning Component without using VisualForce Pages?

This is the apex controller: public class pdfGenerate { public static final Integer limitRecords = 10; @AuraEnabled public static Blob generatePdf(){ List&...
0
votes
0answers
35 views

Error when saving Lightning Component

When saving my lightning component I am getting the error"FIELD_INTEGRITY_EXCEPTION" "Failed to save LaunchpadList.cmp: Invalid definition for null:LaunchpadListController: null: Source" I've tried ...
1
vote
1answer
18 views

Lightning component focus on lightning:inputField

I have a <lightning:inputField aura:id="inputField1"> in a modal window, and I want to focus on this field when the modal opens, so that the user doesn't have to use their mouse or tab to set ...
1
vote
0answers
20 views

Lightning component flow custom validation error message

I'm following the instructions here to create custom validation for a Lightning Component in my Flow: Available For Flow Screens Custom Validation Salesforce validates each flow screen when ...
0
votes
1answer
45 views

How do I search a key or a value in a Nested Json object/array? [on hold]

Assuming I have JSON data response as follows below and a Search Input on my lightning component. I want to search for a key or value and get a JS array of results. For example : Searching for "...
0
votes
1answer
16 views

Lightning Component to search layout

I have a lightning component that redirect to an external url. I need to use that component as an action in my list views. How do i implement this. I know actions can be put on the list views using ...
0
votes
1answer
15 views

how to retrive /fire a link from a cutom object field

I am storing the public url of a pdf file in a field of a custom object. I am able to successfully retrieve the url. how can I fire the url when a user click a button? Is it possible through JS ...
0
votes
0answers
20 views

Lightning:input[type=number] value attribute is string instead of number

I encountered a fascinating bug (or feature) in the lightning:input[type=number] component and I was wondering if any of you have had this problem before? I'll describe what happens: My lightning ...
1
vote
1answer
31 views

Html5 data list not displaying in lightning component

As Lightining components supports majority of html5 tags I have used the below code in lightning component code but it doesn't get shown in UI properly, The picklist options from data list is not ...
0
votes
1answer
18 views

Lighting:tabset rendering tabs in “more” drop down when tabs are populated dynamically even though it has enough space to display all tabs

My expected result should be, all tabs display in one line with out "more" option by using dynamic code. When i tried dynamic code, Tabset displays only 3 names and rest of them in more option as ...
0
votes
1answer
72 views

Lightning component isnot showing PDF Attachment Properly

Trying to preview the attachment in lightning,but itsnot showing attachment properly. Passing scenario: For image file: It shows image fileS Problem facing: failing: In case of PDF,itsnot loading ...
0
votes
1answer
19 views

Hiding the title on a lightning card

I've been running into an issue where I've got a re-usable component that uses a lightning:card attribute. In the normal course of things, having a title is great; however, in the context of using in ...
1
vote
1answer
21 views

Reset validity on input

I have a registration form with Lightning inputs and validations, ex.: <lightning:input aura:id="email" type="email" label="Email" name="email" ...
1
vote
1answer
34 views

Lightning Data Service - Update Field on Button Click

I am new to lightning components and am trying to get a button in lightning to update a checkbox on a contact record(Send_to_IFS__c) when the button is clicked. Below is what i have but it is not ...
1
vote
2answers
103 views

How to resolve Webcallout error System.LimitException: Too many callouts: 101 when displaying data on Lightning component

I'm making a webservice callout to an external webservice and displaying data on a Lightning component. Data is returned in JSON format in multiple pages. Each page has 50 records. In my apex ...
-1
votes
1answer
21 views

Custom vs Standard Record Creation [on hold]

We are about to build the salesforce application. What are the pros of using standard lightning page instead of Custom lightning component and vice versa. Could somebody suggest me here
1
vote
2answers
45 views

Community user cannot download file

I am using an old portal for my customers, with customer community user licenses. In the portal, my users should upload files and then download the files that they have uploaded. The portal is ...
0
votes
1answer
24 views

Opportunity Page Auto Refresh Issue

I have implemented a custom lightning component with recordEditForm and updating opp stagename which accidentally refreshing the page but when i remove stagename input field from the form its working ...
0
votes
1answer
34 views

Load Lightning components without blocking the UI

I'm building a Lightning component that shows a long list of items. Each of them is represented by another custom lightning component. In order to provide the best possible user experience, I would ...
2
votes
1answer
39 views

force:hasRecordId cascade?

I am looking for verification/documentation on force:hasRecordId. It appears from my experience that recordId is only provided to the "container" component, and it does not feed down to any child ...
0
votes
1answer
16 views

Read document cookies in Lightning Component [duplicate]

I want to read the cookies out of the DOM document object. I tried the following: Controller: init : function(component, event, helper) { console.log(document.cookie); // returns nothing } ...
0
votes
1answer
18 views

Lightning App Page - pass parameters

I have Lightning App Page created using App Builder with diffrent components embedded into it which is being invoked from a VF page. I would like to pass parameters to the page which will be used by ...
0
votes
1answer
36 views

lightning:fileCard No Preview Available or What permissions am I missing?

Here's my code: <lightning:layoutItem padding="around-small"> <lightning:fileCard fileId="069XXXXXXXXXXXX" description="logo"/> </lightning:layoutItem> I'm using (for now) a ...
0
votes
1answer
28 views

Dynamic Aura:Id inside Aura:Iteration [duplicate]

I have a component which will display a list of records in the table and user can edit and update each and every row. Issue: Since I have static aura:id inside aura:iteration, whenever am trying to ...
0
votes
0answers
12 views

Lightning Datatable Column Summation

I am using lightning datatable to display records. I want to display summation of each column under it.Any suggestion on the approach.
0
votes
0answers
11 views

How to make Lightning:Inputfield as blank/null based on condition?

How to make Lightning:Inputfield as blank/null based on condition? I have tried different ways to accomplish this as below 1) component.find("auraID").set("v.value","") - I have used null/passing ...
-1
votes
2answers
33 views

Is it possible to show/hide or enable/disable a lightning quick action?

In opportunity, I created a quick action which invokes a lightning component. My requirement is, but it should be visible/enable only when stage name is "New". For all remaining stage name values it ...
0
votes
0answers
20 views

How do we communicate between two independent lightning components in same page? [duplicate]

I have two custom lightning components in record page. Based on an action in one component (Say Button Click), I need to make some modifications in another component. How can these two independent ...
0
votes
1answer
39 views

How to redirect to the standard Lightning Account Hierarchy page?

I have a custom lightning component on Account. How can I add a button to this component, which will redirect to the standard Lightning Account Hierarchy page for this Account (the one which gets ...
0
votes
2answers
30 views

Navigate to two different pages from same lightning component button

I have a custom lightning component. The same component is used within my Salesforce org in a lightning tab. Also it is used in my community. Now, my requirement is to navigate on two different pages,...
1
vote
1answer
28 views

Why formula field in not allowed in custom metadata

I had a requirement where I need to show list of buttons in a record edit form page. These values I am taking from custom metadata record. Fields in custom metadata records are Market(Logged in user's ...
-1
votes
0answers
13 views

How to remove SF admin headers from print preview in lightning component?

We are haning a lightning component tab on which we are providing a print option with window.print(). But header part from SF admin still remains there. Please provide a solution to hide header from ...
0
votes
1answer
46 views

Lightning listbox selection styling

In the developer docs they have a really cool Listbox-looking thing where you select an item (with nice hover effects and everything) and then it changes the content of several other components. For ...
-1
votes
0answers
26 views

Kanban Javascript library [closed]

I need to create a custom Kanban view in my project. I'm looking for a Kanban javascript library which I can use in the lighting component. Can anyone recommend JS library for the same? Thanks
0
votes
1answer
33 views

Can we add bold style to last row in Lighitng Data table??

I am using "lightning:datatable" tag to display set of rows in UI. Few columns are numeric data. I needed last row to be summarized values of all the data set. I don't find any standard summary ...
1
vote
1answer
32 views

How to create two dynamic picklists for a Lightning component on App Builder?

Using the DynamicPickList class and the datasource attribute on the .design file is pretty straightforward. I can create a dynamic picklist this way. What I want is to be able to have two picklists....