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.

-2
votes
1answer
32 views

Can this below dashboard be devloped with Standard Salesforce functionality?? [closed]

Can this below chart be developed with Standard salesforce features. 1. Chart should allow negative values in Y-axis. 2. X-axis should allow more than 1 system for each unit as shown in image. 3. ...
1
vote
0answers
60 views

Issue with Lightning:input and currency formatter

I'm creating a lightning component with a lightning:input, but I have an issue with decimal places and currency formatter. This is my code: <lightning:input name="foo" value="foo" type="number" ...
0
votes
1answer
38 views

How to update the only modified records in aura:iteration using index

Is there any way to update only modified records in the list that is iterated through aura:iteration. I am trying to get index at row level using event.currentTarget. But event.currentTarget is ...
7
votes
1answer
472 views

What does Lightning Debug Mode do exactly?

When you enable UserPreferencesUserDebugModePref on a User, s/he will be running lightning components in debug mode. The only difference I could perceive is that (more) console warns are printed. Per ...
1
vote
1answer
19 views

Lightning Button Variant for “outline-brand”

I'm trying to apply a specific variant to a lightning button. Lightning Design System says there is a button variation called outline-brand. It applies the slds-button_outline-brand class to the ...
0
votes
1answer
25 views

Visualforce with AJAX toolkit Migration to Lightning

I have a Visualforce page exposed as a Tab with heavy javascript and it uses AJAX toolkit. We are in the process migrating to Lighting Experience and this page seems working fine at high level in ...
0
votes
1answer
19 views

Adding Different Padding values on lightning:layoutItem

Is there a way to apply more than one padding value to the lightning:layoutItem component? The examples in the documentation only show one value: <lightning:layoutItem padding="around-small"> ...
0
votes
0answers
25 views

Trying to use empAPI on visualforce [duplicate]

I am trying to use the empAPI component on my visualforce page. I am aware that the empiAPI is a lightning component but I was wondering if I was able to call that component in a visual force page. ...
0
votes
1answer
43 views

Field Service Lightning Mobile Notifications

I'm currently using Salesforce, Field Service Lightning. When I assign Service Appointments to the technicians they do not receive notifications about them in their phones, even thought the ...
0
votes
1answer
17 views

Retrieve recordId and sObjectName from utility bar component

I'm trying to retrieve recordId and sObjectName from a component put on the utility bar. The point is it always retrieves me 'undefined' in both cases. <aura:component implements="force:...
0
votes
0answers
19 views

Component not initializing with a call to billingCountry

My component is not initialing if I use as a field Account__r.BillingCountry in the javascript controller, to pass it as a parameter to the controller. This is my partial code: <aura:component ...
0
votes
0answers
26 views

Capture Cancel Event of a Standard Lightning Modal

I am using the below VF page to invoke sforce.one.createRecord which is working fine. <apex:page standardController="csconta__Contract__c" extensions="EPPSolutionContractController" ...
0
votes
2answers
35 views

Import and use strike components

I'm new to salesforce development so this will be probably a very trivial question but I'm stuck here. I'm trying to import and use Strike lookup component So I have imported all the files in the ...
0
votes
0answers
36 views

Managed Package successfully installed but getting “unexpected error” when trying to reference components

UPDATE: After additional troubleshooting, it seems like I've narrowed the issue down to two things: first, I created the most basic of HelloWorld components to rule out compilation problems with the ...
0
votes
0answers
24 views

Aura Component Bundle fqn attribute

I have created a new Aura Component using the SFDX cli with version 44.0 and see that it adds an "fqn" attribute which is set to the component's name. <?xml version="1.0" encoding="UTF-8"?> <...
0
votes
0answers
21 views

Deploying lightning dashboard components via a package

Is it possible to deploy lightning dashboard components from Sandbox to PROD via a package? I can see that you can deploy a dashboard via change sets, however even in the dependencies don't specify ...
1
vote
0answers
25 views

Visual Force page is not invoking lightning component

