Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Issue with account hierarchy component

I am trying to create a lightning component that displays the hierarchy of any given account. The issue I am having is passing the query from a helper class to the component itself. Can some one ...
1
vote
1answer
50 views

LWC lightning-spinner not able to display the text

I am able to add a lightning-spinner in an LWC component, but I'm not able to display the text along with the spinner. I need some help regarding the same. I tried both alternate-text in HTML & ...
0
votes
1answer
14 views

set default landing view as classic

In my Salesforce org, after logging in, the page is landing in Lightning view. Our org do not use lightning and every functionality is based out of Classic. Earlier it used to land in classic but ...
0
votes
1answer
35 views

Parsing data JS or Apex Controller [closed]

Is there a performance cost if we do business logic on the client JS side vs Apex server side ? Let's say i have an Apex controller and a lightning component. on Page load, the JS controller is ...
1
vote
0answers
28 views

Accessing Einstein Dashboard on a Lighting Page in Winter'20 with getState API

I have a Lightning Page built that contains multiple Lightning components and an Einstein dashboard that can be customized by the user. I can find the name of the dashboard via wave:discover and wave:...
0
votes
1answer
33 views

Extend multiple base component in lighting web component

Is it possible to extend multiple lighting base web components? Something like this: import externalScripts from 'c/Scripts'; import { LightningElement, api } from 'lwc'; export default class ...
0
votes
0answers
20 views

Unable to see spinner in VF page

I am trying to use a VF page in lightning style. We have some Ajax calls inside the page and two Buttons (Refresh & Upload). Refresh button will reload the whole page and Upload button will be ...
0
votes
1answer
21 views

slds css is not loaded. “Bad Gateway”

I use <apex:slds> in my Visualforce Page. It has been working well for long time but recently some users suddenly can not load slds css. I found that the following error occurs. https:///...
0
votes
1answer
26 views

LWC: How to potentially return several different object lists based on user input

I am trying to allow a user to select an object from a dropdown, and based on the chosen object, return a random number of records. The problem I'm having is that I am having trouble returning ...
-1
votes
0answers
18 views

Can we run the live chat in the Sales Console Separately

I want to show the live chat on the two different console. Sales Console Service Console But live chat is working on the basis of the user so the notification will show both console. How can we ...
0
votes
1answer
29 views

Lightning data table not showing header for button [closed]

I amm specifying label and title attribute sttill not able to see header in the columns.   <lightning:datatable                                             aura:id="attachmentDataTable"           ...
-3
votes
0answers
18 views

Adding Lightning Calendar in Visualforce page is not working if we are in Classic view

<apex:includeLightning /> <apex:includeScript value="/lightning/lightning.out.js"/> <div style=""> <div id="CRCustomCalendarapp" class="slds-box slds-theme_default" /> <...
1
vote
1answer
20 views

How are initially shown records on Lightning lookup field decided?

In Lightning, the standard lookup field shows five records as we type in search criteria. How are these five records selected to be shown (e.g. most recent, most searched, alphabetical, etc.)?
0
votes
0answers
15 views

Link on lightning visualforce page works in classic but not in lightning

I have the following link on a visualforce page that works in classic, but doesn't work in lighting. The error message is "Page AutoAssignEdit does not exist" <a href="/apex/AutoAssignEdit?id={!aa....
0
votes
1answer
17 views

Service Console Tab Name

I have called flow in the URL button. When I click on the button, a new tab is opened and flow is initiated but the tab name is displayed as Task. Is there any way to change the tab name in Service ...
2
votes
1answer
35 views

Displying Salutation field using lightning:recordEditForm on Person Account

There is a known uncommon behavior with Salutation field on Contact object while displaying it using lightning:recordEditForm. Since it is a part of the compound Name field on Contact. The workaround ...
0
votes
1answer
34 views

lightning:inputField type Date showing both Date Picker and history of dates, how to avoid showing history but show only the Date Picker?

