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

Questions tagged [lightning-components]

The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth.

0
votes
0answers
3 views

Lightning Component does`t send any email

I can`t solve the following problem. I have a custom object with several fields. One of them have Lookup on Contact. And in my component I try to send email with the rich-text from record to email ...
0
votes
0answers
14 views

How to pass list of records lightning component input Typetext

I created lighting component pass the variable single record(Opportunity and user )values working fine.but OpportunityLineItem line item have list of records is there.How To pass list of records in ...
0
votes
1answer
15 views

Displaying record in row wise with specific size

How to display the Tiles like below Suppose I have 10 records. First row- 3 tiles Second row - 3 Tiles Third row -3 Tiles Last row- 1 Tiles But In my case it appears one below the ...
0
votes
0answers
20 views

Converting a javaScript Button into lightning component button

There is a JavaScript button, which I need to convert into lightning component button. {!REQUIRESCRIPT("/xdomain/xdomain.js")} {!REQUIRESCRIPT("/support/console/37.0/integration.js")} {!...
3
votes
0answers
24 views

Accessing a nested component that was added to a facet by a parent component

I am trying to enable a component to focus a particular nested child component (which happens to have been placed in it's facet by a parent component) upon some action happening in the component. ...
8
votes
3answers
215 views

What is involved in moving over to Lightning Web Components?

I read: Aura Components, leveraging its own component model, templates, and modular development programming model. Lightning Web Components, built on top of the web standards breakthroughs of the ...
0
votes
0answers
5 views

Lightning:tabset rendering 1 of 2 tabs in “more” dropdown (only in classic)

I have implemented a lightning component that is exposed in a visualforce page through a lightning out app - completely 'by the book' stuff. In this component I have a tabset consisting of two tabs: &...
2
votes
0answers
18 views

Salesforce Platform Cache not working in Sales Console

I am using the Platform Cache to store the Id of the customer the salesperson is speaking with on the phone, such that different Lightning Components automatically load the customer's details as the ...
0
votes
1answer
24 views

lightning:recordEditForm not showing lookup search window in community

I'm using lightning:recordEditForm to create new opportunity my code is <aura:attribute name="objAPIName" type="String" default="Opportunity"/> <lightning:...
0
votes
0answers
12 views

How to add images as design attributes in lightning community builder

I am building an unauthorised(public access) community page with lightning components. I want to give user ability to add images as background for components. Currently what I am doing is I am ...
0
votes
1answer
15 views

Aura:if - check with a regular expression

Is it possible to write aura:if conditions with regular expressions. Ia m trying remove records if the a certain field in that record is not a number. <aura:if isTrue="{! !add....
0
votes
1answer
38 views

Take 20 - Refreshing Page after Update

I've posted a version of this question the other day but I've made some changes and I think I'm almost there. Originally, my component was not getting refreshed at all. I reworked it. I have a ...
0
votes
1answer
30 views

What is the logic of updating account records and then saving it in db, in lightning? [on hold]

Component <aura:component controller="WrapperClassLightning"> <aura:attribute name="accountRecord" type="Account" default="{sobjectType:'Account', 'name':'Test ...
10
votes
3answers
353 views

Will Lightning Web Components have retrocompatibility?

I've just read here that Salesforce decide to change the framework used for Lightning Component. In according with this article, it seems very powerful under some aspects. In your opinion, the actual ...
1
vote
1answer
18 views

Issue with passing parameter from vf page to dynamically created Lightning Component

I am trying to pass a list of Opportunity records from VF page to a Lightning component but the result in LC is not what is expected. Only the IDs of the records are being retrieved. Below sample of ...
22
votes
1answer
846 views

What are Lightning Web Components

Salesforce has just announced a new feature, Lightning Web Components. What is this? What does it have to do with Lightning Components and the Lightning Component Framework?
0
votes
0answers
16 views

Lightning component capture modal closed event

I'm using lightning:openFile event to allow users to upload new versions of a ContentDocument. I know Salesforce recommends not to do that. But tough. Anyway, I need to capture the event fired when ...
1
vote
2answers
42 views

How to load multiple records using lightning data service

I want to load multiple records using lightning data service without using any apex controllers. Is it possible?
2
votes
0answers
27 views

createComponent error on first try

I have a Lightning Component that displays a list of links with onClick handlers and an id value that represents a record in Salesforce. <aura:iteration items="{!v.projects}" var="p"> <a ...
1
vote
0answers
18 views

How to embed lightning pill into a lightning input

I have a lightning:input text area where the user is allowed to search for users. I display the search results based on text. From there, I allow the user to click on the user of their choice and want ...
1
vote
0answers
20 views

Component Refresh Not Happening

I have a component that is opened with an action. On the account, I have a button that opens the component. When I do this, I can see the DoInit firing. However, if I navigate back to that account ...
0
votes
2answers
22 views

Get Lightning Component Nested Inside Another Nested Component [duplicate]

I have a scenario where my Lightning component needs to reference a value inside the child component of a nested component. The nesting looks like this: - Lightning Component - Nested Component 1 ...
-2
votes
0answers
26 views

salesforce application [on hold]

I have question I created Salesforce site, which includes visualforce page, which includes lightening application, and the i build my lightening component Salesforce site-> visualforce page ->...
0
votes
1answer
32 views

record:editform for input lookup field pop up search option is not working

I have created a a lightning component record edit form in VF, which has a input lookup field for custom object named Heading. In the lightning component when I search for a Heading name, it will ...
0
votes
1answer
22 views

lightning:inputRichText & lightning:formattedRichText isn't working with email Template Body

I am having text EmailTemplates in my org where body contains new lines but when I copy the EmailTemplate body to lightning:inputRichText, lightning:formattedRichText either it is displaying it in one ...
0
votes
2answers
27 views

Change the title of a slds button in JS controller

Maybe this has been asked before, but I was not able to find it anywhere. I am trying to change the title of the slds button on click through controller. I am trying to get the current title through ...
2
votes
2answers
23 views

How to use “Custom” SLDS icon in lightning:icon tag?

I have a page header component that I have built using the SLDS styling, but I since SVG tags aren't allowed in lightning components, I can't use the my custom icon (my custom object uses the airplane ...
0
votes
2answers
30 views

Refresh when navigating back to component

I open a second component to add some records and when I save, I navigate back to the original component. The problem is that the newly created records do not display on the original component. The ...
0
votes
1answer
14 views

How to install Third party Lightning components to Sandbox

I am trying to install the third-party lightning component to my sandbox.Below is the link https://sites.google.com/view/flowunofficial/flow-screen-components/fsc-dynamic-question?authuser=0 When I ...
0
votes
1answer
21 views

VF page inside a lightning component - Issue with Visualforce Remoting: Javascript proxies were not generated for controller

I have embed existing legacy VF page inside a lightning component. In this page I am calling a remote method onload event for window. Here we are getting following error: "Visualforce Remoting: ...
0
votes
0answers
20 views

Cannot hide div onblur

I had to create a drop down using a icon and hidden div to act as a button menu for a lightning component exclusively for the mobile app. When the icon is clicked a drop down menu is displayed, and ...
0
votes
3answers
39 views

How to override CSS of Lightning Component

I want to change the styling of several Lightning Component elements such as: Changing the background of navigation of Tabset from light grey to blue: From this To this The code I written in .cmp ...
-2
votes
2answers
31 views

How to set record type id for <force:recordEdit> component in lightning [on hold]

Component: <aura:component implements="lightning:actionOverride,force:hasRecordId,lightning:isUrlAddressable" access="global" > <!-- Events --> <aura:handler name='init' value='...
1
vote
0answers
24 views

create account from a button inside aura iteration and set account id to the adjacent lookup column

I am new to lightning. I am inserting list of contacts in aura iteration with account lookup. I made custom component for searching account, which works fine. But i also need to give option to create ...
3
votes
1answer
120 views

How do I produce a “New” record button to look like a standard “New” button?

Basically I want to create an input area for a new record. I'm trying to get it styled like the standard "New" Button. I have tried doing it via Visualforce but it looks like a completely separate ...
7
votes
1answer
155 views

What is the cmp.addValueProvider() feature designed for?

To implement something like a public ValueProvider I implemented a component combining the features out there to have static values available in js and markup. Now I'm having trouble using the ...
0
votes
1answer
46 views

Using lightning component inside Aura:Iteration. It doesnt display anything not even any error

Im using lightning component inside Aura:Iteration. It doesnt display anything not even any error. PFB Code <aura:component > <aura:attribute name="item" type="Camping_Item__c" required="...
0
votes
1answer
21 views

How to apply event listener (keypress) only in current component?

Currently I am using an <lightning:input> with an onkeypress listener. Everything is ok, but it applies whole component. For example I press 'enter'. I didn't write this code but it execute ...
1
vote
0answers
16 views

How can I send a custom pageview to Google Analytics?

Has anyone used Google Analytics with Communities before? There's a cool event called forceCommunity:analyticsInteraction that lets you send custom events etc. https://developer.salesforce.com/docs/...
0
votes
1answer
20 views

Lightning combobox options attribute not showing any options!

I am trying to populate the options attribute of the lightning combobox to the values of a component attribute. The channels component attribute has all the values in it, but for some reason it doesn'...
2
votes
1answer
24 views

SLDS Class to Filling Available Height

I'm working in the Lightning Design System and building components that need to have a flexible height. In other words, they should stretch to maximum height available on the page. Here's an example, ...
2
votes
1answer
27 views

Nested Wrapper data not being return in lightning component callback

I currently have this very nested wrapper class, public sharing class ResultWrapper { //This wrapper is contain more wrappers that goes as far as 5 level deep. @AuraEnabled public ...
0
votes
1answer
20 views

Lightning Flow from a Case

I've created a simple Lightning Flow that shows just one screen. That screen includes a Lightning component with one input field. (This is a very simple test case.) Then, from the Case object, I ...
1
vote
1answer
51 views

How to hide middle 4 number of mobile number?

We are using Open CTI in our system. I have developed a lightning component to display some lead's information in the side bar. In the lightning component I use to complete the click to dial funtion. ...
1
vote
1answer
112 views

How to use Aura:Iteration index variable inside a placeholder?

I have a component which has a list of teams over which the aura:iteration is looping. I want to use the placeholder attribute of lightning:input as such: <aura:iteration items="{!v.dToPart.teams}"...
0
votes
1answer
31 views

Aura:if not working as expected?

I am trying to display the price of the item if the price is not equal to 0. Whats would be wrong with the usage below? The '0' here is a currency data type in the custom object. Please advise! <...
2
votes
1answer
67 views

How do you center align the text of the column headings for a lightning:datatable?

I'm able to apply color or make the column heading text bold, but I can't center align the text for some reason. <lightning:datatable data="{! v.data }" columns="{! v.columns }" ...
2
votes
2answers
45 views

CSS Error in auraErrorBox

I'm suddenly getting a weird error, apparently having nothing to do with any of my new code (I undid all my code changes and the error persists). <div class id="auraErrorMask"> <div ...
1
vote
0answers
30 views

Custom Popover position and styling issues

Using a custom popover is causing issues as it removes the scrollbar from the screen when it opens, causing the screen to shake slightly when it opens and closes. I've attempted to apply position:...
0
votes
1answer
37 views

Using ui:inputCheckbox with LDS not showing value

Using ui:inputCheckbox with LDS for a new contact is giving me error if I don't select checkbox. If I select the checkbox and then unselect it, it works, else it is giving an error ...