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-aura-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
14 views

Lightning Application CSS rendered inline

For all lightning applications in my sandbox, I'm noticing all of the SLDS CSS is being rendered inside an inline <style> tag - over 4,000 lines of CSS inline. I would have expected the SLDS CSS ...
1
vote
0answers
19 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
1answer
17 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 ...
1
vote
2answers
33 views

How do I get a dynamic list of object field names to present in a lightning duallistbox

I'm still relatively new to lightning and APEX, and I've read (it seems like) 100s of posts / examples of how to do this, because it seems like a lot of people ask this, but I cannot make it work. I ...
0
votes
0answers
13 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 ...
0
votes
0answers
16 views

Dynamic lightning components not displaying all items

We are building a lightning component dynamically to display a question screen. This component was originally written by an outside vendor and is working fine. I need to add a rich text field. Not ...
0
votes
0answers
11 views

Lightning modal file previewer

So I was using the lightning:openFiles event to allow users to preview, update and download their files. However, the Saleforce docs are not happy about this: The lightning:openFiles event is no ...
2
votes
3answers
30 views

How to pass dynamic arrays in Lightning

I'm not able to pass a dynamic string array into a component without using java script. Example: values="{!v.foo + ',bar'}". In this example, the (expected) array seems to be passed as a String. I ...
0
votes
0answers
32 views

Lightning component doesn't refresh on second search

I am trying to load a Google map VF page in my lightning component and display leads based on city searched. The component loads properly with the leads on first search but on the second search the ...
1
vote
0answers
15 views

Alternative to lightning:overlayLibrary in LightningOut

I have a Visualforce page which loads a Lightning Aura Component using LightningOut. The Lightning component uses a <lightning:overlayLibrary component, which is not supported in LightningOut. ...
0
votes
1answer
16 views

Error in $A.getCallback() [Cannot read property 'fire' of undefined] failed: $A.get('e.force:refreshView').fire();

Background I have a Visualforce page which loads a Lightning Aura Component using LightningOut. When the Lightning component executes this line: $A.get('e.force:refreshView').fire(); I get this ...
0
votes
2answers
38 views

Lightning component code

Is it possible to embed two call back function in single function in lighinting component code: Apex class: @AuraEnabled public static Profiles__c getconfig() { return Profiles__c.getInstance(); } ...
0
votes
2answers
25 views

Show message and grey out button in lightning component

I have a component and I want to show a message and grey out the button if some fields are not filled, how to do this? Component: <aura:component controller="purchaseOrderComponentController" ...
3
votes
0answers
18 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 ...
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
23 views

Compare fields in lightning component

I have a lightning component which the goal of it is to open a page if some fields on the record are not null, how to compare those fields to null? Here the component: <aura:component controller="...
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
22 views

Generate breadcrumbs dynamically in lightning navigation topics, using <aura:iteration>

I am trying to build a lightning component which would generate breadcrumb dynamically in response to a onclick event on the Navigational topic bar, in lightning communities. I am referring to the ...
0
votes
0answers
10 views

How to redirect to CPQ Quote Line Editor page in an action/button

I am trying to implement a button/action to redirect directly from opportunity to related quote line editor. However, quote line editor is no longer a VF page now. I am not even sure whether it is a ...
0
votes
1answer
13 views

Help in Lightning Sharing Component in Visualforce

I would like to run Lightning component in Visualforce but it keeps failing. Here is a error I keep getting. This page has an error. You might just need to refresh it. Action failed: c:...
0
votes
1answer
16 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-...
-1
votes
1answer
18 views

Salesforce Lightning Component Picklist Value

Hi have a requirement as follows:- I want to make a Picklist value in the lightning component. After using the lightning:Select still i am not able to get the values provided in the list. Codes as ...
2
votes
2answers
27 views

How can you get the caret position when working from an event?

Looking at the Locker documentation they list selectionStart as being a valid attribute, but I can't find a way to access it. I am trying to write an input masking utility, and everything works fine ...
0
votes
0answers
20 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?
0
votes
0answers
19 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
0answers
13 views

Multiple recordEditForm forms field value check

I have a requirement that must replace the functionality of a third-party software in which a list of opportunity team member roles must all be assigned in a single screen. To accomplish this, I have ...
0
votes
1answer
23 views

Lightning component button refresh

I have a lightning component button that updates the status of a case when clicked in Lightning. Is there a function that I can use to have the page refresh when clicked because as of now, I have to ...
0
votes
1answer
15 views

Lightning:radioGroup type 'Button' size

Is there a way to create a lightning:radioButton with type='Button' with same option size? e.g. i wanna set the size like following: and obviously center the label inside. Thank you.
0
votes
1answer
19 views

How To Build Collapsible Lightning component of 3 level

How To Build Collapsible Lightning component of 3 level Level3 +Level2 Level1 level2 dependent on level3 and level1 dependent on level2 for ex:Bundle product--> Option Product --->Features one ...
0
votes
0answers
18 views

