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
vote
0answers
29 views

How to prepopulate Address field in lightning:inputField

I need to prepopulate fields in lightning:recordEditForm and then get their values to save using Apex (without submitting form itself). What I've already tried: ...
2
votes
1answer
24 views

Record Type Selection in LWC

I'm trying to create record Type selection screen in LWC, but getting this error afterRender threw an error in 'c:createContact' [Cannot read property 'recordTypeInfos' of undefined] HTML: <...
0
votes
0answers
15 views

Lightning report display problem when using Edge

I have a Lightning report with two group by fields and various fields in the details. The report is producing the correct data but does not display correctly when using the Edge browser. For ...
0
votes
1answer
21 views

How to hide checkbox for specific records or only to parent rows in lightning treegrid

I would like to hide the checkbox only for parent rows . I am not sure how to achieve it. I went through the lightning library but I couldn't find any information related to it. <lightning:...
0
votes
2answers
45 views

Set picklist field on object using Lightning Data Service

I have a field, Region__c, on my Case object that is a picklist. I am trying to set this field in JS using Lightning Data Service. When using component, set it doesn't seem to be sticking. Any ideas ...
0
votes
0answers
13 views

AccordianSection name property is dynamically not changed, leading to serious problem in iteration

Hi I am working on a problem where I have multiple records of an Object to be shown and each of these records, will have many child records of It's Child Object. I have chosen AccordianSection to ...
1
vote
0answers
18 views

Link to new SObject page from list view button in Lightning with defaulted fields

My org just recently switched from Classic to Lightning, and there's one limitation I'm having a lot of trouble working around. Before the transition, we had a lot of URL hack buttons linking to the ...
0
votes
1answer
25 views

Not able to uninstall Managed Package because of community

I have a managed package (Chargent Anywhere) which consist a lightning component named "Chargent_Payment_Central". I have a community in my org and that community is not using "...
0
votes
1answer
20 views

onLoad not been called in lightning:recordEditForm

I am having input fields inside my recordEditForm. When i try to run the component it's not calling the onload event handler. I don't want to put any lightning:inputField into it. Because I don't need ...
1
vote
0answers
31 views

Handling Success Save Event for LDS new record

I am trying to handle the success save event of LDS saveRecord method. I need only proper Id from the new record response. In DESKTOP it's working fine whereas in Mobile/Tablet i am getting improper ...
0
votes
0answers
20 views

An error in lightning date :

