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.

2,143 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
23
votes
3answers
2k 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
492 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
1answer
575 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="...
11
votes
3answers
4k 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?...
10
votes
0answers
587 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 ...
9
votes
1answer
10k 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 ...
8
votes
1answer
2k views

How can I allow the user to Populate Custom Fields When Uploading Files?

Update: I managed to get the dialog to display but the implementation feels like a bug workaround. See update below. How can I get this Add File Details dialog to display allowing the user to add ...
8
votes
2answers
3k 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 ...
8
votes
0answers
520 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
332 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
555 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
599 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
737 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
861 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 ...
6
votes
0answers
288 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 ...
6
votes
0answers
2k views

Lookup Filters in custom lightning:recordeditform lightning:inputfield using prepopulated values

I'm using lightning:inputfield in a lightning:recordeditform for lookup fields - we'll call them Party and Warehouse. The Warehouse lookup has filters on it based on the Account field - Warehouse....
6
votes
1answer
249 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?
6
votes
1answer
1k 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 ...
6
votes
2answers
3k views

How can I pre-populate a lookup field in lightning:inputField?

I have been trying to pre-populate a lookup based lightning:inputField with a default value. The code below renders a lookup field that works but I would like to be able to set a default contact in ...
6
votes
1answer
209 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
228 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
0answers
650 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 ...
6
votes
2answers
4k 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
0answers
479 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
781 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
1answer
511 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. ...
6
votes
2answers
951 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
594 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 ...
5
votes
0answers
459 views

Lightning Component Container 403 error

We've developed a lightning component which hosts a react app within a container. I've noticed that sometimes after pushing a change to it in a scratch org (i.e. updating the static resource which the ...
5
votes
0answers
243 views

Limits on Branding Sets, Audiences, Page variations

Discussing some solution architecture with a colleague and the question came up about the theoretical boundaries of varying a lightning community using only the out of the box tools. I've made some ...
5
votes
0answers
1k 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
267 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
495 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
2k 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
0answers
90 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
850 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
1k views

force:navigateToSObject's slideDevName doesn't support in API Version > 37

If you goto this link https://developer.salesforce.com/docs/atlas.en-us.202.0.lightning.meta/lightning/ref_force_navigateToSObject.htm slideDevName - Supported for lightning experience for API 37. ...
5
votes
0answers
536 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
439 views

Issue with lightning app when using lightning out

Hi guys I have made a nodejs app and want to expose my lightning app in it. The component seems to render but some functionality does not work in the dev console I am getting these errors: Access to ...
5
votes
0answers
2k 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
845 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
0answers
685 views

Custom Content Layout for Lightning Community

I've been working with the forceCommunity:layout interface to make my own custom layout for use in a community. The examples from the docs work fine, but there seems to be some magic around the ...
5
votes
1answer
50 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
0answers
180 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
4k 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" ...
5
votes
1answer
2k views

Programatically add focus on ui:inputText

I'm afraid I'm hitting a limit of Lightning here, but I'd thought I ask here as a last resort. I want to programmatically add focus on a field in a form. I now have code like this; Markup: <ui:...
5
votes
2answers
3k views

How to insert list custom setting entry from a lightning component?

I want to insert a record of custom setting of type List through Lightninng component using form/any other input UI.In doing so through form and using UIInputText, when I am using following markup to ...

1
2 3 4 5
43