I have created a managed beta package for testing purpose and I have installed it on a newly created fresh org. The managed package includes a Visualforce page which invokes a lightning component. ...
0
votes
0answers
16 views

Overriding a standard button with lightning components visible in community

I have seen related posts but my lightning button is not displayed on community.The new button get overidden but the new button is not shown.I have added just a button for now in the component. <...
0
votes
0answers
18 views

Error - Lightning component [Cannot read property 'NIF__c' of undefined]

I'm trying to access a field: NIF__c in a Account, being the account a lookup relationship with CreditInfo_Alerts. The component throws an error if I use both Account__r.Nif__c or Account__c.NIF__c. ...
1
vote
1answer
37 views

How to get parameter value from event?

I have the following codes: Event <aura:event access="global" type="COMPONENT" description="Event template" > <aura:attribute name="data" type="String"/> <aura:attribute name="sample"...
0
votes
0answers
21 views

Restrict picklist values fetched in lightning component depending on record type [duplicate]

I have a lightning component which displays picklist values in lightning:input. I am using the following apex code to query picklist values and put it in the map @AuraEnabled public static List<...
3
votes
0answers
34 views

getReference databinding for maps

seems I have found a bug which prevents data binding in case of arrayed Maps. Maybe you can help me how to get around this. I have a list of Custom Objects, I iterate over. Each of the components, I ...
0
votes
1answer
19 views

Possible to change/append file name of file uploaded in ltng cmp?

I’m using flows to gather information in a stepped process, and have found that I’m not able to append or change the file names of files. Is it possible to change the file name after it’s been ...
-1
votes
1answer
53 views

How to drag and drop the records using lightning component?

I need to drag and drop the records in contact object. for example i am having 10 records in contact object.when i drag the 6th record to 4th record, need to replace the 6th record to 4th and 4th ...
0
votes
2answers
50 views

Append files to the first upload in <lightning:input type=“file”>

I am using the following code in my lightning component to upload multiple files <lightning:input aura:id="fileId" onchange="{!c.handleUploadFinished}" type="file" name="file" label="Upload ...
0
votes
0answers
20 views

Access map of maps values through aura:iteration [duplicate]

I have an Apex class that returns a Map<string, Map<string,string>> and I want to use it into a Lightning Component. I declared a <aura:attribute name="objMap" type="Map[]" access="...
0
votes
0answers
43 views

lightning:input type=“datetime-local” is adding the current user timezone value when mapping the datetime in datetime attribute

I have a custom calendar show below in picture. Using the calendar I need to book appointments for my user. When I click on the available slot I need fetch the date and time from the calendar and ...
0
votes
0answers
23 views

Compact layout overides my Lightning component css

I have an important issue with the Winter 19 Release. I have a lightning component inserted inside the Page Layout using a Visualforce with LightningOut. However, when I change to the new Display ...
1
vote
1answer
18 views

Can <lightning:flow> be nested inside of </aura:iteration>, getting Uncaught Error in $A.getCallback() [Cannot read property 'startFlow' of undefined]

Trying to display more than one flow in the lighting component. Name of the flow will be passed by apex class <lightning:tabset> <aura:iteration items="{!v.lsCustomTabs}" ...
0
votes
0answers
43 views

Salesforce afterRender threw an error in 'lightning:select' [Cannot read property 'value' of null]

Below is my code. Component: <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> <aura:attribute name="listControllingValues" type="list" default="[]" description="to ...
0
votes
1answer
51 views

For multi-file upload same file being uploaded twice

I am using the following to upload multiple files in Salesforce custom lightning component. http://sfdcmonkey.com/2017/09/25/file-upload-lightning-component I my component, I have the following code ...
2
votes
1answer
38 views

tabindex on lightning components

I recently added tabindex's to lightning components, I noticed that it doesnt really behave as desired. Example, I have the following form: <lightning:select tabindex="1" .../> <lightning:...
0
votes
1answer
28 views

Scrollable Footer in lightning:map

