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
24 views

Is there a way to load standard tab content through custom component [duplicate]

Is there a way to load standard tab content like "leads" or "contacts" through custom lightning component? Something similar to the way i can load one custom component in another: <aura:component ...
-3
votes
1answer
51 views

Does the code coverage affects the lightning pages in target org?

I am using codeCoverage() method with 1000 lines of i++; to test a package. I did not actually wrote the required test class because this is just a test org. I have lighting pages which are not ...
0
votes
1answer
32 views

Lightning Component - Copy Canvas to Clipboard

I'm trying to copy the image of a canvas to my clipboard in a lightning component using javascript. So far I have this in my helper: copyData: function() { this.canvas = component.find("canvas")....
0
votes
2answers
44 views

How to add custom css to the leads tab

In my custom tabs i simply add the following code to the component: <ltng:require styles="{!$Resource.globalcss}"/> and it loads a static resource css file. How can i load the same css file ...
1
vote
1answer
39 views

lightning:recordEditForm | Some input fields not being displayed

I'm trying to create a new form for a custom Object in salesforce. This is my form Code: <lightning:recordEditForm aura:id="MyFormId" objectApiName="...
0
votes
0answers
23 views

Change width of standard Lightning quick action lightbox

Standard Lightning Lead Convert lightbox has wider window than standard lightbox. Is it possible to change it via standard settings?
0
votes
1answer
40 views

Access Pagelayout assigned for a profile for a object using metadata api

I need to access the PageLayout NAME assigned for logged in user for a given Object or Record Id. This details needs to be fetched in Lightning component. I think due to security restrictions, ...
0
votes
3answers
49 views

New instance of Custom Object

I'm trying to create a new instance of an existing Custom Object. I have modified an existing object in the sandbox environment and want to preserve the original object when I push to production. ...
1
vote
1answer
26 views

How can I record ui event data to generate ui heatmap in standard salesforce

It would be awesome to have statistics on how users interact with apps in salesforce, both the standard ui and the custom ui. For instance, I want to track ui interactions in lightning service console....
0
votes
1answer
29 views

How to include selectOption field for aura datatable

