Stack Exchange Network

Stack Exchange network consists of 175 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

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.

0
votes
2answers
11 views

How to Add LWC to lightning App Builder

I created one simple LWC component and when I tried to add it in Lightning App Builder I'm not able to see it. So how to add LWC in lightning app builder.
0
votes
0answers
7 views

How to navigate from one Lightning component to another in communities?

I was trying to use force:navigateToComponent and Lightning:Navigation for navigating to a new component. Both seems to not work in communities. Is there any work around?
5
votes
4answers
5k views

Display Apex Exception message nicely in Lightning toast

My Apex controller method might throw a custom exception @AuraEnabled public static Id myAction() { // Provoke exception Integer foo = 10 / 0; and I want the toast to display it properly ...
0
votes
2answers
22 views

Link in Lightning Component Not Firing

I have two links (not buttons) that I'm trying to insert in a Lightning component, but having problems firing them. I start with basic HTML <a> elements and give each an onclick attribute: <...
1
vote
1answer
444 views

Lightning component - event.preventDefault()

I have a lightning component which has a form using lightning:recordEditForm and when the user clicks submit I call an apex method which can return error message. So if the method returns an error ...
0
votes
0answers
25 views

Lightning aura event handler error

I am using a custom application event (ackRequest) that I use to validate all components in a page. This event is fired in the afterRender of the community layout component. The event is handled ...
0
votes
0answers
20 views

How do I able to set login landing page according to user's profile

In order to implement my question, I tried overriding SiteLoginController like as below. global PageReference login() { User getProfile = [SELECT ProfileId FROM User WHERE Username=:username]; ...
2
votes
0answers
836 views

How to Show Lightning Modal pop up in custom list view button

I need to display a lightning modal pop up in list view of custom object, we tried by creating the List button in the object and VF page which calls Lightning modal pop up but the problem over here ...
1
vote
1answer
17 views

Lightning input percent - 0% not displaying

I have a inputNumber with a percent. If I fill with a number its ok, but I fill with 0, the field show only the icon %. I want to show or 0% or nothing. <ui:inputNumber class="slds-input columns" ...
0
votes
0answers
14 views

How to get object metadata like recordtypes entirely clientside in a Lightning Component?

I am working on a Lightning Component and want to create a record using lightning:recordEditForm. using lightning:recordEditForm is great because it allows us to create records without Apex. However,...
0
votes
0answers
44 views

lightning-input-field [Lightning Web Components]

I am currently trying to make a table where I use the lightning-record-edit-form. I am trying to make the helptext icon disappear (without deleting it on the field itself), without any luck.. Can ...
2
votes
1answer
341 views

Change the Case tabs to the Subject instead of the Case Number in Lightning(Service Cloud)

Is there anyway to change the Case tab title to the SUBJECT instead of the CASE NUMBER in Lightning(Service Cloud)? Please see below snapshot. Your help will be highly appreciated. Thanks in ...
0
votes
2answers
201 views

Lightning Experience - Edit override with nooverride option

We need a conditional override in Lightning Experience which may return a custom component/VF page or will return the standard edit behaviour. We've been investigating various options for returning ...
0
votes
1answer
22 views

RadioGroup not working in iteration

<aura:iteration items="{!v.somelist}" var="item" indexVar="rowIndex" start="{!v.Start}" end="{!v.End}"> <lightning:radioGroup name="{!'radioGroup'+item.rowIndex}" ...
3
votes
2answers
71 views

Loading the leaflet Map in Lightning Web Component

When I am trying to load the lightning web component map is not loading. <template> <div id="map" lwc:dom="manual"></div> </template> import { LightningElement,api } from '...
0
votes
1answer
29 views

<aura:iteration> and input or <lightning:checkboxGroup>

I have a custom object Topics__c that I want list out like so: The text is the topic name which is a String data type. So I have to add in a checkbox along side the Name field. I have been doing some ...
0
votes
2answers
103 views

On click of save button, onsubmit function is not called

I have used the lightning:recordEditForm. On click of the save button, the onsubmit function is not called. If the submit function is called on the button onclick, then the record gets saved, but the ...
3
votes
1answer
105 views

Google Recaptcha V3 Implementation in Lightning Web Component

I have requirement to add Recaptcha in Lightning Web Component component. I have used V3 of google recaptacha. I have added https://www.google.com/recaptcha/api.js url in static resource and ...
0
votes
2answers
23 views

How to validate all fields with different aura:Id?

I am trying to validate all fields when the user click's on the submit button. Issue: I had to maintain different aura: id's for the lightning input elements, due to some other logic needs to be done ...
0
votes
2answers
22 views

standard Save button in event detail edit page is not visible when i edit the details. How to save the record now?

I have one basic question which i'm struggling to get it sorted out. Please help out with your inputs. I have a custom profile, and the profile has all access to create, edit, and delete the event ...
0
votes
0answers
11 views

Custom Visualforce Action with Redirect to External Site not Opening in Chrome, Only IE!

In a bit of a pickle right now. In Classic, one of our developers made a Visualforce detail button on the Contact object. The VF page referenced is merely a redirect to an external site, but its ...
1
vote
0answers
17 views

Link with Embedded Icon Not Working in Lightning Component

I have a menu in a Lightning component with menu items as links (<a>). Embedded in the <a> is an icon next to the link text. When clicking on the link, if the cursor clicks on the icon in ...
0
votes
0answers
14 views

LEX console method issue - lightning:tabClosed

I am trying to utilise the lightning:tabClosed event within my LEX component on a Case. I want to be able to get the record ID for the tab that was closed, as I need to do some processing using that ...
5
votes
2answers
6k views

Add button to related list in Lightning

For current customer we use Lightning only. I have a requirement to put a button to a related list that would have to redirect to Lightning Component. I know that it is possible to redirect to ...
1
vote
3answers
4k views

Show more than 4 columns in Salesforce Lightning Related Lists

As we have begun adopting Salesforce Lightning for our org, it seems we have run into to issues relating to Related Lists on a custom object record: 1) We cannot show more than 4 columns in a related ...
0
votes
1answer
350 views

Case Owner Name not showing in Lightning ListView

I edited All Open Cases in Lightning Experience to display Case Owner but that does not even show as an option in fields to select. I switched over to classic view and added it to the fields selected ...
0
votes
0answers
14 views

Visualforce pages vs Community pages [on hold]

I'm trying to understand how Visualforce pages and Community pages are being used by customers. We'd like to use Salesforce to create public facing sites where we can dictate the look and feel as ...
-1
votes
1answer
32 views

Using HTML skills in development [on hold]

I have knowledge of HTML / CSS and some basics of JavaScript, where and how can I use this knowledge in developing on the Salesforce platform? I know VisualForce and Lightnin Web Components use HTML. ...
1
vote
1answer
345 views

Lightning:Navigation is not working

I am exploring the use of the new Lightning:navigation component but it is not working so I'm trying to figure out what is the issue. First Component - TestURLParameterComponent.cmp (API 43) <...
0
votes
0answers
23 views

<lightning:Select in Iteration

I would like to display the fields and provide the option to Map the Salesforce Lead fields. I would like to get the selected fields values along with key while I'm click the Submit button in the ...
0
votes
1answer
16 views

Missing fields on my contact page layout when I go to lightning

When I use classic I am able to log call and activities on my contact page, however, when I switch to lightning, I don't have the same fields. I am unable to add any new activities on my contact page, ...
0
votes
0answers
9 views

Can you repurpose the 'Add to Call List' button from the lead object for a custom object? [on hold]

I would like to add the 'Add to Call list' button (available standard on the lead object) feature on a custom object but are having a hard time doing so. Our custom object has the ability to 'select' ...
0
votes
0answers
12 views

Is it possible to design a custom component to have the 'add component here' capability? [duplicate]

For example, if I drag the standard tabs component into a lightning page, I'm given the option to drag other components in there, whether they are custom or custom (managed). Is it possible to mimic ...
2
votes
2answers
72 views

Checking if rendered lightning:input components are populated

I am building a Lightning Component form with sections. I want to display a big check mark icon on the section if all the rendered lightning:input fields are filled out. I have successfully tested ...
2
votes
1answer
353 views

Is there a way to react to a related list being changed in lightning?

Simply put, i need to make a lightning component, that depending on related objects to the one whose page i'm in, has different functionality. If the user creates a new related object via the related ...
0
votes
0answers
9 views

Issue updating the UI of a Case detail page in lightning on click of a custom button [on hold]

I created a custom button with content source as a visulforce page. This vf page has an extension controller which updates the case owner to the current logged in user. On click of the button the ...
0
votes
0answers
12 views

Files accessibility under Accounts

We are migrating to Lightning and we just converted Attachments to Files. Now we recently noticed that, Files associated to Opportunities are not available to view under Accounts which was default ...
0
votes
1answer
21 views

Is it possible to add a checkbox to a Rich Text Field in Lighting?

I am trying to display a terms and conditions agreement using a rich text field and display that rich text field in a lightning component using <lightning:formattedRichText value="{!v....
0
votes
0answers
23 views

How to display image in Data table of lightning component [duplicate]

I am using data table in lightning component.I am referring one column in data table as formula field.That formula field returns image of text type.When i display that field in Lightning component, ...
-2
votes
0answers
23 views

Get maximum greater key values with object of array [on hold]

let arr = [{ key = 1, name = 'testaa', dept = 'ggg' }, { key = 1, name = 'testaa', dept = 'ggg' }, { ...
0
votes
1answer
35 views

How to avoid intermediate screen while calling lightning component

I am calling lightning component inside the quick action button. on click of quick action button all my lightning component will wrk.But i dont want the intermediate screen to pop up on click of quick ...
0
votes
0answers
84 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....
0
votes
1answer
27 views

How to display Formula field which displays image using lightning

I have created one formula field which displays image of return type text.In classic the image is displaying.But in lightning the image is not showing up instead it is showing what ever the url i have ...
0
votes
1answer
22 views

Remove selected values from the multiselect picklist in lightning

I have a lightning component which is basically a filter having two buttons, Apply All and Clear All. I would like to remove the selected values on a button click "Clear All" The filter looks like ...
1
vote
1answer
16 views

How to call flow in lightning component

I need to run/call a flow in lightning component.i am getting the below error message : Uncaught Error in $A.getCallback() [[object Object]] Callback failed: serviceComponent://ui.interaction.runtime....
0
votes
0answers
32 views

Cant we setup lightning page for site home page?

Can we add lightning page in Active Site Home Page while setup sites? Please find image for more details. What about communities. is there any Salesforce documentation for this ?
0
votes
0answers
41 views

Button text coming in two lines and increasing the length of lightning button

i have a lightning component button which has a longer text and it is going in two seperate lines and forming the following structure. Is there any way to keep it in a single line? i used the ...
0
votes
2answers
387 views

Lightning Input Field Date validation

I have a <lightning:inputField aura:id="table-cell" fieldName="Date_of_trx__c" variant="label-hidden" id="{!indx}"/> And i need to make validation on it, to accept maximum date of "...
0
votes
0answers
20 views

open note dialog from lightning component

is there any way to pop open the standard notes dialog from a custom lightning component? to explain: all the salesforce standard components open notes in a dialog at the bottom right of the screen....