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

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
0answers
5 views

Lightning flow builder

I had to debug an existing flow and ended up looking at this crayonish flow which took my brain a few minutes to remap the existing setup. Purely Aesthetic point of view/OCD point of view too. 1) IS ...
0
votes
1answer
21 views

How to change the color of lightning spinner?

<div class="demo-only" style="height: 6rem;"> <div role="status" class="slds-spinner slds-spinner_medium"> <span class="slds-assistive-text">Loading</span> <div class=...
0
votes
1answer
21 views

Visualforce page does not have valid controller for use with action

I am doing unmanaged package containing App within it.After I press upload button I get the below error as "Visualforce page does not have valid controller for use with action" Any help is ...
0
votes
0answers
17 views

Change language in community (custom component)

I need to change the language of my Salesforce Community. We can add a standard component (Language Selector --> https://help.salesforce.com/articleView?id=rss_language_picker.htm&type=5), but it ...
-1
votes
0answers
16 views

Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'index.html' in Angular 4 application using Lightning Container

My angular 4 application is running perfectly standalone. I tried to run with Lightning Container in Salesforce but I got error as in screenshot - Same application is working in iframe as well.
0
votes
1answer
13 views

lookup field is not getting populated in URL hacking in custom related list button in lightning

lookup field(Master) is not getting populated in URL hacking in custom related list button(Child object) in lightning. It is getting populated in classic. I have one parent object named Sample ...
1
vote
1answer
6 views

Lightning out - How to catch errors from the embedded component

I have a lightning out application. I can easily catch backend errors and show it in the front-end via alerts or toasts. However, I wanted the host application to have a way to capture the error ...
0
votes
0answers
13 views

Refresh standard page in Lightning Experience

I have a formula data field on an object which is not reflecting updated values when viewing it in Lightning. This is directly related to the known issue https://success.salesforce.com/issues_view?id=...
1
vote
0answers
15 views

Wrapping long text field on custom lightning component

I have created a custom lightning component to add on a tab on detail page. It contains field from custom object in a list form/table. The field call_comments__c is a long text field and it needs to ...
3
votes
0answers
30 views

ltng:require style issues in preview as a guest user in community

I think I've found two issues with the lntg:require tag, especially with the styles attribute (when previewing as a guest). First, some context: Let's say I have a CSS file as a static resource ...
0
votes
0answers
16 views

lightning:Map component not loading in communities after Spring 19

I have created a lightning component which host the code for lightning:Map. The component is loading fine in Salesforce but in Communities, I am having the following error: Access to resources ...
2
votes
1answer
16 views

Lightning component not being displayed in home flexipage

I'm working with a testing org and I have put one of my lightning components inside home flexipage. The point is my code is running (cause I put logs in js) but it's not displaying anything. Extended ...
0
votes
0answers
16 views

How to check if two lightning community is configured 'Visual Force community' & 'Lightning Community' in which user is currently logged in? [on hold]

I have two communities configured 'visual force' and 'Lightning community' so when user is using visual force community i want to redirect user to URL-1 but if user is using lightning community i want ...
0
votes
0answers
12 views

Add error displays message as well as updates record in Salesforce lightning

I have the following piece of code in my case before trigger. approvalStatements.get(pi.TargetObjectId).addError( 'Operation Cancelled: Please provide a reason ' + ...
0
votes
0answers
16 views

Icon with text/numbers in Lightning Component [on hold]

I have to do something like this in Lightning : I am currently using Font Awesome based on the example here, but as per my requirement I need to use Lightning icons to accomplish same. I need to do ...
2
votes
1answer
13 views

How to place custom lightning button in Standard button division?

I have used a lightning button in the component. I have to use both SUBMIT and Cancel Buttons. But Already Cancel Button Popping up. Either I have to remove the Cancel button and add Custom Cancel ...
0
votes
1answer
46 views

Pass an ID for Navigation in a Lightning Web Component

I am working on my first, and pretty simple, Lightning Web Component. The component lives on the contact record page and displaying information from a custom object with a parent lookup relationship. ...
0
votes
1answer
16 views

How to Use same variable values in different methods of lightning component controller?

I am using the Parent-child concept. I am calling one component from another component. Component(Parent): <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,...
0
votes
0answers
12 views

Service Setup not available in Lightning experience

Service Setup option is not visible in lightning experience. I have logged in via system admin profile and checked but the option isn’t coming.
0
votes
0answers
12 views

Lightning datatable body component [duplicate]

I am not sure how to use the body component of the lightning datatable. This is how I have it so far. <div style="height: 300px"> <lightning:datatable columns="{! v.columns }" ...
0
votes
1answer
35 views

Lightning Components: Call init method of a child component from a parent component

I want to call the init method of a child LC from a parent LC. I tried to use aura:method, and call the init method from a parent method. ..... <aura:attribute name="userContact" ...
0
votes
1answer
36 views

SFDX - Lightning Web Components trailhead issue - Scratch Orgs being created as Sandboxes

I'm working my way through the "Lightning Web Components Basics" trailhead and I've been directed to the following resource: https://github.com/trailheadapps/ebikes-lwc#installing-e-bikes-using-...
0
votes
0answers
39 views

How to create a pill container with typeable using Lightning Web Components (LWS)? [on hold]

How to build this email pill component using using lwc ? Expected Output with pills: Suggestion on typing like salesforce combobox: CustomEmailComposer.html <lightning-pill-container items=...
0
votes
1answer
19 views

SLDS table content is not truncating the long text

SLDS table is not truncating the long text in table column. I have given slds-truncate class as well but its not working. <aura:component implements="force:appHostable,flexipage:...
0
votes
0answers
11 views

serial number not displays in Lightning:ListView [on hold]

Showing Lead listview in lightning component but serial number is not displaying in Lightning:ListView
0
votes
0answers
17 views

How to make a single Edit button for the whole record using lightning-record-form using LWC? [on hold]

How to use lightning-record-form in LWC to create a form where I can edit the whole form with just one EDIT button rather than one EDIT button for every field on the record.
1
vote
1answer
14 views

Lightning Div with multiple if condition

this is my div's onclick code: onclick="{!if(and(calendarDay.active,v.enableCalendarClickedEvent,v.calendarClickedEventType=='calendarDay'),c.handleClick,'')}" The problem is that only the first two ...
-1
votes
0answers
20 views

Within the same LWC, how to make a Create New Record button? [on hold]

I want to add a Create New Record button in this given LWC.
0
votes
1answer
30 views

Is there a way to change the value of a picklist on a vf page when it is copied from another picklist?

So I have a form that has 2 Address divisions. When the checkbox is checked the field values from one div copy to the other div. There is a country picklist in both the divs. But the value of that ...
1
vote
1answer
30 views

Display lighting:spinner component during component render cycle

Examples of lightning:spinner usage that I've seen are used for delays in controller logic processing, ie waiting on an asynchronous callout. But what I'm trying to solve for is being able to show the ...
0
votes
0answers
12 views

Getting an error when clicking lightning:radioGroup - in Android Mobile, Spring 19 release

Everytime I click a lightning:radioGroup, a popup appears - with the error message: "Sorry to interrupt". This is new to Spring 17. It used to work in the previous release. The code looks like below:...
0
votes
0answers
12 views

CSS Style is lost for overflow layoutItem

I'm using lightning:layoutItem to display a list of records. There are 17 layoutItems inside a lightning:layout. However, there is a bug, that the CSS style is not applied to those layoutItems outside ...
0
votes
0answers
10 views

Can a record returned on a screen flow be opened in a new tab in lightning console?

I have a screen flow that should return a list of records when searched based on Account's email id or phone. I want to be able to click on the record(s) returned in the list and those records should ...
0
votes
0answers
13 views

UnsavedChanges component - what parameters can be specified in options?

Spring 19 introduced new lightning:unsavedChanges component, which works very nicely. However, I would need to manage buttons on modal that is shown when user is trying to navigate to some other page ...
0
votes
0answers
13 views

saving an object array field value inside aura:iteration of lightning :carousal

Scenario : Retirving 4 product records including 3 fields.id, image(richtext field) and name.Displaying image in lightning carousal and also name as the header..Now I want to hold the product id , ...
1
vote
1answer
21 views

Custom Link to Download/Export Detail Report in Lightning

My Org uses Salesforce Lightning. I am trying to develop a Custom Link for an SF object that redirects to a report, modifies a filter through the URL and automatically downloads the .CSV file of that ...
0
votes
1answer
20 views

Auto populate recipients in DocuSign Envelope using custom button (SFDC Lightning)

We have a custom object called "Legal Contracts" and we have DocuSign linked to it. I need to customize a custom button so that it auto populates the DocuSign Envelope's Recipient section using the ...
1
vote
0answers
20 views

Entire page appearing twice in the DOM in LEX?

So the two snippets in this screenshot are the same page loaded in Lightning. This is the "main div" as I can see it that holds the main contents of the page. I promise it is the same page, a standard ...
0
votes
1answer
17 views

Building Angular and React components

I have been through tons of documents, searching the web I came across some resources but it hasn't really helped me. I want to know how to ship an Angular and a React application (step by step) to ...
0
votes
0answers
19 views

onBlur for lightning:input

Trying to implement logic for lightning:input on onBlur case. I need to close this input, when it lose focus, and if I click related buttons for this lightning:input(Confirm/Cancel), want to have some ...
0
votes
0answers
18 views

lightning:navigation not working on second launch

I have a custom lightning component that navigates to another lightning component via lightning:navigation. If I try this once it works fine but if, without refreshing the page, I try launching this ...
0
votes
1answer
23 views

How to reload a custom lightning component within a lightning page?

I have created a lightning component for a lightning page. After the final save method, I am able to refresh another related list in the lightning page using 'e.force:refreshView' but I am not able to ...
0
votes
2answers
25 views

Salesforce Apex-controller server side won't run - Lightning Component

I'm having an issue where .setCallback is not functioning . Everytime I delete an account it doesn't work. Here is my attribute <aura:attribute name="deleteholder" type="String" /> and here ...
0
votes
1answer
21 views

Hide the default row number from 1st column

I need to remove the 1st column from the lightning table which is the row number but not able to do it. My .cmp looks as follows <aura:attribute name="recordId" type="Id" /> <aura:attribute ...
0
votes
1answer
23 views

Lightning Component Helper - Passing Data

I have been reading and I can't seem to understand one part of the component - controller - helper - apex combo. If I have a lightning component that is connected to an apex controller...I am ...
0
votes
1answer
32 views

How to pass record id From VF page to Lightning component?

VF Page: <apex:page standardController="Opportunity" extensions="P2EcRequestType" lightningStylesheets="true" standardStylesheets="false" > <apex:slds /> <apex:includeLightning /> &...
0
votes
0answers
21 views

Custom Case Change Owner Button for lightning [closed]

My requirement is, while transferring the Case Ownership I want to restrict QUEUE Visibility based on USERS COUNTRY. Ex: if Current Owner is from France then he should be able to see only France ...
0
votes
0answers
21 views

Communicate new Lightning record context to Canvas App [closed]

I want to embed a Canvas App into the Lightning utility bar that detects the current record context and sends the Canvas App the recordId and another other relevant fields. When loading the first ...
1
vote
2answers
38 views

Undefined value from event

I am trying to get the value of (firstName, lastName, emailAddress, mobile) from the parent component and use it in my child component but when I set it into params and logged the values, I always got ...
0
votes
1answer
19 views

Action failed: c:DateValidation$controller$doAction [inputCmp.showHelpMessageIfInvalid is not a function]

I trying to validate ui:inputDate along with lightning:input of type Date. But I'm getting the error as Action failed: c:DateValidation$controller$doAction [inputCmp.showHelpMessageIfInvalid is ...