Questions tagged [lightning]

This tag is for questions related to the "Lightning Experience" which comprises a number of elements around a new User Interface on the Salesforce Platform. While it can still be used in a server side MVC environment, it is primarily a MV UI where the Controller is JavaScript based operating from the user's browser. Lightning "Pages" are single page applications.

Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

Lightning:recordForm onload() method to prepopulate fields on record creation

I am using lightning:recordForm to create a record creation form. I am trying to pre-populate some fields. My component: <aura:component description="replaceDuplicatesModal" controller="...
3
votes
2answers
7k views

$A.util.addClass not working on components that are inside aura:if

I have some buttons inside a component that are by default hidden, but are shown when certain event is received. When I receive the event, I am using $A.util.addClass() and $A.util.removeClass() to ...
0
votes
0answers
16 views

Lightning Accordion coming default opened

I am binding the values inside template of lightning web component.When somebody open the accordion as default class changes to slds-accordion__section slds-is-open .Also I am using pagination and ...
3
votes
1answer
1k views

Not able to access event.currentTarget when locker service is enabled

There's a question already asked regarding this here Issue with event.currentTarget According to Salesforce Known Issues , they've updated that it has already been fixed in almost all the servers (...
0
votes
2answers
4k views

how to auto refresh the lightning component page

I have created one lightning web page with some input and output fields and a lightning button, now I want the page to be refreshed automatically when I hit the lightning button can someone help to do ...
1
vote
1answer
659 views

Expand button within Aura:Iteration accessing wrong iteration element

I am trying to create a show/hide button for a comment section within aura:iteration Aura: <aura:iteration items="{!v.post_list}" var="post_item" indexVar="i"> ... ...
2
votes
4answers
3k views

Accessing Map Value in Lightning Component

I've been trying to access map values in Lightning Components, but haven't been able to be successful. I've searched the documentation, articles, this forum, etc and the answer seems to be that there ...
0
votes
0answers
13 views

Required attribute not setting to OFF even though I have selected a value in Lightning:Select

I am facing a weird issue. I have a parent and child component and have two picklists in child component. Based on 1st picklist value, I am rendering 2nd picklist with options. Both have required ...
0
votes
1answer
26 views

How to navigate to a lightning component from quick action

I have a custom object named New/Renewal Tracker in that object there are many quick actions button what i want to do is clicking on that quick action button, want to change a picklist value e.g if i ...
0
votes
1answer
33 views

Prevent user clicking outside Custom lightning component

I have a parent custom Lightning Component which includes a custom lookup component inside, for Account Edit/Create. I want when the user starts typing (and results start to appear in a drop-down list)...
0
votes
2answers
378 views

Exporting Data in excel using Lightning Component is not supporting “#” symbol

In Lightning component, I have a button "Download Excel". On click of this button, all the Opportunity Products related to an Opportunity will be printed in an excel and the excel will be downloaded. ...
6
votes
2answers
2k views

Dynamic reference to static resource in lightning component

In lightning, we can reference to static resource by a value provider like: <img src="{!$Resource.staticResource}"/> Is there any smart way to make it dynamic like: <aura:attribute name="...
0
votes
0answers
11 views

LWC lightning datatable: Enabling Popover Overflow

I'm creating a lwc datatable with a custom column which contains a button and a corresponding popover. The problem is that the popover will not display as I would like it to, though by playing ...
0
votes
0answers
11 views

How to embed Google Analytics in Lightning Component?

I'm fairly new to Salesforce and Lightning Components, so please bear with me. I have a test Lightning Component named ajAppComponent and want to embed Google Analytics in the component. First, I ...
2
votes
1answer
17 views

Workspace API use OpenTab() to open existing tab using pageReference

I'm opening a tab using workspace API openTab() with pageReference passing some values within state. Then I want to open the same tab by clicking a different link and passing different parameters. ...
0
votes
0answers
12 views

Salesforce grouping execution flow

Is possible Salesforce be agroupping the Lighting flow execution? We are working with Platform events calling a specific Lightning flow each time it runs, and we noticed the flows are being executed ...
0
votes
1answer
22 views

Visualforce email template in Lightning

Can anyone let me know how to create VF email template in Lightning. For email templates in Lightning, we have a tab called Email Templates. When I tried to create a new template, I have an option of ...
2
votes
0answers
22 views

Winter 20 : Getting Promise rejection, intermittently, when we close tab

On tabClose we have started reciveing an error message : [PromiseRejection: Error: getTabInfo() - Failed to get tabInfo for tabId `ctab7`] {anonymous}()@https://*****.lightning.force.com/auraFW/...
1
vote
2answers
30 views

lightning data table column label is not printing Id is printing

I am trying to create a lightning data table which has hyperlink columns. when i try to add a reference field in column it just showing the id. component.set('v.columns', [ { label: '...
1
vote
0answers
84 views

Issue with spring '19 release for iteration over input field

i have bunch of lightning inputFields that i am using in iteration and one lightning input field which is outside of the itteration and aura:id for all the input fields are same. But when on click of ...
0
votes
2answers
1k views

Error message from server side controller lightning

Hi i want the error message to be displayed, i am getting value in response.getError() function, i want message argument in this function. Below is the snippet of how i'm doing, i am getting undefined ...
0
votes
0answers
28 views

Custom Lightning Home Page Template - Only render a region if it contains a lightning component

I am attempting to create a custom home page layout template following the tutorial here. All is fine and dandy except that if a region doesn't have any lightning components added to it the region is ...
0
votes
2answers
51 views

Refresh Single Lightning Component, Not Entire Page

I have a page that contains two lightning components. One is a calendar, the other is a list view. On the calendar lightning component, a user will click, a hidden modal will be displayed so the ...
1
vote
2answers
44 views

lightning:recordEdit get onSubmit to fire when calling submit from controller

Similar to this question posted last year. I am calling the submit function from a lightning:recordEdit from the js controller. However, in my use case the form is creating a new record, and I now ...
0
votes
1answer
14 views

Top-Down Tab Key Section not working in Page Layout

I'm also creating custom page layouts for this custom object, and want them to be able to tab down, rather than left to right. I believe I have the correct option chosen, but it does not tab correctly....
0
votes
0answers
14 views

locale decimal seperator for currency input-fields

We built a form with many lightning-input-fields in which you can enter values for custom currency fields. Company currency settings AND user settings are set to German. So I expect, that users can ...
0
votes
0answers
26 views

Values not populating on the record

I have a lightning component that I'm calling on a quick action. It has a lookup field "Contact" which is prepopulated on the form. When I save the record, the contact value is not reflecting on the ...
0
votes
0answers
17 views

Downloading The attachcament gives Blob result in csv`

I have made a lightning component to download the attachment associated with a custom object record. The downloading is working perfectly, however the downloaded file is opened with blob data. The ...
0
votes
0answers
322 views

How to remove item from Pill Container?

I have a Pill Container, which contains items from the Contact sObject. When I click the x button nothing happens. CMP: <lightning:pillContainer items="{!v.selectedContactList}" onitemremove="...
0
votes
0answers
25 views

Lightning input type issue

I have created a lightning input with a dynamic input type . It's creating such a wried issue when I changed the value of 'v.type' number to text. The main problem is that when I click on the '...
0
votes
1answer
31 views

Lightning Componenet Pagination Performance

Hey having some performance issues with pagination in a lightning component. The actual functionality works correctly the problem I am noticing is its slow to change pages. From what I can tell the ...
0
votes
3answers
4k views

force:closeQuickAction not working

I'm new to Salesforce lightning. I'm trying to build a quick action that performs backend logic based on a condition else display a toast. I have created the component and associated it to an object ...
3
votes
3answers
763 views

$A.enqueueAction not being executed when using lightning out

I have a lightning application that is being used in both lightning and classic (via ltng:outApp). I have a series of callbacks that work perfectly in lightning, but when invoked from classic, the ...
4
votes
3answers
348 views

Is Salesforce Classic being deprecated?

I've been hearing chatter that SF is going to deprecate Classic this year (2019) Is this true? Been googling and can't get a definite answer.
0
votes
1answer
360 views

user profile in javascript without apex

How can we get user profile in lightning javascript component without writing Apex class? Please let me know
0
votes
0answers
26 views

[PromiseRejection: [Error in $A.getCallback() [Cannot read property 'querySelectorAll' of null]]] [on hold]

Getting this issue whenever i am submitting i am using recordEditForm in my component can anyone tell why this error is popping up although the functionality which is deigned is working
1
vote
1answer
30 views

Where to find connected VS Code apps in setup

I tried finding the connected VS Code apps in Connected Apps OAuth Usage and Manage Connected Apps but could not find it. I have below queries: Where to find which all VS Code apps (and which systems)...
1
vote
1answer
966 views

How to get parameters from navigateToComponent - Lightning

I am trying to call a component (Let say "Destination") from another component (Let say "Source") which is added in the page layout (Opportunity). But I am passing the parameter (example: Record ID)...
0
votes
0answers
10 views

Delete recordId when passing parameter to child aura component

I create a new meeting note object with custom aura / apex/ js code. It creates a New input form if it does not get a recordId, and Edit form if it gets one. Now I want to reuse it, creating a ...
0
votes
0answers
7 views

How to automatically add fields to field set and in picklist?

How can you automatically add newly created field of particular data type in the field set and create a new picklist value with its field label?
1
vote
1answer
1k views

“window.location.href” returns incorrect URL in lightning component

My salesforce org has CTI application that pops up lightning component in a new tab. Once loading of the component is complete, I am displaying the URL as an alert. CTI behaviour : The app first ...
0
votes
1answer
16 views

URL error when invoking an aura:application

We have an aura:application that wraps an LWC component. <aura:application extends="force:slds" implements="ltng:allowGuestAccess"> <aura:attribute name="recordId" type="String"/> ...
0
votes
0answers
10 views

update dashboard every one hour

How can we update dashboard every one hour? I tried to update it from subscribe button, but normal subscribe makes it possible to update dashboard automatically only one time in one day. I wanna ...
2
votes
1answer
39 views

Salesforce lightning component - Close original sub tab and open new Sub tab

I'm trying to accomplish the following: I have quick action that fires lightning component. This quick action is under opportunity and what i'm trying to achieve is the following: Once the button is ...
2
votes
1answer
30 views

How to switch to lightning in mobile browser chrome

When I use Chrome on my laptop I use Lighting and I have no problem. When I use the Salesforce App I have no problem. But when I use the Salesforce on my mobile device(via browser Chrome), I get ...
-1
votes
1answer
28 views

How to use IF Statements in Lightning Component?

I am very new to Lightning, I have checked OR,AND condition in Lightning Components.But I dont know how to write below If statements in Lightning Components. Vfpage to Lightning. <apex:column ...
2
votes
1answer
33 views

How to configure Salesforce Confetti Celebration when lead is converted to opportunity?

I need to show Salesforce Confetti Celebration when lead is converted like when we complete trailhead badges. We are converting lead from code. How to implement this ?
0
votes
0answers
29 views

LWC custom case record type selection opening in a separate tab in Console App

We have one custom LWC component to for record type selection which overrides 'New' case button. After selecting the record type and clicking continue, new case record creation popup is opening on ...
0
votes
1answer
16 views

Omni-Channel Lead Transfer Event

How can I capture the Omni-Channel 'Transfer' event? We need to do some custom post-processing or pre-processing when a Lead is transferred to another agent.
2
votes
1answer
396 views

Lightning Component Polymorphism is not working:

I am trying to use Bob Buzzard approach to get Lightning Component Polymorphism working, so I have method myAction: function(component) { component.getConcreteComponent().getDef().getHelper()....