I am implementing a lightning:map and was following this documentation. If you go to Complex Example you can see that the footer/sidebar has a scroll bar and limits the map component to a set ...
3
votes
0answers
31 views

Make Images uploaded via lightning:inputRichText publicly available

We are developing a managed survey app which has two parts: Survey Construction and Survey Execution. Survey Construction: The interface built on Lightning Component, where the admin setup the ...
0
votes
2answers
44 views

Drag and Drop - multi file upload in Custom Lightning Component

I want to create a drag and drop multi-file upload in a lightning component form. The form is displayed in a community. I have used <lightning:fileUpload label="Attach receipt" ...
1
vote
0answers
15 views

Set auto-CC in Reply-All Lightning Component

Is it possible to set email to CC in default Reply-All Lightning Component in the Case? screenshot
0
votes
0answers
31 views

lightning:map doesnt work on callout in init

When I try to set location from data that I'm fetching during init map is just not rendering at all. I tried to move whole stuff into onRender but it also fails (goes into infinite loop). Anyone have ...
0
votes
0answers
12 views

Is there any way to identify broken both external and internal links in Lightning Component?

I understand that we can use AJAX for this, but as I can see we have to add every external endpoint to CSP trusted sites in order to make test callout. So maybe there is a way we can check that links ...
0
votes
0answers
29 views

Pass dynamic query from Static List method with parameter to another static List method

i'm using 2 lightning components(Table component and picklist component). first i'm fetching values from picklist and sending to apex controller in below method: @AuraEnabled public static List<...
0
votes
0answers
13 views

How to Sort Opportunity Product Records in Lightning

In Classic, the Sort button is quite useful on the opportunity product so end user can easily adjust the order to present on the frontend or in generated document. But in Lightning the button is not ...
2
votes
0answers
63 views

SLDS Grid Columns Not the Same Width

I'm creating a form and using lightning:layout and giving the lightning:layoutItem a size of 4, which renders <div class="slds-size_4-of-12">. However, I noticed that the last column in the grid ...
0
votes
1answer
36 views

How can i upload files

I have created simple component to upload files with following code: <aura:component implements="force:appHostable" controller="BeetleEyeAssets"> <aura:attribute name="accept" type="List" ...
0
votes
0answers
20 views

Can I assign fields to a record in a recordForm component using JavaScript? [duplicate]

Is it possible to assign a field to a record loaded with the component lightning:recordForm? Like: component.find('myform').set('v.record.Field__c', 'We were hereeee!')
0
votes
1answer
35 views

lightning:input type=“date” not binding with my object

I'm currently creating a Lightning Component for a custom object in SalesForce, for some reason the data is not binding to this input. Even when I select a date from the date picker nothing shows up ...
0
votes
1answer
21 views

repositioning hyperlink next to lightning:textbox description

when I add styling to reposition a hyperlink next to a lightning components label, it seems to lose its functionality and no longer redirects, <lightning:layoutItem padding="around-small" size="12"...
0
votes
2answers
42 views

help text icon with lightning:select

The docs are very clear on how to add a help text icon. I've tried to do this using lightning:select component. This is what I have so far but it doesn't appear to be working: <lightning:...
4
votes
1answer
118 views

Stripe integration for Salesforce in lightning components

We are trying to implement Stripe integration with Salesforce by using Lightning Components for payments. Stripe use an API for securely obtain the users card information. This API is for the client,...
0
votes
0answers
22 views

Error message is not displayed on lightning table

I am using the below markup in the lightning table to show the error message. It is able to highlight the field in redborder but fails to show the error message. Is it not possible to update the ...
1
vote
1answer
27 views

Look Field to Open specific Record Type Create Record Page Layout [closed]

Is there any way to Open Specific Record Type page layout from Lookup field New Record Creation "+ New Record" option in Lightning Experience? Thanks, Lalit
0
votes
1answer
30 views

Dynamic Community Home Page based on user profile

So I have requirement that I have problem with. So as in title: Depending on the profile which community user have, home page of the community should change. So for example it should have list of ...