reload the lightning page after calling vf page from lightning controller

I have a lightning component from where I am firing a vf page. That vf page is downloading some data as excel file. I want to redirect to same lightning page after the calling the vf page. but it is ...
0
votes
2answers
32 views

String Split function is not working in the Lightning JS contoller

I am getting array of string from component's attribute to lightning controller, now I want to split that string to comma separated values and want to assign that to another component variable but ...
0
votes
1answer
26 views

How to send the div's style through button's onclick in <aura:iteration>?

Even the example from "Lightning Aura Components Developer Guide " doesn't work. I can't set the style to my div. It's because of iteration. How can I fix that? cmp: ...
2
votes
1answer
15 views

How to display Action colum when we convert VF Page into lightning page?

I have contact related list under the account. in Classic if I open any account the related contacts are showing with action column where we can check multiple contacts and mass update(Custom button). ...
4
votes
1answer
442 views

How to add a functionality to stop copy paste on an input field in lightning?

I'm making a form that includes two fields, Email and Re-Enter Email. I don't want the user to copy and paste the email id in the second field. I have to prevent right clicks on the re-enter field and/...
0
votes
0answers
10 views

Lightning Component isn't available in community builder

I have this at the top of my component <aura:component controller="ProjectAndTicketListController" implements="forceCommunity:availableForAllPageTypes"> Is there any reason why this isn't ...
0
votes
0answers
12 views

lightning $A.createComponent doesn't execute the methods in the created instance

I have the below code to instantiate a custom lightning component in the init() method in the lightning controller, unfortunately this doesn't give me the expected output. can someone help? $A....
7
votes
2answers
167 views

Recursive lightning component - how to know when it's fully rendered?

I’ve got a lightning component that creates itself recursively and asynchronously in order to fully render a tree-structure data. Here’s a sample code that simplifies the problem. TestApp.app <...
0
votes
0answers
9 views

Filetype error in community, only happening in sandbox but not in Production

I am receiving below error when I am trying to upload a .FNM file in my community. No code has been changed but it is working in Production with same code but not in sandboxes, does this have ...
1
vote
1answer
33 views

lightning:recordViewForm will not load Product2 object on mobile

I have a simple Product2 details component. Component <aura:component implements="lightning:isUrlAddressable, flexipage:availableForAllPageTypes"> <aura:handler name="init" value="{!...
-3
votes
1answer
35 views

How to Retrieve Parent Object Custom Field in Lightning Controller?

I have a custom field Entity_Id__c on Opportunity Object. I'm building a Lightning Component and want to use from Quote Object via Lightning Action as below : <aura:component implements="force:...
0
votes
1answer
29 views

Increase size of Lightning Component to fit properly on a record page

The component I created on the right appears smaller than the activity card. I've tried several ways to increase it's size but have failed. Is there a way to make it look like the card below it? ...
1
vote
1answer
16 views

Raise an onblur event in lightning:tab

We are creating tabs in a tabset dynamically. We need to save a record when a tab loses focus. For some reason, the onblur event is not raised. onactive works fine, but we already lost the focus of ...
1
vote
1answer
21 views

unable to fetch latest attribute value in lightning

I have picklist in lightning. On onchange fuction it is getting a data from apex method and setting it in a attribute. And just after that when i trying to fetch the value of that attribute. I am ...
0
votes
0answers
10 views

salesforce 1 IOS standard back button

On click of app on navigation menu, Parent component 'A' gets open,which inside init method redirects to another component B.On IOS, When click on standard back button, it redirects to component A, ...
0
votes
1answer
12 views

Capture the same event in 2 lightning components

I have two different lighting components that launch an overlay with the same component inside it. The overlay provides the user a modal to select some options and upload a file using lightning:...
0
votes
0answers
17 views

lightning:input press enter and hide mobile keyboard

I have a <lightning:input which is used to search for products. CMP <lightning:input onchange="{!c.handleSearchTermChange}" aura:id="searchTerm" label="Search Products" type="search" /> ...
0
votes
0answers
15 views

How to use label of the object used as defoult for list type aura:attribute

So my problem is: <aura:attribute name="statusOptions" type="List" default="[ {'label': 'pot7', 'value': 'Success'}, {'label': 'pot8', 'value': 'Failed'}, {'label': 'pot9', ...
0
votes
1answer
18 views

<ui:inputradio is allowing to select multiple records

I have used "<ui:inputRadio>" tag for selecting the one record in the list of records.It is working fine when the all the records are loaded in one page. Its allowing to select multiple ...
0
votes
1answer
14 views

Display popup modal on browser close on community

I am using lightning:unsavedChanges to achieve this on community.But when I click on browser tab close, it just closes the browser and doesn't display custom demoModal component. I have added below ...
1
vote
1answer
14 views

When having two wrapper class arrays of similar value in lightning component, updating one of them will automatically update another

So when we have two arrays of Apex wrapper class records in lightning component of the same source (one is a slice(0) of another), Updating one of them will result in another one updated accordingly. ...