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
1answer
24 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 ...
1
vote
1answer
77 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
1answer
25 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
22 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
185 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
25 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
14 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
35 views

Problem with creating nested dynamic components

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

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

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/...
3
votes
3answers
87 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
60 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
45 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
62 views

Need to change OutputField lable in Lightning Component [closed]

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
38 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
20 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
45 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
58 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
94 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
18 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 ...
0
votes
1answer
19 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
12 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
27 views

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

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, ...
1
vote
1answer
44 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
25 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
39 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
16 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
51 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/...
6
votes
0answers
100 views
+50

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
62 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
22 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
34 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
60 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
13 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 ...
0
votes
1answer
57 views

how to display first letter of first and last name of profile user within a icon | Lightning Component [closed]

For eg:- my name is hitesh rayal and want to display it in the same way as they have done in the below screenshot get profile user first letter of first name and last name and display it in a icon ...
0
votes
0answers
32 views

CSP Whitelisting Not Working in Scratch Org

I'm adding Google's reCAPTCHA element to a Lightning component. Following Google's documentation, I added this JS snippet to the community in my scratch org: <script src="https://www.google.com/...
-1
votes
2answers
86 views

In Lightning Select Value is not setting Properly in component Side

I have override "Edit" button with Lightning component.Record contains few drop downs. when I click on Edit button Value is coming properly in JavaScript Side and it shows proper value In Lightning ...
1
vote
0answers
37 views

How to populate value when trying to create record from quick create

I have a custom object (XYZ__c) lookup on Opportunity. When I am creating an Opportunity, I can create a new XYZ__c record from quick create on the Opportunity page layout. There is an Account lookup ...
1
vote
1answer
46 views

Lightning Component - Draw attachment image on HTML Canvas

I have a custom object that has an attached (png) image to it. I'm trying to create a lightning component that pulls the attachment and draws it on a html canvas. So far in the below code, I'm able ...
2
votes
1answer
91 views

How can i add line break in custom label in lightning component | Salesforce [duplicate]

want to write some text in different line as i google it then found some way, where they told to add make sure escape=”false” but this is not working for me {!$Label.c.forgot_password_content} ...
1
vote
1answer
140 views

Cancel and go back to Account after force:createRecord not working

handleCreateRecord : function(component, event, helper) { let currentUrl = decodeURIComponent(window.location.search.substring(1)); let createRecordEvent = $A.get("e.force:...
1
vote
1answer
33 views

How to get details of user activity for CRUD operation using Eventlogs

I want to track activity of user using eventlogs object, it has many event types where we can track activity like Apex Execution, Trigger Execution, Page View details. But i am unable to find event ...
-2
votes
1answer
33 views

Regex validation for us phone

when I am using lighting input and using pattern its works <aura:application extends="force:slds" > <aura:attribute type="string" name="phone" /> <lightning:input type="phone" ...
1
vote
0answers
35 views

AutoComplete No longer working in Salesforce Lightning

In Salesforce classic the browser would auto complete certain fields. However, after changing to lightning this is no longer occurring. We are using Google Chrome but are experiencing this issue with ...
2
votes
2answers
73 views

Lightning Record Edit form “Submit” Issue

The Following Component is used in the Community and used through Partner Portal profile. Lightning Component <lightning:recordEditForm recordTypeId="xxxxxxxxx" objectApiName="Case" onsuccess="{!...
3
votes
0answers
58 views

Lightning Component Container 403 error

We've developed a lightning component which hosts a react app within a container. I've noticed that sometimes after pushing a change to it in a scratch org (i.e. updating the static resource which the ...
1
vote
1answer
32 views

How to select all child checkboxes using HTML5 data attributes in Lighting

I have some code in my Lightning app which displays regions and countries beneath them using the code below (sorry its a bit messy I know): <div class="slds-checkbox"> <input ...
0
votes
0answers
16 views

Get relative path to Visualforce page via Lightning component [duplicate]

I have an iframe in a Lightning component that points to a Visualforce page, but I don't know what the relative path is in Salesforce from Lightning components to Visualforce pages. I currently have ...
1
vote
1answer
22 views

Custom render field for lightning

Scenario I've have multiple images categorised like before, after, extra images. And I want to display them together in Record page, ofc with customisation like in HTML grid something as I need some ...
1
vote
1answer
24 views

Creating new lightning component inside another component

I am creating a new component as below and trying to prefill the form with information. This form when accessed directly has event handling where when a radio button is selected , it displays more ...