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.

-1
votes
1answer
71 views

Need help regarding the new Lightning flow builder (lookup field)

so as the title says I'm trying to populate a lookup filter when inserting a record using a Flow, I already created the lightning component to serve as a Lookup field and I was able to show it on the ...
0
votes
1answer
50 views

Unable to create a managed package which has a component with lightningQuickActionWithoutHeader interface

Getting the following error - You can only create Lightning Component Quick Actions for Component Bundles containing a component that implements force:lightningQuickAction and has no required ...
0
votes
2answers
22 views

Set a value on a field of a object with lightning component

I develop a lightning component where I use a object as an attribute. In my lightning controller, I would like to set a value on that object but it doesn't work, nothing happened.. This is my code: ...
1
vote
1answer
32 views

Lightning Email Templates Deployment

I have been reviewing the documentation for Lightning Email Templates and it does not look like they can be deployed from one org to another. I have been unsuccessful retrieving them from the Metadata ...
1
vote
2answers
33 views

How to identify community type using apex controller?

I am working on Salesforce community. where I am getting one issue. Here is my issue. I have configured 2 communities Lightning community Visualforce + tab community I have one common visual ...
0
votes
2answers
25 views

How to enter the seconds in lightning input date-time

I don't know how to enter seconds as well in the date-time field because of lightning input takes only hours and minutes <lightning:input type="datetime" name="input1" label="Enter a date/time ...
0
votes
1answer
25 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
59 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
30 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
1answer
49 views

Change language in community (custom component) [closed]

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
44 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
28 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
11 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
20 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
42 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
45 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
1answer
74 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
22 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
14 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 ' + ...
2
votes
1answer
21 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
204 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
24 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
19 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
14 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
108 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
79 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
1answer
32 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:...
1
vote
1answer
20 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 ...
0
votes
1answer
33 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 ...
2
votes
2answers
77 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
14 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
11 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
28 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
19 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 , ...
2
votes
1answer
57 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
54 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
22 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
24 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
51 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
25 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
24 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
36 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
2answers
54 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
29 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
79 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 /> &...
1
vote
2answers
61 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
27 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 ...
2
votes
1answer
45 views

lightning:fileupload issue in salesforce1

I am trying to upload/attach files to a record using the lightning tag 'lightning:fileUpload'. I have used this tag inside a component and used the component inside an App It works fine when ...
0
votes
1answer
23 views

Setting limit into Datepicker

I am presently using the following command to select date by the datepicker:- <ui:inputDate aura:id="startdate" format="MM/DD/YYYY" class="field" value="{!v.StartDate}" displayDatePicker="true" /&...