I am trying to build a datatable with selectOption as one of the table columns. i.e. doInit : function(component, event, helper){ component.set('v.columns', [ {label: 'Booking Name', ...
0
votes
1answer
34 views

Input values not binding in Lightning Component

I have a lightning component with two input fields. But the values enter in the input form doesn't bind and record is created with empty values. Component <aura:attribute name="sites" type="...
0
votes
1answer
28 views

Lightning PageReference Object Passing Field Values in standard__object

I am launching a Subtab using the Lightning Workspace API, and using an Aura pageReference object to specify that I want to create a new Task. I want to pre-populate the WhatId on the Task when the ...
0
votes
1answer
23 views

Lightning:recordForm custom buttons

Is it possible to include custom buttons on Lightning:RecordForm or any of its variations ? Specifically a "save and new" button. If this is not possible, should the alternative be to create a ...
1
vote
1answer
37 views

.set and .setCustomValidity not working for two checkboxes

I am trying to place a custom validation if atleast one of my checkboxes is selected or not. and show the relevant error message. I am able to achieve this when there is only one checkbox , HOWEVER ...
0
votes
0answers
20 views

Redirect to non-default tab on recordpage from Lightning Component

I'm using a lightning component to update a record. For the lightning whole application to work well, it has to reload completely. After updating the record, I use lightning-navigation to create the ...
0
votes
0answers
15 views

Standard lightning Components [duplicate]

Is there a way to feed a record Id into the Record Detail component from a custom built lightning aura component, as an example? I am wondering if it is possible to make these components responsive ...
0
votes
0answers
15 views

Prevent 'Uncaught Action failed' popup from displaying in lightning

Problem Throughout our code base we use throw 'Error', in lightning, to prevent code from continuing. There are times we display our own error toast and do not care for the Salesforce provided one. ...
1
vote
1answer
36 views

Lightning Component force:hasSObjectName, sObjectName undefined

Per the force:hasSObjectName interface documentation, I can reference an automatically added attribute named sObjectName to retrieve the object where my custom lightning component is being accessed. ...
0
votes
0answers
15 views

Adding Related Records Programatically

I am building a community site, which will act as our customer portal, and I have built a case browser Aura Component that opens cases, when clicked, into new tabs. This is where I generate the tabs: ...
0
votes
2answers
57 views

How to send the Map values from apex controller to lightning component?

The response return value from my apex class is: var value = JSON.stringify(response.getReturnValue()); { "LegalLegitimation":"0233XXXXX", "LegalLegitimationReadOnly":"0244XXXXXX", "...
0
votes
1answer
57 views

Why data- attribute sometimes doesn't work?

I'm building one component and I've got selectItem function for it. I need to pass index to that function. For some reason it works only occasionally. Here is my template where I'm calling it: <...
0
votes
1answer
13 views

Timeline field of Case not visible in lightning

https://help.salesforce.com/articleView?id=entitlements_process_fields.htm&type=5 As per this document, I have added timeline, stopped, stopped since fields in case layout. I am able to see ...
1
vote
0answers
29 views

Lightning Token not applied in Summer '19 preview org

We have multiple lightning components which use Tokens for CSS styling. We observed that one of the tokens is not being applied in any of the components which is using this token. Instead another ...
1
vote
1answer
57 views

How to find a dynamically assigned aura:id?

I'm looking for getting a dynamically assigned Aura:id. Below is my attempt to read it in Lightning:recordEditForm. Component markup: <aura:component > <aura:handler name="init" value="{...
0
votes
1answer
32 views

Each additional rows in dynamic row has no data for picklist values from a custom object in Lightning component

I asked a question before this one here. The answer there helped solve it but that is introducing a new problem which is that the picklist values are having blank values for each new row and it also ...
0
votes
0answers
30 views

Execute Code On Standard Page Layout

My goal is that whenever the Account page layout loads, custom code is executed. And, in order to execute the code properly I need to access the account object that is displayed on the Account page ...
0
votes
0answers
15 views

window.addEventListener firing Multiple times

I have a situation where I need to reDirect the lightning page to record detail page once BACK button in iFrame is clicked. So, Java team was sending a postMessage from the page which I am opening it ...
0
votes
0answers
17 views

Multiple paths- what's the best way to do this?

We are Realtors. We want to create a "Buying path", a "Selling path", and a "Flow" path for everyone in our contact list. Sometimes a person or family is selling their house and buying a new one. ...
0
votes
3answers
50 views

Can I add a Lightning Component to Page Layout?

If yes - how can I do this? Header: <aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global">
2
votes
2answers
101 views

Freeze first column in horizontal scroll on lightning data table salesforce

I have created lightning datatable. How to freeze first column only while scrolling horizontal (not vertical) in lightning datatable.( or css) Source code : <div class="slds-scrollable_y" style="...
0
votes
1answer
26 views

Use of Map (Collection) in Lightning Component JS

I'm preparing a Map and doing some operations var tempParentMap = new Map(); tempParentMap[key] = someList; This code works when I iterate through forEach loop Like: Object.keys(tempParentMap)....
0
votes
0answers
29 views

Single select checkbx in Lightning datatable

I have lightning datatable with below definition Component table definition: <lightning:datatable aura:id="PYearTable" columns="{!v.columns}" data="{!v.data}" ...
1
vote
0answers
23 views

How to upload Files as Guest Community User

According to Spring 19, it should now be possible to upload files as a Guest Community user. But if you try either of, <lightning:fileUpload> . <lightning:input aura:id="fileId" onchange="{!...
1
vote
0answers
23 views

Lightning Web Component Slots in App Builder

Need some help, not even sure if this is possible... In Lightning App Builder, the standard tabs component has "Slots" where tab content can be placed. My question, is this available for LWC through ...
0
votes
2answers
49 views

Dynamic row values inherits the values from row before in lightning component

I have a lightning component where in I have a few text fields and 2 picklist fields, controlling and dependent. The problem is whenever I try to add a new row dynamically, the new row will take the ...
-1
votes
0answers
18 views

How can we download file through lighting component [duplicate]

I have a PDF file stored in the files section of Lightning. I would like to create a Button on the lighting component so that when any user clicks the button it downloads that file. I have to show ...
0
votes
0answers
16 views

Lightning call retrieving error when launched by a non-system administrator user

I have a lightning component that is working fine with System Administrator user but not with everyone else. This is my code: helper.js: checkPreActionStatus : function(component){ var result; ...
1
vote
0answers
41 views

Platform event subscribers on Visualforce page not being called always when platform event is published

We have an implementation in which there are multiple Visualforce pages(seven pages). These pages are using platform events to communicate between each other. The JavaScript code to subscribe to ...
1
vote
0answers
18 views

aura:iteration label of current field

Is there a possibility to get the Label of current field using aura:iteration ? <aura:iteration items="{!v.objectName}" var="objectName"> <lightning:input value="{!objectName.field1}" ...
-1
votes
0answers
11 views

Create current location automatic without coding

I just created customer object with customer name field ,now i want the latitude and longitude to auto update when customer name is update HOW? (is it possible without the coding)
0
votes
0answers
21 views

How to bypass FLS for Lightning:recordEditForm for Community Guest User

I'm trying to update a Contact record as Guest Community User. Lightning:recordEditForm seems does not allow community guest user to load or save the record, and gives me following error on community ...
1
vote
1answer
72 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
87 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
16 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
31 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
63 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
2answers
44 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 ...
5
votes
1answer
122 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
36 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
35 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 ...