I am using lightning:inputField with type as Date, the issue is this field shows two pick-windows 1. Date Picker and 2. Date-History picker. Please help anyone, if you know if there is any fix for ...
1
vote
1answer
45 views

How to change placeholder of lightning:inputField

I made look up search with lightning:inputField. search is available, but I want to change its placeholder. I mean that I want to set some text instead of '001'. <lightning:inputField fieldName="...
0
votes
1answer
21 views

Need to wrap url inside lightning card

I am using lightning:formattedUrl to show the url. I don't want give label to this url, so the url should show iin raw format. However I am using it in card, and it is going beyond the card boundary....
0
votes
0answers
25 views

Allow VF Popup inside Service Console in Lightning

Is there a way to open Popup(modal) inside Service Console rather than AS tab/subtab in Lightning. I overridden delete button with VF Page and need to display a popup window. This works fine on when I ...
0
votes
1answer
46 views

Convert Javascript button in lightning

I have the below javascript button, since the fields populate based on conditional picklist from parent object i can't create Quick action to pre-populate the field values, how can i use this in ...
0
votes
0answers
9 views

Identify theme of active tab whether it is lightning or classic

I am trying to redirect on a url based on the active theme by pressing a button it is running fine but when i have two tab opened at a time one is classic and other is lightning and when i am pressing ...
1
vote
0answers
31 views

How to Send Email with predefined Template in Lightning?

In Lightning, how does one create a quick way for users to send an email with specific email template pre-selected? In classic, we can use URL parameters and do the same but with lightning that's not ...
0
votes
2answers
30 views

Need to Store record on Delete Action [closed]

I need a sample code for a custom object which can store records from another object where records are getting deleted (on click of delete button) for example: i have 'xyz' object and their is a ...
1
vote
0answers
90 views

Issue/bug with standard spinner

since last week i've this problem on the org and i'm still not able to solve it. Here's the details: In every standard action like creating or editing an account using the standard buttons Edit and ...
4
votes
2answers
213 views

How to refresh wired service getRecord manually?

Please note that this is not duplicate of LWC Force Refresh Wire getRecord - this question and answer specifically speaks about changes in front-end/UI and capturing that in front-end BUT LDS cannot ...
0
votes
1answer
44 views

How to access the contents of a SecureNodeList in Lightning Components

I am currently trying to access a SecureNodeList, but I keep running into errors. Before I go into depth more, I will explain what I am trying to do first, before I end up with an X-Y Problem. My aim ...
0
votes
1answer
31 views

Navigate To Component in Community [duplicate]

I am using one main lightning component and all other components are opening within the main components. I want to update the browser URL when the user navigates. I am trying to navigate to a ...
-2
votes
0answers
19 views

Open google page after saving new field

after I insert a new field and click on save, I want it to automatically open a Google page with search the name of the field just entered!! please help me?!!
0
votes
1answer
52 views

Required attribute not working lightning:input rerender

I am facing an issue with below code. Required attribute on lightning:input is not working on rerender. I have an inputCheckbox and I render the lightning:input field upon checkbox selection. This is ...
1
vote
0answers
44 views

Unable to upload the LDS 2.10.0 as static resource

As we know that static resource has a limit of 5MB, I am trying to upload the LDS winter 20 as static resource, but its size is more than 5 MB https://lightningdesignsystem.com/downloads/ In this ...
0
votes
0answers
12 views

Visualforce after excel file export, broken file name issue

Now im trying to appoint an excel export name dynamically like this. but after export this source of code, <apex:page standardController="Account" extensions="registerForm" sidebar="false" ...
0
votes
0answers
9 views

Sharing List View Salesforcebug Workaround

