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

apex:emailPublisher for Lightning experience

One of our customer is moving from the old classic service console to the new Lightning experience console. In the old console, they are using a custom VF page using apex:emailPublisher component for ...
0
votes
1answer
30 views

How to display lightning checkboxGroup in 2 column without disturbing other slds form elements?

What CSS would be required to make the items in a lightning:checkboxGroup display horizontally in two or three columns? i have tried this Css .THIS .slds-form-element__control { display: grid !...
0
votes
1answer
27 views

How to detect the LWC form changes on Back button

I am working on gathering the information from the user, once the document details been saved into database, still user can be able to edit the form data at any time. If user click "Back" ...
0
votes
0answers
5 views

Reports and Dashboard by sales rep on following requirement

I have the following requirement to be done,in my analysis what i realised is this is the work of a summary report however I am facing the following issues 1)In my analysis as I understand this ...
0
votes
2answers
25 views

Component “variables” not set, not passed to forceCanvas

I'm trying to host a canvas app on a Lightning page. The canvas app itself needs the current record and type in order to load things on my own server properly. I have the canvas app up and working (...
1
vote
1answer
29 views

Improve performance and speed in Lightning Experience [closed]

Recently switching from Classic to Lightining and users started feeling very slow to load the page, does anybody has any pointers what might the case and what to look for in order to make it faster ...
0
votes
1answer
34 views

Is custom field validation message supported on lightning-input-field like it works in lightning-input?

From the document: <template> <lightning-input label="First Name" minlength="5" message-when-too-short="Your entry must be at least ...
0
votes
1answer
14 views

Error “The Expiration date needs to be entered” when creating a recurring Task (Lightning)

I am trying to create a recurring task in Lightning Experience and it turns out to be difficult. I have enabled the appropriate setting so that I am allowed to create them. I have added the "...
0
votes
1answer
44 views

Handle null in getter method in LWC

