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,150 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
5
votes
0answers
4k 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
1answer
1k views

Embedding Tweet on Lightning Component 2

My component: <aura:component description="TwitterTile"> <ltng:require scripts="{!$Resource.Lib + '/js/twitter.js'}" <blockquote class="twitter-tweet" data-lang="en"> <...
5
votes
0answers
833 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 ...
5
votes
1answer
288 views

Rendering order in Lightning Community

I'm working on a very styled Lightning Community (we're using Napili, but with a custom Theme, custom Layouts, custom CSS) and one thing which looks odd is the rendering order when you load a page. ...
5
votes
1answer
4k views

Deploy/retrieve lightning community page variations with metadata API?

I could not find an answer to this question in the documentation or by looking here. I have built a page variation in my lightning community, and then exported it. I am fine including that in a ...
4
votes
0answers
300 views

Lightning record page printable view or PDF

I need to create a printable view (or PDF) of a record's Lightning Page (think "tear sheet") that includes a compact "details" section, compact related list tables, and a custom ...
4
votes
0answers
45 views

When will ::part be available and will header cells in lightning-datatable be allowed for overriding?

I am specifically asking about the answer provided here We have many projects which have community implementations. As it is well known that communities tend to have their own themes and styles, the ...
4
votes
0answers
271 views

Why can't I skip LWC namespaces in namesspaced scratch org

I have an LWC component as part of a managed package. To support Classic its also embedded inside VF page using a Lightning App(Aura): <apex:page standardcontroller="Account"> <apex:...
4
votes
1answer
1k views

lwc getFieldValue from a custom external object

I am creating a LWC that handles data from an external object. I have access to the recordId through @api recordId;, but I need to get the externalId from this object as well. Currently, I have call ...
4
votes
2answers
2k views

Salesforce: Drag & Drop not working in lightning web components or drop events are not triggering

I have a Lightning web component to drag one div into other dropzones (div). But the ondrop & ondragover events are not firing. Here is my code <template> <div class="draggable" ...
4
votes
0answers
828 views

How do Domain Driven Design principles apply to Salesforce development? (was: Is abstracting away SObject model a good practice for Apex Controllers?)

Domain-Driven-Design principles are largely adopted in companies embracing microservice architecture and one of the key ideas is to separate the data model of the persistence layer from the business ...
4
votes
1answer
3k views

Hover over a lightning : datatable column cell

I have a lightning : datatable which has a field called name, Now I plan to have an initial width for this column which will truncate the value, The issue is I want to make it like if I hover over the ...
4
votes
0answers
478 views

"Browsing session has ended or is invalid" when loading Canvas in DX scratch org

I followed this Salesforce tutorial to get a Canvas connection working in a DX scratch org. I'm quite sure I configured everything right but the Canvas on the page always shows Canvas - ...
4
votes
1answer
836 views

lightning global search url

Is there a readable URL for global search in Lightning, similar to Classic that use &startURL=/_ui/search/ui/UnifiedSearchResults?str=valueToSearch ?. I want to use this URL to add to Chrome ...
4
votes
1answer
933 views

Non-http url link from HYPERLINK('notes://example.com', 'View') is not opening

We have a text formula field with following code: HYPERLINK("notes://example.com", "View") When using Lightning Experience, thin link is not redirecting to address. In Classic Experience new tab is ...
4
votes
0answers
3k views

Lightning:input[type=number] value attribute is string instead of number

I encountered a fascinating bug (or feature) in the lightning:input[type=number] component and I was wondering if any of you have had this problem before? I'll describe what happens: My lightning ...
4
votes
0answers
99 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
1answer
264 views

Can I update related Parent and child object fields using Lightning Data Service without using Apex controller?

I know we can update fields using Lightning Data Service without using Apex controller. Can I also update related Parent and child object fields using Lightning Data Service without using Apex ...
4
votes
0answers
381 views

force:refreshView and Visualforce

I am hitting this known issue where edits in a Visualforce page once returned to the record are not reflecting in the UI in Lightning Experience. I can't refactor this into a Lightning Component ...
4
votes
0answers
1k 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:...
4
votes
3answers
3k 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: ...
4
votes
1answer
908 views

cssClass attribute in lightning:overlayLibrary not working

I am looking to implement a large modal using lightning:overlayLibrary. Please see .slds-modal_large size option demonstrated here for clarity. But I am having trouble getting the cssClass attribute ...
4
votes
0answers
350 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
3answers
4k views

Is there a way to style a lightning visual flow?

Running a lightning flow - I wish to style the look and feel of some labels and inputs - background, colors etc... Where can I inject my CSS to over-ride the default styling?
4
votes
1answer
796 views

recordEditForm with inputField on lookup does not work properly when searching or creating a record