Any workaround for this type of scenario? Cannot select the group I wanted to :( it is displayed behind the dialog... I cannot target the z-index aswell... any workaround for this? PS: No Coding... ...
4
votes
2answers
191 views

How to change values of data returned from imperative Apex?

contactRelatedListLWC.js import { LightningElement, track,api } from 'lwc'; import getContactListApex from '@salesforce/apex/ContactController.getContacts'; const columns = [ { label: 'First ...
0
votes
0answers
23 views

does lighting:treeGrid support infinite scroll

The documentation references infinite scrolling as supported but I neither see the relevant attributes in the specification. Nor does the component respond when I implement it as I would for lightning ...
0
votes
0answers
19 views

How to break an iFrame in SFDC

So i'll give you an outline of what i'm dealing with. we have a VisualForce Page displayed on a standard page layout, and then we view it in lightning UI. Now all this VF page does is passed an Id ...
0
votes
1answer
22 views

Lightning apps on mobile

When I create a lightning page with Lightning App Builder, I have 2 design options : one for desktop and one for the phone. I customize both for Account object. I save the page, activate it as org ...
0
votes
1answer
47 views

LWC lightning data table with column level validation

Ref: https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/example For a lightning data table with inline edit function. I am trying to understand how to call a JS ...
0
votes
1answer
28 views

Lightning Event not firing in Component

I am working through the Aura components trailhead but am running into an issue where the component event is not firing. Here is my code: CampingList cmp <aura:component controller = '...
0
votes
0answers
16 views

Duplicate Rule Bypass with RecordEditForm in Lightning

I am struggling with figuring out how to pass dml.DuplicateRuleHeader.allowSave = true; in Apex on a Lightning RecordEditForm component. I am using RecordEditForm as a record creation form and ...
0
votes
0answers
8 views

Community page not loading after changing language to Chinese (Simplified)

I encountered the case that after changing language for community user to Chinese (Simplified) and login to community for the first time, I get 404 page ("Page not available"), after refresh and for ...
0
votes
1answer
21 views

Update Parent record fields using force recordData

Is there a way i can update parent record details while using the recordData on child component. For example, I want to update account field (Number of Employees) from a component on contact record ...
0
votes
1answer
24 views

Access Third Party Ressource using a Link

The Situation: We need to reference a non Salesforce-Object in Chatter Posts, regardless of the Client Software (Mobile Browser / Salesforce App / Desktop Browser). The Ressource we want to reference ...
0
votes
1answer
22 views

Auto populate fields on quote creation

Is there any way to auto populate Quote name field with parent opportunity name when click on new button.I know that It is possible in classic by url hack but how to achieve it in lightning.Any ...
0
votes
0answers
11 views

Is it possible to add Notes and Files to an new Task or Event in Lightning?

Is there any way to add Notes and Files when user tries to create a new Task or Event in Lightning. But in Salesforce Classic we could see the attachment in the UI, when user tries to add any ...
1
vote
0answers
16 views

Layout field values not updating on initial browser refresh after update from modal

I have a lightning component which is a modal being called from a button on the record view. You can update fields from this modal and save. After the save, the record is saving fine in the database, ...
1
vote
0answers
33 views

WorkspaceAPI OpenSubTab Focus not working

I am having an issue with the focus feature in the openSubtab method of the workspaceAPI and was wondering if this is working as intended or not. I am following the developer documentation from this ...
1
vote
1answer
42 views

displaying the lightning data in CSV file proper format [closed]

i am downloading the lightning data in CSV file as per the below screenshot Now the issue is whenever i am trying to expand the Name column,the data is getting restricted to the name column only....
1
vote
1answer
24 views

Evaluate formula expression in String

Is there any utility methods in Salesforce that evaluate a formula expression in the form of String? The reason I need this is I'm building my own custom Lightning component to send Email. This ...
0
votes
1answer
36 views

Redirect to a url on a click of custom button through if condition

Hey i am trying to redirect on a url on a click of custom button which will create a new quote in which name will be prepopulate as same as parent opportunity name but it is not redirecting on a page....