Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey 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.

0
votes
0answers
26 views

How to use pick list in lightning?

Component <aura:component controller="contactSaveCtrl" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:...
0
votes
1answer
491 views

Lightning Event with multiple components as handlers?

We have created a lookup component that we are reusing throughout our lightning app. Because these lookups are under each other, I would like to have all other the drop downs be closed as soon as one ...
4
votes
2answers
7k views

Lightning/Aura Components: component.find().getElement never accessible

What are the actions that might destructively interfere with the lightning app's lifecycle? Is a breakpoint\debugger statement one of such? For example there is a case that I happen to meet regularly ...
1
vote
1answer
29 views

How to upload files to a related record using lightning components?

I'm trying to upload a file to a related record using just the <lightning:input> component. The <aura: component> includes the force:hasRecordId and by using {!v.recordId} I am able to ...
1
vote
1answer
53 views

Tooling API - Invalid field issue

I am using Rest API to update the Apex trigger using ApexTriggerMember. I am using the below json string as body in request. String json = {"MetadataContainerId" : "1dc7F00000DD9UYQA1", "FullName" : "...
1
vote
1answer
39 views

Display apex error message in lightning component

I am trying to display apex catch exception error message in lightning message. I have tried below in helper. but it didn't work. And let me know how to call this from Lightning component. Helper: ...
0
votes
0answers
13 views

Placement of Quick Actions

I created a Quick Action to do the job of a URL hack, create a new related record with auto-populated fields. (Like this) Now, I want to use this action in a community layout that I built using the ...
0
votes
2answers
40 views

Style in lightning datatable. Overlap values

I have a lightning datatable, and I have a problem. If I edit the bottom column, the values is overlap on the table Steps: click on editIcon on botton column (OK), click on editIcon on other value of ...
0
votes
0answers
105 views

Error when loading account detail page in lightning UI

I have a picklist field in contact called Merge_Date_Text__c. Since I am using person account, it displayed as Merge_Date__pc in account and this field is displayed in account detail page. So when I ...
0
votes
0answers
16 views

how to remove lable in lightning record edit form fields

i want to remove field label in lightning:inputfield.i use variant="label-hidden",but lookup fields labels are not removing it removing label for other type fields.
0
votes
1answer
18 views

Is there a way to conveniently preview a Visual Force Page in VS Code?

So I'm trying to switch my IDE from the Developer Console to VS Code. But the thing is that the changes we make to a lightning component or a vf page in the dev console reflect in seconds on the app ...
0
votes
1answer
533 views

Unable to automate salesforce lightning components using selenium web driver

I have automated classis view in salesforce but in lightning view same elements are not recognizable by selenium webdriver. VF embedded controls are not recognizable in lightning mode
0
votes
3answers
386 views

response.getState() is coming as error in helper

I am trying to complete Apex Framework specialist. Challenge 3. I have the following method in class public class BoatSearchResults { @AuraEnabled public static List<Boat__c> ...
1
vote
0answers
29 views

Lightning component works properly on Sandbox but does not on Production

I have a Visualforce page that uses $Lightning.createComponent to handle Lightning component. This page has standardController="Account" and used as replacement of standard action "Create new Account"....
1
vote
0answers
15 views

How to customise columns in Add Products popup

Question How do I customise the columns that appear in the Add Products popup which appears if you click the Add Products button on the Products related list on the Opportunities record page? What I'...
0
votes
1answer
318 views

Case Owner Name not showing in Lightning ListView

I edited All Open Cases in Lightning Experience to display Case Owner but that does not even show as an option in fields to select. I switched over to classic view and added it to the fields selected ...
1
vote
1answer
22 views

Input Validity when dynamically displaying fields

My form requirement has 12 toggles. If a toggle is selected, a text area field is displayed and input is required. All text area fields are hidden unless the related toggle is selected. If 2 or more ...
0
votes
0answers
17 views

Lookup Filters in custom lightning:recordeditform lightning:inputfield using prepopulated values

I'm using lightning:inputfield in a lightning:recordeditform for lookup fields - we'll call them Party and Warehouse. The Warehouse lookup has filters on it based on the Account field - Warehouse....
1
vote
0answers
16 views

Change the style of 1st list's element through onclick from 2nd list's element

I have 2 lists. First is all my objects. Second - selected object (I use "Select" button to add my obj to second list but without deliting it in the first list). I can also delete the objects from the ...
1
vote
1answer
45 views

Convert Lead button working in Lightning and Sandbox but not Classic

The Convert Lead button has suddenly stopped working in Classic. The button is on the lead page but when clicked nothing happens. No changes have been made to permissions and I've rechecked them all. ...
3
votes
1answer
2k views

Lightning Service component for picklist values

I am trying to create a service component as illustrated in Trailhead https://trailhead.salesforce.com/trails/lex_dev/projects/workshop-override-standard-action/steps/override_2 In this module it ...
0
votes
0answers
16 views

How to pass record Id to another lightning component?

I'm creating a button from a custom object's record, say for example 'OSample'. The button is to call a lightning component or form that enables the user to update a donation. since it needed to be ...
12
votes
1answer
117 views

Value provided is invalid for action parameter [VAR] of type 'String'" instead

Seems like upcoming changes in Spring 19 are causing us issues with "AuraEnabled" methods. Since forever now, primitive types were sent from Aura to APEX as String only as explained here: https://...
1
vote
1answer
19 views

How to setup Salesforce Identity Provider to work with Twilio Flex

What is the process to setup Salesforce Identity Provider to work with a 3rd party like Twilio Flex? Whenever I try to login, I get this error: Incorrect HTTP Method
3
votes
0answers
21 views

Lightning datatable not loading data when scrolled to the bottom

I have created a lightning component which has a lightning:datatable that loads more data as I scroll down. The data loads fine when I use the component explicitly in an app. In the below picture ...
3
votes
1answer
529 views

Is the Potential Duplicate Standard Component also for Custom Objects on the roadmap?

I found that there is an Potential Duplicate Lightning Component (Standard) available for Lead, Accounts and Contacts. The components has also a merge process build in. This is very nice and important ...
2
votes
0answers
58 views

Files Upload is not Working for Community Profiles

I have created one file upload component page and using that page in the community portal but when I'm uploading a file a file its not working. If I'm doing the same with a console app, then it is ...
0
votes
0answers
15 views

Is there a way to create a custom toast instead of a javascript alert on a visualforce page? [duplicate]

What I require is that when I select a value from a picklist I need a toast that has a message for the user. I have already achieved this through the js alert but that wasn't that difficult. But I don'...
0
votes
1answer
33 views

How to use Lightning lookup component in PageBlcoksection of VF Page?

I have created a lightning lookup component using below link ReUsable custom Lightning component But I need to be placed this into PageBlock section of VF Page. <apex:pageBlockSection title="...
0
votes
0answers
19 views

Dynamic data table in salesforce Lightning [on hold]

I am currently looking for a possiblity to display an empty data table to accept the data from the user and create custom records in salesforce using the rows that user entered in the table. Give a ...
0
votes
1answer
25 views

How to use custom label during call of Lightning Component in VF Page

I am trying to use custom label during call of a lightning component in Visualforce Page. but its giving me blank value. can anyone please help me how i can do this, CODE: $Lightning....
1
vote
1answer
520 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 { //...
2
votes
1answer
500 views

Tabs with custom field sets on record pages

I would like to customize the contact record page to display different fields under different tabs on the page for organizational purposes, instead of displaying all of the custom fields under the ...
0
votes
0answers
18 views

How to create the Dynamic table in Lightning component

I am new to Lightning, I wants to make this below table dynamic, So once the searchResult will be having respected data i can show it dynamically by using Iteration tag. Column name and Rows should be ...
2
votes
1answer
523 views

Display tabs conditionally in record page

In the custom record page for an object, can I show or hide tabs based on record type? For example, I want to show a tab "Incident Details" if record is an Incident and "Service Request Details" if ...
0
votes
1answer
26 views

How to remove Lightning Component Button from a page under certain conditions?

I have a button on a custom object which was built as a lightning component. I want to remove the button once the custom object has a Status updated to 'Completed'. Do I do this in code or is there a ...
0
votes
1answer
17 views

Change the div's css style in <aura:iteration>

I have a component: <aura:iteration items="{!v.objects}" var="obj"> <lightning:layout multipleRows="true" class="layoutBigCardsColumn"> <div class="slds-...
0
votes
2answers
517 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
0answers
13 views

Save Email Conversion

I'm trying to use the Lightning Experience UI to send an Email from a Record Homepage via the Activity tab. That way the email that sends from this UI is saving (in a not surprisingly way) in the ...
0
votes
1answer
529 views

How can I display parent Id when I am creating a child record from parent's related list?

I am trying to create a child record from parent's related list(which has custom lightning component). When I click on 'New' from related list(to create a child record), the popup should automatically ...
0
votes
2answers
547 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
1answer
27 views

How to currentdate.getDate() in JavaScript for Lightning Web Component?

I'm trying to write a test class to automate my several tests in register forms, but the JavaScript currentdate.getDate() isn't working for some reason that I don't know. I'm trying the following: ...
11
votes
3answers
1k views

Lightning container : index.html not in the right folder

I try to use the lightning container to display an element in a salesforce component. So, I have this code : <aura:component access="global"> <lightning:container aura:id="timeline" ...
0
votes
0answers
21 views

get image from Attachments related to record and render into lightning:inputrichtext as a preview [on hold]

I need to display Images inside lightning:inputrichtext as a preview. The image will be related record from Notes and Attachment object. Is this is possible?
1
vote
0answers
26 views

I am clicking delete record and record are getting deleted but it does not refresh the table in LWC

import { LightningElement, track,wire,api } from 'lwc'; import getContactList from '@salesforce/apex/ContactController.getContactList'; import deleteContacts from '@salesforce/apex/ContactController....
0
votes
0answers
21 views

lightning component to sort task based on status then second priority is created date [on hold]

I am trying to sort the lightning component of task based on status then by created date. When I click on sort by Status, it should update the second sort of created date by ascending. So in the below ...
0
votes
1answer
536 views

Not able to remove Import button from Contact list view in lightning

I have deselected the "Import Personal Contacts / Import personal accounts and contacts" under "App Permissions" section on the custom Profile. But still list view shows "Import" button. How can I ...
0
votes
1answer
37 views

Custom Lightning Component for Gmail or Outlook Capability

I have the following business requirements for sending email from Salesforce and I'm wondering if I can accomplish this by building custom components for the email application pane in Lightning: ...
9
votes
1answer
519 views

Lightning modals don't support scrolling reliably (overflow)

I' not talking about homegrown modals (Strike, plain SLDS CSS) but about native modals that Salesforce is displaying e.g. on custom NEW actions or via e.force.createRecord. If you have too many ...