Is it just me or is this an error in the salesforce standard lightning components? Here is what happened up until now: I want to create a new record with lightning:recordEditForm. This record has a ...
4
votes
0answers
394 views

Salesforce Lightning and the EmailAuthor

We want to switch from sfdc Classic to Lightning. But we are using a lot of custom fields with links (formula fields with hyperlinks) to refer to visualforce pages which are calling different apex ...
4
votes
0answers
332 views

How to use lightning:inputField in a list view component for mass edit?

I got lightning:inputField and lightning:outputField to work within the context of a detail view by utilizing lightning:recordEditForm (by passing in recordId and objectApiName), but is it possible to ...
4
votes
0answers
173 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
191 views

Can an unlicensed user access a Lightning component from a managed package?

We have a Lightning component in a managed package. This component is meant to be used on Community pages. When the Community page is accessed by a Licensed user then everything works fine. This is ...
4
votes
0answers
814 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
2k views

Lightning Component not Scrolling in iphone on Salesforce1 App

I have created a lightning Component which implements "force:appHostable". Now I have added this component into Lightning Component Tab and add it into an App in Lightning Experience. This tab with ...
4
votes
0answers
2k views

Is /one/one.app#/alohaRedirect/apex/vfPageName ideal solution to open vf page in lightning experience?

We have an issue wherein when a user is redirected to our application from an external point such as an email link and if the user is lightning enabled then the custom VF page does not display the ...
4
votes
1answer
3k views

download the salesforce lightning component content into a pdf

I have an issue in salesforce lightning that how can I convert the following Salesforce lightning component into PDF. We have working on something that we are able to convert the HTML page into PDF ...
4
votes
1answer
314 views

How to reference component value within the markup

Say I have a component in the markup: <lightning:select aura:id="mySelect" ......> No value attribute is set as if it defaults to a value it does not set the value of the attribute to the ...
4
votes
0answers
223 views

Is it possible to pass dynamically created attribute value from Lightning Component Helper to Lightning Tokens?

I would like to pass dynamically created attribute value from Lightning Component Helper to Lightning Tokens, and subsequently use the same in CSS. I'm trying to avoid using JavaScript to set style ...
4
votes
0answers
806 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
1answer
683 views

Refresh parent visualforce page after standard action is successfully completed

I have a visualforce page with following code: <apex:outputlink value="{!URLFOR($Action.Custom_Object__c.Edit, id_of_object,[retURL=URLFOR($Page.The_page)])}" >Edit</apex:outputlink> ...
4
votes
0answers
991 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
1k 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
2answers
4k views

How to show pop up window in lightning

I have a component, which has an image. Onclick of image I want to show up a popup window and in that show values and button. I am able to extract values on click of image, but not able to find how to ...
4
votes
0answers
508 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 ...
4
votes
1answer
506 views

Lightning Locker Service & Viewport header

Since LockerService, the solution to target Phones & Tablets with lightning , described in the following question, doesn't work anymore ( no more access to the main document headers ) How to ...
3
votes
0answers
100 views

`lightning-formatted-date-time` 24-hour time bug

How do I display a time in 24-hour format? The documentation suggests hour12="false" should do it, but this isn't working, as detailed below. foo.js: import { LightningElement } from "...
3
votes
0answers
167 views

How To Create a Pinned Region in Custom Page Template

In a Lightning App, I've already created a custom page template successfully - relatively straightforward. Now I need to create a custom page template that includes a pinned region, like in some of ...
3
votes
0answers
615 views

Test Class for LWC Component

I have a LWC Component which is used for record upload process. Below is my LWC Javascript code: import { LightningElement, api } from 'lwc'; import file1 from '@salesforce/apex/customLwcController....
3
votes
0answers
715 views

Creating Pop up (modal) window from a related list button

I am currently new in Lightning component, I am trying to create a pop up (modal) of a screen flow from related list button. As far as I understand, the way to achieve this is by creating: List ...
3
votes
1answer
67 views

LWC -Get PicklistOptions based on the RecordTypes

Let's Consider I have One Picklist Field, based on the RecordType the picklist options are there. I am using lightning/uiObjectInfoApi to get ObjectInfo in that I will get a list of RecordTypeInfos -...
3
votes
0answers
115 views

Link in the body of notification

Question : Is it possible to embed direct link in the body of the notification? I am using chatter ConnectAPI to send notification. I tried to add the link by using ConnectApi....
3
votes
0answers
519 views

Lighting Data Table with large data set lagging on chrome browser

So I have this requirement to show folder and report as a hierarchy in LWC (used lightning tree for the same with custom icons for folders and reports.) and on click of any report, we fetch the report ...

1
2
3 4 5
43