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
Make your voice heard. Take the 2019 Developer Survey now

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.

13
votes
0answers
305 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 ...
10
votes
0answers
387 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:...
8
votes
0answers
469 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 ...
6
votes
0answers
278 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 ...
6
votes
0answers
801 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, ...
6
votes
0answers
179 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
218 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
0answers
202 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
473 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
96 views

Html injections for dependent picklists used in lightning web components in tables with edit

I am trying to build a dependent picklist dynamically within a table using Lightning Web component based on what is selected in the controlling picklist field. Html injections were possible in Aura ...
5
votes
0answers
42 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
37 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
41 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
115 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 ...
5
votes
0answers
113 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
75 views

Is it possible to call REST api from lightning:container

I'm seeing conflicting information: On one hand, the lightning:container docs state that you can use this npm package to get a REST Session Key. On the other hand, the spring 18 release notes say ...
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
0answers
72 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
367 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
289 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
586 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
1k 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
370 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
0answers
1k 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
0answers
2k views

Lightning Date properties issues

I need to perform a simple business task. I need to alter date property before sending it to server to minimize server response time. I need to use LEX (Lightning Experience). I have declared my ...
5
votes
0answers
754 views

How to get apex:outputLink to work in Lightning Desktop correctly using target='parent'?

In Lightning Desktop we have come across an issue when using apex:outputLink that has a target of "_parent". The links will not work in Explorer or Firefox. The link works fine in Chrome. The ...
4
votes
0answers
117 views

lightning:recordEditForm issues onload and onsubmit function

I am frustrated with lightning:recordEditForm. Here is the description of the issue: Problem statement: I want to have a form where user can select fields of a custom object "Opportunity_Product__c"...
4
votes
0answers
32 views

How does one get the active app in Lightning?

In Classic, one can use code like this to determine the app the current user is currently working in public static String getActiveTab(){ String tabLabel; for(Schema.DescribeTabSetResult i : ...
4
votes
0answers
169 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 ...
4
votes
0answers
261 views

Summer 18 - navigateToURL Issue

i got another problem with the summer18 release regarding the URL changes. I use a visualforcepage to render a pdf that is liked to a button on a lightning component. The redirection works this way: ...
4
votes
0answers
55 views

Blank Page while viewing Report in Lightning Community using customer community plus license?

We have created a portal based on Lightning Community (Napili) template. We would like to allow users with "Customer Community Plus" license to access report using the following URL: https://<...
4
votes
0answers
410 views

Change password

I am trying to build a custom page with lightning components where the users of my community can change their own password. I want to do it with the site.changepassword method as described here:https:/...
4
votes
0answers
301 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 ...
4
votes
0answers
377 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 ...
4
votes
0answers
487 views

Add custom Javascript <script> tags to Napili and Lightning communities after Summer 17 release

After Summer 17 release the LockerService will disable Javascript tags in the community Header Markup and access to DOM from Lightning Components. If I would like to add a custom Javascript to Napili ...
4
votes
0answers
164 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. ...
4
votes
0answers
351 views

Lightning: how to get dynamic scrolling height work?

I am trying to implement scrolling in Lightning app with standard Lightning SLDS styles and it is not working. I tried both ui:scrollerWrapper and class="slds-scrollable--y" and neither of these is ...
4
votes
0answers
901 views

Lightning Components - <force:inputfield> Not working for certain field types?

Is force:inputfield not working for certain field types? I've put together a simple Lightning component I'm finding the following: Picklists - Are rendered as disabled (this is an issue I'm aware of ...
4
votes
0answers
848 views

Capturing save events on Lightning detail page inside a component

So I have a Lightning component on a Lightning detail page. Whenever a user updates some value on the record, I want to refresh this component. Basically want to pull in some fields based on the ...
4
votes
0answers
393 views

Embed visualforce page on standard layout shows up on New/Edit (Lightning Experience)

I've developed a visualforce page for a custom object on Lightning. When I embedded the page to the layout, it is showed in new and edit. I want that works as salesforce classic (show the visualforce ...
3
votes
0answers
20 views

Lightning datatable not loading data when scrolled to the bottom

I have created a lightning component which has a lightning:datatable that loads more data as I scroll down. The data loads fine when I use the component explicitly in an app. In the below picture ...
3
votes
0answers
49 views

lightning:recordEditForm. Override submit retrieve undefined on event.getParam('fields')

I had a working code on Winter 18 which override the standard submit event on recordEditForm component but it is not working on Spring 19. When I try to retrieve fields using event.getParam('fields'); ...
3
votes
0answers
39 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 ...
3
votes
0answers
78 views

Is there any way to know when the standard cancel button is clicked in lightning after calling e.force:editRecord

I want to do some modification when standard cancel button is clicked in lightning..Is there any event or any other way to get that?
3
votes
0answers
168 views

Submenu inside lightning:buttonMenu component

I have a lightning:buttonMenu with a few lightning:menuItem and want to display a submenu when hovering over one of the options. Having a hard time understanding how to create a submenu. Was ...
3
votes
0answers
134 views

Cannot read property 'appendChild' of undefined

I want to show the geoposition on a leaflet map lightning component. I enter an Id and get geolocation data accordingly. When I first enter an Id everything works fine, for the second time it shows ...
3
votes
0answers
467 views

Is it possible to show formatted rich text in lightning:carousel?

It appears like lightning:carousel requires lightning:carouselImage for each panel within it. Unfortunately lightning:carouselImage is not documented at all as of this ask. FAILS: <lightning:...
3
votes
0answers
403 views

How to handle error of lightning:recordForm

Right now, I am aware of the onerror event of the recordForm tag. However, in the controller, event.getParam("errors") doesn't return anything. This is how the controller code looks like: ...
3
votes
0answers
218 views

How do we stop flickering on onmouseover and onmouseout

There are list of rows, When I hover on particular row this popup should be activated. How this can be done. Whenever I hover i get data popup works fine but it flickers a lot :( This is my component....