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

Auto refreshing working while created case in timeline but as per timeline filter its showing the case record

Now its automatically refresh the Activity page and display the case record but in Activity i have different object case, event, recordviews at the moment while choosing case object it display all ...
1
vote
1answer
17 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="...
5
votes
1answer
75 views
+100

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
2answers
29 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
2answers
17 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. ...
0
votes
0answers
12 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?
1
vote
1answer
14 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
12 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
2answers
546 views

Lightning Component for quick action

I built a lightning component to make some changes to Lead Record and I added it as a quick action. This is my helper.js: changeOwnerAction : function(cmp,event) { var recordId = cmp.get("v....
0
votes
1answer
19 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
2answers
976 views

Lightning Community User is not able to see related lists on Account's Detail page

I am new in Salesforce Lightning. We have installed ServiceMax (Managed Package) in our SFDC org. Now we have some custom objects which we got from the Managed Package. These custom object are child ...
0
votes
0answers
7 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 ...
3
votes
2answers
184 views

Make a Lightning Button Download a .html Report

I am trying to create a .html file using Apex and when a user clicks a button on the front-end, they can download the .html file. Below is the code I have and when I am loading the component and ...
0
votes
1answer
14 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 ...
0
votes
0answers
24 views

How to query loggedin userinfo from logged in user Community head markup with Javascript? [on hold]

How to query the logged in user info in Salesforce lightning Community from Head-markup with JavaScript & Ajax Am trying to retrieve and display current logged in username in the header of CMS ...
0
votes
0answers
113 views

CMS Collection Not Visible to Guest Users

We're hitting an issue where the CMS Collection component in our community is not displaying for guest users once deploying to production. Has anyone hit this before? In our sandbox we had it happen ...
1
vote
1answer
32 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 ...
1
vote
2answers
467 views

How do I retrieve all the code from lightning?

My boss had been muddling through Salesforce by creating custom objects and triggers using the Lightning Web Interface. I want to pull all his work down in VS Code, commit it to git, and continue ...
0
votes
0answers
17 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 ...
2
votes
2answers
42 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
11 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
2answers
3k views

Why adding a tab is not displaying in my Lightning app

I am very new to lightning experience. So this question can be very silly. I have added my custom object tabs into my custom app (managed app installed). The screenshot looks like this: However, ...
1
vote
2answers
43 views

Not able to call Custom Apex Rest API from Visual-force page in java-script (POST redirect to GET)

I have a requirement where I need to call my custom written Apex REST api from java-script in visualforce page, But somehow I'm getting that CORS issue which says my request has been blocked due to ...
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
1answer
26 views

Override Standard New Action with Component that shows fields based on page layout/record type [on hold]

I am looking to override the standard "new" action on the account object with a custom lightning component. I would like the user to be able to select the record type of the account they will be ...
1
vote
1answer
53 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: ...
1
vote
1answer
598 views

force:showToast own implementation

I read a lot of toast in lightning but in standalone app it's not working. In this guide https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_one.htm ...} else { //...
0
votes
0answers
14 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
21 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
1answer
24 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: <...
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
47 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", "...
5
votes
1answer
101 views

Wave/Einstein Analytics & React App Communication

My gut instinct is to use Analytics SDK, but a cursory glance doesn't reveal it. Is it possible for Analytics Dashboards to embed Lightning Components, iFrames, or Connected Apps, or conversely for ...
0
votes
1answer
51 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: <...
1
vote
0answers
27 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
51 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
2answers
95 views

Show Modal prior to stage change

Looking to validate a proof of concept here. Prior to a user changing the stage of an opp/lead for instance, I want a modal to pop up with a "Please verify X fields before submitting". Rather than a ...
0
votes
0answers
22 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
1answer
70 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
31 views

Issue with setting lightning:map center attribute in Summer 19 preview

Wondering if anyone else has come across this and may have a solution/suggestion. I have a customized mapping component our service people are using, and while preparing to work on something else for ...
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
14 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
14 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
0answers
18 views

Can we use a standard picklist in lightning component as a text [on hold]

I'm using task object & its fields in lightning component. I want to make the subject(picklist) field as text. I'm getting an error Task: bad field names on insert/update call: subject:
0
votes
3answers
40 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">
0
votes
1answer
24 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
26 views

unable to use forceChatter:feed for feeditem in lightning component [on hold]

I'm trying to open feeditem(discussions) and articles in modal in custom lightning component inside salesforce classic page using force:recordView and forceChatter: feed. I'm successfully able to open ...
0
votes
0answers
17 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
20 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
18 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 ...