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.

1,713 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
22
votes
3answers
1k views

force:navigateToComponent not loading component in Summer '17 | DOM repetition issue in Summer '17

I'm using force:navigateToComponent to navigate to a different component on click. On the first click, it navigates to the component and everything is successfully loaded. When pressing back button ...
14
votes
1answer
344 views

Cannot read property '$$OwnerKey$$' of null

I have a Visualforce Lightning Out page that's rendering some <lightning:input type="date"> elements. Since the Winter '19 release in the dev sandbox I'm working in, whenever I select a date ...
13
votes
0answers
255 views

Continuation Apex Unit Testing - Lightning

With Summer'19 release continuation is available in Lightning. To make long running callouts. Continuation - Aura Dev Guide: https://developer.salesforce.com/docs/atlas.en-us.220.0.lightning.meta/...
13
votes
1answer
503 views

ui:inputDateTime date and time pickers not displaying properly

We are working on some Lightning Components for a Salesforce Community. We are using our own template which is bare bones. Here's the code: <aura:component access="global" implements="...
12
votes
1answer
528 views

Highcharts not being rendered in Microsoft Edge browser | Lightning component

I'm facing an issue where Highcharts report is not being loaded when opened using Microsoft edge browser. It's loading fine when opened using Google Chrome. Here's the code:- Component:- <aura:...
11
votes
1answer
1k views

Lightning modals don't support scrolling reliably (overflow)

I' not talking about homegrown modals (Strike, plain SLDS CSS) but about native modals that Salesforce is displaying e.g. on custom NEW actions or via e.force.createRecord. If you have too many ...
11
votes
3answers
2k views

Lightning: dynamic index in aura attribute with type List

related post I am having the same issue. Trying to access array with dynamic index arrayList[index] (index from aura:iteration), but Salesforce doesn't support that. Does anyone know how to do this?...
8
votes
0answers
493 views

Internet Explorer bug with lightning ui:inputNumber, ui:inputCurrency with change attribute

I've discovered a strange bug in Internet Explorer with ui:inputCurrency and ui:inputNumber lightning components (probably it also affects other "number" components -> ui:inputPercent). When your ...
7
votes
0answers
306 views

New Lightning Warning

Last night when I left, I was not receiving this warning. This morning, I get this warning multiple times. Even if I navigate to something that I have not customized at all (ie the dashboard home ...
7
votes
0answers
301 views

Lightning Datatable Action Violates Content Security Policy directive

I'm using Lightning Datatable with Static Actions and following the guide in Developer Salesforce.com Lightning Datatable component guide but getting the following error (seen in the Chrome developer ...
7
votes
1answer
291 views

lightning:overlayLibrary Modal not closing in LEX Tab

I've been using lightning:overlayLibrary Modal in a component which is referred in a Lightning Page and in a Lightning Tab. I'm using a custom button to close the modal which performs a overlayPromise....
7
votes
1answer
291 views

Unstyled Flows in Lightning Out

I have a static site, hosted in a AWS S3 bucket. The static site uses Lightning Out to load a component that contains a flow. I have included the SLDS stylesheet in the static site, and have ...
7
votes
1answer
453 views

Click and Touch events on <a> tags in Lightning

In Lightning, we should always be using e.force:navigateToSObject or e.force:navigateToURL instead of links like <a href="whatever>. So, I made a custom Link component to avoid having to have ...
7
votes
0answers
391 views

Lightning Component - Intermittent Long Loading Times

I've created this very same example in my org in order to test the new lightning:datatable. The SOQL query in the apex method is also limited to 10 records. Typically my requests finish within 2 ...
7
votes
1answer
459 views

Event when all children of a parent lightning component have loaded

Is there an event fired when all the children of a lightning component have finished loading ? I would need this to fire an event from the parent that will affect all his children and as of now, some ...
7
votes
1answer
5k views

how to add button to lightning list view

is it possible to add new action along with edit/delete values in drop down near every object(image below) I followed this topic topick the only decision I have come up with is like in this article ...
6
votes
1answer
195 views

Google Tag Manager and Lightning Community and Components

I've managed to import the Google Tag Manager code into the using the lightning community settings tab. This loads perfectly fine and I can see the 'preview' window for google tag manager. <!-- ...
6
votes
1answer
150 views

Dynamic Polymorphic Lightning Components

I have a Parent component rendering child components. I want this to happen dynamically, meaning that I can pass in a child component definition and fill it with data afterwards. <!--c:child--> ...
6
votes
0answers
218 views

Summer 17 Web tab bug

Testing web tabs in a summer 17 sandbox and have come across an issue where it won't redirect to the page. The browsers dev console shows mostly warnings about deprecated methods being called, a ...
6
votes
2answers
3k views

window.onload() and LockerService

When calling window.onload() and LockerService is enabled, I get this error: aura_proddebug.js:17569 Uncaught TypeError: Cannot use 'in' operator to search for 'target' in undefined at Function....
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="...
6
votes
0answers
273 views

Remove border in visualforce page added in Lightning Page

Using the lightning page editor is possible add visualforce pages in a lightning page but that add a border and I want to remove it
6
votes
1answer
427 views

Binding behaviour on lightning components with ui:inputText/Checkbox components

I'm currently building a lightning component for a community builder portal. The whole series of components is reasonably complex but nothing extreme (it's a wizard). To make things easier I'm using ...
6
votes
2answers
388 views