In lightning, i get this error in a date field : i have this error just on one field only in lightning and not in classic only in one envirement and not others java.util.GregorianCalendar[time=-...
0
votes
1answer
20 views

campinglistformcontroller.js can't insert form in database trailhead

I'm stuck at the last component Aura challenge, I managed the challenge but when I try to insert a form in the database it makes me mistakes. I tested with two submitform function ...
0
votes
1answer
17 views

approval process in chatter

I have created an approval process for an object. When sent the approval request to one of my users to approve a record, the user can't see the approval request in Chatter. I enabled the chatter and ...
1
vote
0answers
26 views

Error: [LWC error]: Invalid url value “”. Expected a non-empty string

Error Details I keep seeing this error in my Developer Console each time I load a page or a Lighting Component in my Lighting App. Please note there are no LWC components in the app. I see my ...
0
votes
0answers
19 views

How can i capture street value from Lightning:inputAddress when have multiple lines?

I am getting address info from a external system in below format: "street1":"", "street2":"", "street3":"", "city":"", "state":"", "country":"" which i am storing in a map attribute like below: <...
-2
votes
1answer
14 views

Redirect to Opportunity on save of task on the lead

The requirement is whenever a new task is created on the lead. The lead should get converted into Account/Contact/Opportunity and I am able to convert it using standard LeadConvert class But after the ...
4
votes
1answer
85 views

How to access child Web Component property from parent Aura Component controller?

I have an issue working on integration between Aura Component and Lightning Web Component. I have one nested Lightning Web Component in an Lightning Component. When I try to access the child I get ...
0
votes
0answers
21 views

Lightning UI issue

Facing Allignment issue in Lightning component,could any one please advice. <div class="slds-box"> <H2 class="slds-section-title--divider"> Outbound Information </H2> <...
0
votes
0answers
13 views

Salesforce Lightning (Console) - Text squished

I have (i think) a lightning console page where the formatting has changed for some reason. This has only changed for me, and not anyone else in my team. The text should appear as it does in the first ...
-2
votes
1answer
26 views

Problem with creating nested dynamic components

$A.createComponent( [ "c:LegalLegitimationDetails", [{ "accountId": accountId, "contextData": ...
0
votes
2answers
32 views

Access field values from JSON String in Lightning Component controller [on hold]

PFB Code. I want to validate few fields before save but not able to fetch field values from JSON string. saveFunction:function(component, event, helper){ //Production Year Details/...
0
votes
0answers
31 views

LWC scrolling doesn't work in sales force1 mobile app [on hold]

I have a quick action which opens a modal, when i use LWC component with SLDS in the modal , vertical scrolling doesn't work in Iphones .Any idea? ​​​​​​​ it works fine in the desktop and salesforce ...
0
votes
0answers
35 views

How to set the full width of an overlay footer? [on hold]

.THIS.slds-modal__footer{ width: 100%; } I am using lightning:overlay and I would like to change the width of the footer to full but I am unable to do so. Any pointers are appreciated.
3
votes
3answers
49 views

How to read lightning:recordEditForm Object instead of using API

I got 3 lightning:recordEditForm components on a wizard (3 pages handled by slds-hide/show) to capture details. At the last wizard page it must save first object, and 2nd object must get first object'...
0
votes
1answer
48 views

Is it possible to call an intranet or local server using a lightning component?

For example, if a local server outputs a JSON with sensitive information, and I can access it through my local network, can I access this data using a lightning component?
0
votes
1answer
38 views

How to call my dynamic component function inside aura:if Tag?

<aura:component controller="LController" implements="flexipage:availableForRecordHome,force:hasRecordId,lightning:hasPageReference,lightning:actionOverride" ...
1
vote
3answers
41 views

Need to change OutputField lable in Lightning Component [on hold]

in Lightning component, we are displyaing date for custom object using OutputField Ex: <lightning:outputField fieldName="ReceivedSerialNumber__c"/> API label for the above field is ...
0
votes
1answer
28 views

popup on case object edit page, when a picklist value is selected

Is there any way I can have a dialog box pop over on selection of particular picklist in the standard case object. My use case is: If the user selects one of the picklist value from the dropdown in ...
0
votes
0answers
11 views

Lightning Standard List View - select specific rows

I want to Select individual/multiple rows from a Standard Lightning Lead List View on click of a button in a Lightning Page that I've configured. What are my options ? I'm thinking using a List View ...
0
votes
1answer
24 views

How to use Wrapper classes in lightning component to iterate over wrapper class record list

I wants to use wrapper class object record list in lightning component and iterate over it to display the field values in all records as table. PFB the code that i have written. The problem response....
0
votes
1answer
40 views

Search/Filter functionality in a lightning table without using jquery. Response from server side will be json

Json response: {"rows":[{"vals":[{"val":"Abc Corp","cssClass":""},{"val":"GROUPA","cssClass":""}, {"val":"Eitan","cssClass":"responsiveHide"}, {"val":"9","cssClass":"responsiveHide"}, {"val":"$18.9K",...
0
votes
0answers
47 views

Adding window.addEventListener to Lightning Component

I'm working with the Google reCAPTCHA element and added it as an iframe to a Lightning component (this iframe method is to get around CSP issues in Salesforce): <aura:component implements="...
0
votes
0answers
17 views

Not able to get DOM of Audio tag in lightning component

I have a lightning component, which implements lightning:backgroundUtilityItem interface. In my lighting component, I have a audio tag, based on some event, it play a music. But on my event, I'm ...
-3
votes
0answers
19 views

Lightning Gantt Chart using chart.js [on hold]

Can someone provide me the code for Gantt chart using Chart.js and also the data should be coming from object(Ex: Project) with below fields Project Name Start Date End Date Duration Please help me ...
0
votes
1answer
17 views

Calling Embedded Lightning Component from the Parent Lightning Component

I have a Lightning component (parent), and it has another Lightning component embedded within it: <aura:component implements="forceCommunity:availableForAllPageTypes" access="global"> <!--...
0
votes
0answers
7 views

after adding product to opportunity line item, the product do not display until and unless refresh the page

I have Embedded the Visualforce page on the Add Product button in lightning experience. when I am adding the product to opportunity, after adding I need to manually refresh the page again to appear ...
0
votes
1answer
25 views

How to perform two different events after clicking on menu item in lightning? [on hold]

I am using lightning:buttonMenu. I need to perform two different actions after clicking menuitem. After clicking document name, redirect to another page.(1st event) After clicking delete icon, ...
0
votes
0answers
23 views

Salesforce Admin:Depending upon the value selected in multiselect picklist show their respective values in table format salesforce [closed]

depending upon the value selected in multiselect picklist show their respective values in table format salesforce eg. Name => department abc => IT xyz => ELECTRONICS lmp => MECHANICAL where when i ...
1
vote
1answer
41 views

Get Boolean result by String expression in APEX [duplicate]

I have a string conditions logic that retrieves values for a Map<String,Boolean> and checks if logic is true or false. For example my logic looks like: ((1A2)O3) Being A => AND and O => OR. ...
0
votes
1answer
24 views

How do I create a single Instance of an object and upload multiple attachments for that object in lightning?

When I'm uploading an attachment every time, on Clicking of the Save button which calls the function using javascript in Lightning Component, it creates an Instance of an Object whose ParentId I'm ...
0
votes
1answer
27 views

Lightning:recordform doesnt display record data

Lightning:recordForm doesnt work, recordid is passed correctly but no field data is being displayed. PFB my code for lightning component: <aura:component implements="force:lightningQuickAction,...
0
votes
0answers
15 views

How to stop autopopulating “To” field on case email?

When I try to compose new mail from case activity related list the To field is automatically populating the case contact mailId. How to prevent this from autopopulating in lightning
0
votes
2answers
41 views

Send value from component A (in one page) to component B (in another page), navigating to component B, and retrieving the passed value

I am trying to pass a value from one component (Component A) in a lightning app (Home page) to another component (Component B) in a different lightning app (App page). The components are not parent/...
3
votes
0answers
34 views

Continuation Apex Unit Testing - Lightning

With Summer'19 release continuation is available in Lightning. To make long running callouts. Continuation - Aura Dev Guide: https://developer.salesforce.com/docs/atlas.en-us.220.0.lightning.meta/...
0
votes
0answers
22 views

Add News Standard Component to a Custom Component [duplicate]

I have a requirement as to make the New Standard component (that can be set in any lightning page from lightning app builder) conditionally rendered. To that respect I am trying to create a custom ...
1
vote
1answer
41 views

Can I use Modal window with lightning:recordForm?

Okay, I am using lightning:recordForm to create a standard contact form in which I am redirecting on cancel and on success using lightning:navigation but since the layout in recordForm is not that ...
0
votes
1answer
21 views

Storage space used by records based on the number of fields completed

I'd like to know if there is a difference on storage usage if all the fields on a record have data in them (to the max characters) vs. a record where only a couple of fields have data in them?
0
votes
1answer
25 views

Add look up field in lightning-record-form with on lightning web component

I want to know if there is a way to add look up field in lightning-record-form with on lightning web component. Thanks in advance.
0
votes
1answer
48 views

Cancel button on lightning component [closed]

Need one cancel button on lightning component. Case 1)- If we edit the existing record then cancel button should redirect to 'Detail Page' of record Case 2) - If we are creating new record but want ...
1
vote
0answers
11 views

Display expanded quickactions buttons on related lists on 3 region split layout

I have a 3 region split layout where there's more than enough room for a "New" Button which is hiding collapsed under the arrow but it's auto collapsed with this kind of layout and I can't find a way ...