I am creating one UI which populate values from js getters. But I am getting null text in UI when the field is empty in UI. @wire(..) case; get contactName() { return `${getFieldValue(this....
0
votes
1answer
22 views

How to display autopopulate rest of the fields based on a lookup field selected

I Have a custom object called Withdrawal which is having a lookup to Opportunity object My requirement is to override the standard New creation button for the Withdrawal object and whenever someone ...
0
votes
2answers
68 views

Help with updated selected record field values from lightning component

Could someone please help me with updating the selected Opportunity records with the desired field values from hasRecordId. I have created a lightning component on an opportunity record to display all ...
0
votes
0answers
17 views

Renamed components in Scratch Org and trying to retrieve them

I have created a custom object Named ExampleObject__c and Fields as "Field1__c", "Field2__c", "Field3__c" in my scratch org. and pulled this source from scratch org to ...
0
votes
1answer
68 views

Create a chart with 5 lines, despite Salesforce's limitation of 2

I have a custom object with fields: Date Measurement A Measurement B Measurement C Measurement D Measurement E I want to create a line graph with X-axis: the date (field 1) and 5 lines, for fields 2 ...
0
votes
1answer
14 views

Dashboard is not displayed as graph in Lightning home page, but as link

I am trying to embed a dashboard in a Lightning home page. It is shown, but only as a link to the dashboard. The actual contents are not shown. When you google this problem, a suggested cause is that ...
0
votes
1answer
23 views

Is there a lightning alternative to ViewAllActivityHistoryPage?

We have a custom link created on Case object that has a URL as : {!$Site.Domain}/ui/core/activity/ViewAllActivityHistoryPage?&id={!Account.Id} In this, from what I understand is that, ...
0
votes
0answers
23 views

Issue with Custom Lookup in Aura Iteration

I have custom lookup which I am using in aura:iteration. The problem I am facing is when I am selecting any value in the lookup it is reflecting in all the other rows. Not sure how to resolve this ...
0
votes
2answers
26 views

Can LWC be configured to appear with Saleforce menu at the top like in classic?

I have created an LWC which I put on a vf page since we are in classic. My challenge whether its possible to have the menu tabs at the top just like in classic as illustrated in the attached images.
0
votes
0answers
44 views

How to make width appear proper for lightning select option dropdown?

How to make the dropdown appear properly for this lightning select.. It is an iteration. The option data is large that's why the width is getting increased. This issue is coming for all components ...
-1
votes
1answer
41 views

I am not able to display the List<String> on Component

Apex Class:- public class LightiningLstStrClass { @auraenabled public static list<String> LstStrMethod(){ List<String> lststr=new List<String>{'aman','naman','billy'};...
0
votes
1answer
51 views

unable to edit custom metadata type from LWC

I am trying to edit custom metadata record using lwc. But it is not allowing me to do that. It is showing in read-only format. Here what I have tried, <lightning-card title="Card Title"&...
0
votes
1answer
23 views

How to compare values inside template if

How to check values inside template if in lwc? Something like: JS file: val1 =2; val2=2; <template if:true ({val1}=={val2})> is it possible? if yes then pls provide the correct syntax
1
vote
1answer
43 views

Regex for minimum characters in long text area field

There is a screen flow in which I have a long text area field. For that field I want to check that there are at least 5 characters entered in that field. I was using the regex - REGEX({!Case_note},“^.{...
0
votes
1answer
44 views

How to scroll on the top of modal

i have a modal popup with scrolling, i am trying to scroll the user to the top of the modal when the user clicks on a button. window.scrollTo(0,0) is scrolling the main window not the modal.
0
votes
0answers
13 views

Getting Intl.DateTimeFormat error when primary tab in console does not load correctly

In lightning tables we have below attributes to determine if field is datetime or just date: "typeAttributes": { "includesTime" : true, "year&...
1
vote
1answer
46 views

LWC Modal on Radio 'onchange' event does not retain the checked value

I have a functionality where I need to add a modal on click of a radio button. My code is as below selectRadio.html <template> <lightning-card title="New Investment Breakdown">&...
0
votes
1answer
451 views

Lightning Buddy Component Error: Attempt to de-reference a null object

I am a standard user and trying to navigate from one tab to another tab. Whenever I am going to account or opportunity tab I am seeing below error message. I tried to check if there is something wrong ...
0
votes
1answer
28 views

lightning:outputField doesnt display parent field data

i'm trying to display Account information on a Contact and using lightning component with recordeditform. i get all the contact data but I'm not seeing any data in the component but when i open my ...
0
votes
1answer
79 views

Calling LWC Javascript function from subscribe () method of cometd result in function undefined

Calling the LWC Javascript function from the subscribe() method of CometD results in function undefined. Here is the code: <code> import { LightningElement, api, track, wire } from 'lwc'; ...
0
votes
0answers
12 views

sforce.one.createRecord doesnt populate default values in edit mode for country and state

I'm creating a new lead from contact on click of a list button. I have a visualforce page that button points to and visualforce page javascript code. I'm using sforce.one.createRecord and providing ...
0
votes
0answers
17 views

Custom Flow Navigation Through Multiple Screen

I am using custom navigation for the flow embedded in lightning component. I want to skip multiple screens on next click. How can i navigate multiple screens at once? For example Screen 1 to Screen 4 ...
0
votes
0answers
34 views

How to capture data from Flow Screen Inside aura:iteration in Lightning Component

I created an aura component that has tabset and a flow screen which is a normal form. There is a variable called quantity. If quantity is 4, my aura component creates 4 tabs and each tab would have an ...
1
vote
0answers
50 views

Configure related list in compact layout (hover)

I want to manage the related list visualised in the compact layout hover that appears when I put the mouse cursor over a lookup field. For example I want to configure which related lists to display ...
0
votes
0answers
30 views

Weird Context Behaviour in LWC and Apex

I'm writing a simple 'Merge Lead and Opp' lwc that leverages apex to transfer some custom fields from the lead to the opp before deleting the lead. The apex works fine. The issue is that when the apex ...
0
votes
1answer
31 views

'New' Button is not visible for system admin for account object list view page

New button is not visible for system Admin profile in salesforce lightning but visible in classic version, on list view page.
0
votes
0answers
15 views

How to open Reusable lightning carousel image new tab

can someone please help me to fix my code. The link and new tab is not working, but when I change the ID to Href it works but the new tab is not working. This is my CMP <aura:component ...
1
vote
1answer
26 views

HTML table in Lightning using iteration

I have an object 'AccountLineItem' . I have a field 'System' and a boolean field 'isHeader'. I am trying to group by system field where isHeader =true . I have a Map<String,List> .Which I am ...
0
votes
2answers
34 views

No data is showing connectedcallback() method

I am creating a data table based upon the return from the apex. I am calling this component from another component and passing the recordid. Component 1: <c-compoennt2 con-id={recordId}> ...
0
votes
2answers
51 views

EXCEPTION_THROWN [17]|System.LimitException: Too many DML statements: 1

From some research, I've seen many previous examples having the update inside a for loop which would reach over 150 DML statements if there were. I'm wondering why I still get the issue that there are ...
0
votes
1answer
57 views

multiple wire decorators not working in lwc

I have an lwc component with 2 picklist fields from contact object. Below is the html and Js code snippets of the same: HTML: <lightning-combobox data-id="cntype" class="slds-...
0
votes
0answers
19 views

Custom modal window in Salesforce 1 is always displaying at top of the page in LWC

I have implemented a custom modal window which opens up when I click on a td. It's working fine in desktop but when checking in mobile , the modal pop up is always coming at the top. If user is at the ...
0
votes
1answer
28 views

Restrict user access to Picklist Value with formula

I want to create a formula that restricts all profiles but two profiles to change a picklist value when the value is equal to "Apple" . If the value is equal "Apple" then the ...
0
votes
0answers
14 views

uploading files into object related list

I have a requirement where i need to upload files into an object related list(notes & attachments section),i just written a code in component and controller, but it does'nt seems to be worked,...
0
votes
0answers
34 views

record type for lookup field in lwc

I have an lwc component with AccountID lookup from contact object. Now, this lookup fetches account records when searched with any value. Below is my html markup: <lightning:record-edit-form object-...
2
votes
1answer
74 views

Receiving a LWC error intermittently

Hoping someone can see something that I am not able to. Myself and other users get the following error intermittently, on some records this error appears and on others it does not. This LWC calls an ...
0
votes
2answers
28 views

AccordionSection Collapse all

i'm facing an issue with a button to collapse All/Expand All of a lightning accordionSection the problem is that i have a loop on the accordionSection, so the button only collapses/Expands the first ...
0
votes
1answer
34 views

Get date and time separately from created date

I want to display created date and time separately in LWC UI. From apex I am returning the created date but not able to get it separately. How can I get date and time separately from created date?
1
vote
1answer
68 views

Help fixing Apex Error

Does anyone know how I fix this error in my aura lightning component? My action isn't retrieving the Opportunity records anymore. It was working fine last month, but has stopped working. I am new to ...
0
votes
1answer
17 views

edit pagelayout not available for few profiles

edit pagelayout not available for few profiles, Where to find this setting?
0
votes
1answer
41 views

Are there API available to measure the flexipage loading time?

There is "Lightning Usage App" and there is "pages" tab, we can view the flexipage performance on that app. But is there any API available for developer to access those performance ...
0
votes
1answer
41 views

How to set value in lightning:combobox in aura lightning?

<lightning:combobox aura:id="filterCaseType" label = "{!$Label.c.CPL_Event_Type}" name="caseTypes" placeholder="Case Type" options="{!v....