Intermittent 404 errors using Lightning Out in Visualforce

I'm seeing intermittent 404 errors when attempting to use lightning components inside a Visualforce page via Lightning Out, but one org seems far more affected than others. The VF markup: <apex:...
6
votes
0answers
520 views

Build an Account Geolocation App Zoom

I'm trying to get zoom to work with the code from the Build an Account Geolocation App trailhead. I've passed and got my badge but I'm struggling to figure out how to handle zoom. I did wonder if it ...
6
votes
0answers
1k views

Lightning Component > force:inputField is not working for picklist in Sandbox

I am working on a lightning component where I want to show picklist field using as follows. ` <aura:component > <aura:attribute name="conObj" type="Contact" default="sobjectType:'...
5
votes
0answers
176 views

lightning:empApi is not working in summer19's sandbox: 403::Unknown client

I am receiving errors in lightning:empApi in the console. It was working fine before summer19 release in the sandbox. It works fine in scratch org. Scratch org is also on summer19. The error is ...
5
votes
1answer
141 views

Simulating a lightning button menu onchange event through jest

I've been trying to write some unit tests for a lightning-button-menu component. With the lwc file as: <lightning-button-menu onselect={onSelectMethod} class="edit-record-wrapper"> <...
5
votes
0answers
279 views

Safari support for iframing a visualforce page

Background: I have an API I wish to use from within my managed package which occasionally results in long running callouts. In order to ensure my users don't encounter errors with the limits to long ...
5
votes
0answers
151 views

Passing a variable to lightning component through snapin chat

I have a snapin chat component embedded on our custom application (not salesforce or a community). I'm trying to allow a parameter to pass through to my lightning component for use in the prechat ...
5
votes
0answers
84 views

How to use speech recognition functionality in lightning component

Generally, in Javascript, there is a way to using SpeechRecognition API. But in Salesforce this is under locker service. So is there any way to perform speech recognition in a lightning component?
5
votes
0answers
219 views

Lightning popover - show nubbin in the right side

I am using popover with lightning:overlayLibrary. The standard side of the nubbin is on the left. and looks like this: I am trying change it to right. This is how I'm using it: component.find('...
5
votes
0answers
374 views

How to detect minimize action on a utility bar item?

PROBLEM STATEMENT I have a 'Compose Email' component which is embedded in the docked utility bar. Please see below image for clarity. I am using lightning:fileUpload to allow multiple email ...
5
votes
0answers
1k views

Not able to open lightning component from quick action otherwise working fine

i get the record id alert after that nothing works doInit : function(component, event, helper) { alert('start'+component.get("v.recordId")); var action1 = component.get("c.getCurrentOpp"); ...
5
votes
2answers
344 views

New SLDS class and attribute as of Spring '18 release - no documentation

I've noticed a new SLDS class that is being applied in Lightning Experience. There doesn't seem to be any documentation whatsoever of this class and it's not mentioned in the Spring '18 release part ...
5
votes
1answer
565 views

Can Lightning WorkspaceAPI be used to Open tabs in Visualforce Pages?

Can Lightning WorkspaceAPI be used to Open tabs in Visualforce Pages? I have a custom console app that incorporates the integration toolkit function for opening tabs/subtabs involving multiple ...
5
votes
0answers
78 views

Can't delete deprecated packaged Custom Object as it has a Flexipage?

Is it true that there is no way to remove a packaged Custom Object with a Flexipage attached to it? Flexipages can't be removed and the Flexipage itsself can be edited when it is packaged. If so, ...
5
votes
0answers
490 views

Standard “Related List - Single” component fires refreshView event only in certain cases

I have three standard related list(Related list - single) components on Opportunity object Lightning page as below: Related list for detail child custom object(Master detail relation with ...
5
votes
0answers
382 views

How to bind expressions to attributes when dynamically creating components

With markup I can do things like this: <aura:attribute name="level" type="Integer" /> <c:childComponent level={!v.level + 1} /> I can bind expression to child's attribute, and whenever ...
5
votes
0answers
1k views

Display Tasks in Calendar in Lightning Experience for all Users

I would like to see Tasks in my Calendar in Lightning. According to this Idea, this is delivered in Lightning Experience. I can see that I can do it using the Create a Calendar from Anything feature, ...
5
votes
0answers
677 views

aura:locationChange doesn't work in Internet Explorer?

I have the following lightning component, TestUrlChange: TestUrlChange.cmp <aura:component implements="flexipage:availableForAllPageTypes" access="global" > <aura:attribute name="hash" ...
5
votes
0answers
2k views

Strange Lightning Error: “Action failed: aura:if$controller$handleTheTruth”

In our Salesforce Lightning components we're running into a very strange error: Action failed: aura:if$controller$handleTheTruth [null is not an object (evaluating 'b.Aa')] Failing descriptor: {aura:...
5
votes
3answers
6k views

Related list is not visible in lightning mode for a user but visible in classic mode

I am trying to convert a classic application to lightning, in the process i got stuck with a wired issue.For a particular user one child object's related list item is not getting displayed in the ...
5
votes
0answers
439 views

Lightning force:inputField with filter issue

I have a lightning component that uses the force:inputField element for a lookup. The lookup field has a filter applied to it. I have the filter field displayed on my component, but when I set the ...
5
votes
1answer
48 views

How do you customize tabs as a regular user in Salesforce Lightning?

What is the Lightning equivalent of Customize My Tabs in Classic?
5
votes
1answer
181 views

Detect Tab changes inside the detail view of an Object in Lightning?

I have a detail view with system created tabs (created in the page layout) and one of my tabs contains some lightning components that need variables changed when the user moves to another tab. ...
5
votes
0answers
171 views

Can I set an ECMAScript 6 Javascript Map() Object as a Lightning Component Attribute?

I have a scenario where I am building a Javascript Map() object in my client controller helper of a Lightning component. Ideally, I would like to use this map for client-side filtering in a component. ...
5
votes
2answers
3k views

how to access the save button in a modal when implementing the force:lightningQuickAction

I am actually creating a component that will implement the force:lightningQuickAction so that my component open in a modal window from the action button.I would like to capture the event where the ...
5
votes
1answer
1k views

force:recordEdit UI not working properly

I am playing with force:recordEdit and it's looks like there is some issue in UI. Here i have attached the code and UI screenshot. In this example i have used hard coded id of contact record for ...
5
votes
0answers
2k views

force:canvasApp in a Lightning Component

I have a simple Lightning Component with a Canvas App embedded in it via the force:canvasApp tag. CanvasTestComponent.cmp <aura:component implements="forceCommunity:availableForAllPageTypes" ...