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

Add Info Icon next DualListBox values in Lightning Component

I am using Duallist to utilise the multi picklist feature, but I need to add an info icon as well, next to each value of the duallist, and that will have the help text on mouse hover it will be show ...
0
votes
0answers
31 views

Lightning Component Controller Error: List has no rows for assignment to SObject

I have a component I put together where the user should input two pieces of information and it will create a new Opportunity. I have tested the APEX Class by executing it via DevConsole, however ...
0
votes
0answers
10 views

Click ok bar of chart used in dashboard of reort is redirecting on error page

The home page of our Commnity contains a dashboard that has various widgets on it. If a Community user clicks on any of the vertical bars on any of the charts, they get redirected to a weird (and ...
3
votes
1answer
52 views

Open Lightning Console tab for edit and view all at once

Using the <lightning:workspaceapi> tag and calling the same reuseable component twice (once for edit and once for view) does not seem to let me open the edit page modal and open a new tab for ...
0
votes
0answers
11 views

ErrorObjectNotFound javascript error on upload csv

I was working on a feature to load records as picklist values on to a custom lookup component from a csv upload. The functionality was working as expected, but I get an error that says "...
0
votes
0answers
25 views

Exceeded max size limit of 12000000 [duplicate]

I'm doing a rest GET callout to an external open database. But I'm getting max size limit error. I know this error is due to 12 MB Heap Size limit. I'm getting the data from "CPSC Recalls Application ...
0
votes
1answer
57 views

Select list validation in LWC [closed]

I have created a select list in LWC. The code is as follows :- <select onchange ={onSelectProductL1} class="slds-select l1Cmp" data- id="select-01"> <option value="">--...
0
votes
2answers
37 views

afterRender threw an error in 'c:TestLWC' [Cannot read property 'data' of undefined]

I am using the below code to make a call to apex method on page load and validate some response. I am getting error afterRender threw an error in 'c:TestLWC' [Cannot read property 'data' of ...
0
votes
0answers
17 views

Lightning Activity Email template with junction

How do I make a template for a record's Activity > Email tab in Lightning so that the user can send the record's info (including info related by junction) to other users and to email addresses ...
0
votes
0answers
17 views

Visualforce page and sforce.one object in Lightning

When I open (via a link on another VF page) a VF page with the relative URL /apex/NAMESPACE__VfPageName a sforce.one object is not available. But if I open the same VF page using a custom button the ...
0
votes
1answer
22 views

I am inserting single record with single file.but how to insert single record with attach multiple files using lightning input

i Am inserting single record with single file but how i can insert single record with multiple file in single transaction using lightning aura component.please let me know. please refer this link ...
0
votes
1answer
39 views

onsort datatable not invoke function in js lwc

For datatable column sorting, I have following datatable: <lightning-datatable title="MY ORDERS" data={data} columns={columns} key-field = "SalesDocument" onsort={updateColumnSorting} sorted-by={...
0
votes
0answers
19 views

HTML Source bug sending Rich Text field in VisualForce Email Template

Background We are using Lightning. I need to create an email template that a user can use on a custom object's Activity > Email tab. The object records meeting minutes and includes a rich text ...
0
votes
1answer
23 views

Stop setInterval function executing from loop

Using CDC(Change Data Capture) I'm displaying count down time in my lightning component. For countdown time I'm using setInterval function of JS, its working fine. But on next change of data its ...
0
votes
0answers
21 views

Salesforce lightning tab URL param is getting removed

I had created a lightning component tab. The tab was being called from a detail page button like this /lightning/n/Forecast_Report_Account?accountId={!Account.Id} All was working fine . The URL ...
1
vote
2answers
47 views

Lightning empApi subscribe and unsubscribe method in JS constroller

I have an component using lightning empAPi. In controller, I am using subscribe method and didn't using unsubscribe method. Is that required to use unsubscribe method in controller. IF required please ...
2
votes
1answer
36 views

Keydown event throwing TypeError: Illegal invocation

I'm trying to implement a keyboard event to detect if the user has the Caps Lock on is on while typing in an input field, so I have my component like this: <span onkeyup="{!c.keyCheck}"> &...
1
vote
2answers
49 views

Change color of popover in lighting:helptext

I'd like to change font color and background of popover of lighting:helptext. I'm talking about this component: <lightning:helptext content="Your Name will be your login name" /> I tried to ...
-2
votes
1answer
38 views

How to write test class for Database.error [duplicate]

for (Database.SaveResult result : results) { if (!result.isSuccess()) { for (Database.Error error : result.getErrors()) { System.debug('Error returned: ' + ...
-4
votes
1answer
50 views

Test class for below class [closed]

public class ExampleClass { public static void publishCaseUpdateNotifications(List<Case> cases) { List<Case_Updated__e> notifications = new List<Case_Updated__e>(); for ...
1
vote
1answer
23 views

Conga button error: "The name can only contain underscores and alphanumeric characters. …”

I'm using Conga to generate documents which are automaticly filled with information from custom objects and fields in SalesForce. To do this I have created buttons and placed them in a custom object. ...
0
votes
1answer
45 views

Issue in create Two Column Layout

I have below code to divide a layout into 2 columns. <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1" style="height:230px;"> <div class="row"> <div ...
3
votes
1answer
64 views

LWC not recognizing PageRefrence changes and not displaying updated values

I have the below parent aura component which has parent LWC - On clicking redirect button on parent i am passing the attritubes in URL and the values are displayed on the child. This happens for ...
2
votes
1answer
55 views

Firing EventListener inside Controller method

I'm trying to implement something that I would do in plain JavaScript and get it to work in Lightning. I want to detect a keyup action on an input field, so I have my component wrapped within a span ...
0
votes
1answer
47 views

How to access record's field values using lightning:recordEditForm?

I have over ridden a standard EDIT button in classic app with a visualforce page and in that visualforce page I am calling a lightning component to update the record and it's child records. I want to ...
0
votes
0answers
38 views

How to retrieve parent record fields from child record in lightning record edit form?

I have this component where I have docman object as a child object to Contact. I need to retrieve contact ID and a few fields of contact in this below lightning:recordeditform. As I need to ...
0
votes
1answer
24 views

How to pass index of row to the JS controller and hide the fields dynamically in dynamic rows in lightning component?

so, I am able to hide/unhide fields based on the pick list selection but the problem is it only works for first row in multiple dynamic rows. Here's the screen-shot, dynamic row picklist selections. ...
0
votes
0answers
34 views

Error in saving the record in lightning

When i am saving the record in lightning error is comming. This page has an error. You might just need to refresh it. First, would you give us some details? (We're reporting this as error ID: -...
0
votes
0answers
10 views

View dashboard without access to report

Hi , i need to remove the link that allow access to the report. The user just need to see the dashboard without accessing to report. Thank youuu
0
votes
0answers
27 views

Lightning:treegrid ontoggle action triggers onrowselection

<lightning:treeGrid aura:id="accountsTreeComponent" columns="{!v.gridColumns}" data="{!v.gridData}" keyField="accountId" ...
1
vote
0answers
30 views

XPath in lightning Javascript

I have an XPATh expression which i want to use in my lightning javascript file. I tried several examples but i have been unlucky. Can someone tell me how do i get a reference of the dom using xpath ...
2
votes
1answer
31 views

Detecting Caps Lock not working

I'm trying to detect if a user is typing into an input field when the Caps Lock button is on. I've started with an input wrapped within a span that performs an onkeypress check: <span onkeypress="{...
0
votes
1answer
21 views

Prevent cloning of Opportunities with products

Here it says In Lightning Experience, opportunities with products can’t be cloned. I tested this out and I was actually able to clone and Opportunity with products using the standard clone button ...
0
votes
0answers
20 views

apex:enhancedList on Salesforce Mobile

I found this StackEx Question that had an answer with a script to allow the enhancedList to resize with the window... But it still doesn't make it mobile friendly. Does anyone know if there's a ...
0
votes
1answer
27 views

Lightning record action to open prepopulated mail in user's client

On the Standard Record page for a CustomObject__c, I want to display a button or link (Quick Action, URL formula field, ...) that when clicked by the user opens the users preferred email client with a ...
-2
votes
0answers
19 views

Failed to Load PDF Document in Lightning Web Component

I trying to generate pdf file onclick button in lwc i have written following js code: handlePdfAction(event) { const salesDOc = event.currentTarget.dataset.key; var blob; var pdfString; ...
1
vote
0answers
6 views

How do I sync GSuite User data with Salesforce so that I only have to manage my users' data in GSuite?

My team is trying to configure GSuite so that, when our users log into Salesforce their data is updated to match what is stored for their user in GSuite. It's worth noting the following: We have ...
0
votes
1answer
25 views

Aura Component don't catch event from another one

Lightning Event: tripEventer, attribute - trip, Trip__c Component Item: <aura:registerEvent name="openTripEvent" type="c:tripEventer"/> <lightning:button class="slds-align_absolute-...
0
votes
1answer
51 views

Is it possible to use LWC with public access?

We built wizard using LWC. Is it possible to publish wizard like visualforce on public page?
1
vote
0answers
94 views

Lightning App Builder is empty

This morning I entered the sandbox and I found the surprise that in the Lightning App Builder (Chrome & Mozilla) does not appear any component, nor does it let me drag any to the page. Normal ...
1
vote
2answers
30 views

LWC1041: Static id values are not allowed in iterators. Id values must be unique within a template and must therefore be computed with an expression

I am getting this error: LWC1041: Static id values are not allowed in iterators. Id values must be unique within a template and must therefore be computed with an expression. In my Lightning Web ...
0
votes
1answer
26 views

Helper Uncaught Error

I'm getting this error Object.verify_trigger_proccess()@https://[COMPANY].lightning.force.com/lightning/r/Account/[ID]/components/c/event_layout.js:79:24 Object.eval()@https://[COMPANY].lightning....
0
votes
1answer
74 views

Lightning empApi Not working in lightning component [closed]

I am currently displaying lightning component with list of cases, as soon as new case has been created at the back end, the front end lightning component should show new cases without refreshing the ...
0
votes
1answer
79 views

Read URL parameters in LWC salesforce

I am using lightning navigation to pass recordId from parent component to child component. On button click i am navigating to child component like below url - https://XXXXXXXXXX.lightning.force.com/...
1
vote
2answers
35 views

How to adjust min-height of Salesforce Lightning input rich text component on load

I would like to change the min-height of a Salesforce Lightning rich text component. The original code (old vendor) used a long text area and Aura. I changed it to rich text area using lightning:...
1
vote
1answer
35 views

Not getting recordId in URL generated from lightning-navigation

On button click on parent LWC component, i am calling lightning-navigation to call child component. I am passing recordID in the attributes as below - <template> <lightning-button label="...
1
vote
0answers
45 views

Record not getting saved with lookup field, but does when the field is blank

I am new with Lightning and Javascript. I am trying to learn component level events in Lightning. I have made a custom object Pincode__c child of Account object(Lookup). Name and Account__c being the ...
0
votes
0answers
18 views

“Switch users to Lightning Experience on a regular schedule” Option is missing

I am trying to setup a schedule to switch users on a regular basis to the lightning experience following the instructions given @ https://help.salesforce.com/articleView?d=lex_enable_users_autoswitch....
0
votes
0answers
17 views

Apex Unit Tests in Lightning [duplicate]

How can I write unit tests for this Apex class in Lightning to make sure that Account and Contact records are being saved to the server?
0
votes
1answer
28 views

Embedded Chat encoded characters MVC Application

We are implementing the Embedded Chat with SalesForce. I believe it is the Lightning chat and it is currently in "beta" from my understanding. We have having issues with different coding characters....