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-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.

5
votes
1answer
41 views

How to use @AuraEnabled base class method in Lightning Component?

We are consolidating our common methods into an Abstract controller base class. Here's an example: public abstract class CommunityControllerBase { /* Returns a select option list of ...
2
votes
1answer
24 views

Which loads faster on a lightning component, HTML and Javascript or Lightning

I am wondering which would load faster in a lightning component. Something like this <input id="testId" type="text"> or <lightning:input label="Name" name="myname" /> I suspect on a ...
0
votes
2answers
28 views

Change backgroud color of a checkbox

I want to change the color of my checkbox in lightning I have the following piece of code in my cmp <lightning:input type="checkbox" label="P" class="{!(v....
-2
votes
0answers
21 views

An internal server error has occurred Error ID: 578365434-163689 [duplicate]

when i running a visualforce page contains an aura component i have faced this error with no log: An internal server error has occurred Error ID: 578365434-163689 (1528725411) what mean this error? ...
0
votes
1answer
25 views

$A.util.removeClass not working sometimes

I've created rerenderer function to hide the field after component is loaded but it still doesn't work as expected. Note: I've not added slds-hide or slds-show class in component. Just trying to hide ...
0
votes
1answer
24 views

User Upload Image for Lightning Component Background

I am building a landing page and want the user to be able to set the background image for one of the components I have on the landing page. I have a lightning component on a public community page ...
2
votes
1answer
32 views

Can't change case Owner in Aura using <lightning:recordEditForm>

Is there any way to change Owner of case using Lightning record edit form? I Want to use OwnerId Field only. When I use <lightning:inputField variant="label-hidden" fieldName="OwnerId" ...
0
votes
1answer
17 views

How can i do pagination based on filter picklist values

I am not getting first 5 records based on filter value instead i am getting all records of particular filter value. all i need is i record is greater than 5 it must show on next button and if less ...
0
votes
2answers
21 views

add items to approve component in lightning community?

I have a custom community but it doesnt appear the component 'Items to approve' to add. I have an approval process and the approver is a Partner User. I need that my partners community users be able ...
0
votes
1answer
16 views

How to get the field value dynamically in lightning component?

I have added the lightning component in lightning record page .I want to dynamically get the object name and its field value . I am able to get the object name but when i try to get the field value it ...
0
votes
1answer
20 views

lightning:buttonMenu - menu layover issue

I've created a lightning component which has a menu and this is how it opens: Does anyone know how to solve it ?
0
votes
1answer
21 views

Why lightning:fileUpload doesn't work on public sites?

I'm using lightning:fileUpload inside a lightning component and I'm testing it on a public site, but when I attach a file/files the modal box with the Done button doesn't show up. When I'm testing ...
0
votes
1answer
23 views

Is it possible to use navigateToSObject with data tables

I am using below to convert Subject column to hyperlink as below {label: 'Subject', fieldName: 'linkName', type: 'url', typeAttributes: {label: { fieldName: 'Subject' }, ...
0
votes
0answers
28 views

Look up field not showing results - Lightning Component via Lightninh Out

I built a form using Lightning Universal Lookup Component - Managed Package. I'm using it in two different fields, here is the first field where it's working perfectly. This is the markup for that ...
2
votes
1answer
13 views

lightning:QuickActionAPI - setActionFieldValues not working on tall components

I have a record page which consists of A quick action which opens a simple "Quick add" Quick action (creates a child record) An aura component with a single button that (successfully) calls the same ...
-1
votes
2answers
43 views

Variable is not passing from helper.js to apexcontroller?

navigateUrl : function (component, event, helper) { var action=component.get('c.DeletingRecord'); action.setCallback(this,function(response) { var state=...
0
votes
1answer
48 views

Lightning - OpenSubTab in Service console app

I am trying openSubTab on a service console application when user click on the member name. When I do so it giving error which i am not sure what I am doing wrong here. Could you please shed some ...
0
votes
0answers
27 views

Need to hyperlink only URL that should open in new window after clicking

We have a scenario where Success guidance is a rich text area field in that text are available along with URLS. That filed values are displayed in lightning components but in lightning component the ...
0
votes
1answer
29 views

Problem with Lightning Navigation?

I am trying to lightning navigation, I am using the code of official docs (https://developer.salesforce.com/docs/component-library/bundle/lightning:navigation/documentation) .cmp <aura:component ...
0
votes
1answer
32 views

How to use Array.map() in Lightning Component JS File

I was going through this blog to understand foreach loop, but the blog says that use of Array.map() is more efficient than for foreach. So, I tried implementing that in my Lightning Component, but it ...
1
vote
2answers
37 views

lightning:datatable won't show data in column with type of 'boolean'

I am trying to render a lightning:datatable in a custom lightning component and for some reason the columns with a type of 'boolean' are not displaying data. The chrome console verifies that the ...
0
votes
1answer
29 views

Is there a way to see if a change occurred in a dual Listbox component?

I am using salesforce's dual list box aura component and controller. Markup <aura:attribute name="displayUserSettings" type="boolean" default="false" /> <aura:attribute name="...
1
vote
1answer
31 views

List button that calls a VF page, how to get it to work in lightning?

currently on the account ojbect i have a related object that has a list button /apex/New_Service_VF?pId={!Account.Id} that runs a VF page. Now i'm thinking of making a quick action that initialized ...
0
votes
0answers
27 views

Generate PDF from JSON data in Lightning Component [on hold]

Need help on how I can implement below business need - I have a lightning component where I pull data through other systems and display in table. I need an action on every row to create a PDF copy of ...
0
votes
3answers
48 views

Lightning:Select doesn't re-render

<aura:attribute name="draftOptions" type="Map"/> <lightning:select aura:id="draftOptionsAuraId" name="draftOptions" onchange="{!c.actionLoadSelectedDraft}"> <option value="">--...
1
vote
0answers
19 views

Can't change font size of lightning:outputfield

I can't seem to change the font size of the lightning:outputfield. The unordered list text below is the font size I am looking for. <aura:attribute name="Impact1Title" type="Aura.Component[]"&...
1
vote
1answer
25 views

How to get custom field returned by Platform Event in Lightning Aura Component

I haven't been able to figure out how to access a Custom Field on a Platform Event within an Aura Component js callback handler, does anyone know how I can do this, or where it exists in the ...
0
votes
1answer
18 views

Why doesn't my field assignment work for lightning:recordEditForm?

I have a component with a lightning:recordEditForm that I build using an aura:iteration over fields from a field set for Order Products. I've added a custom submit method in my controller that makes ...
0
votes
2answers
26 views

Mandatory error message not displayed on field when only a single field in mandatory

I am using the following piece of code to display required error message var allValid = component.find('smaField').reduce(function (validSoFar, inputCmp) { inputCmp....
0
votes
1answer
36 views

Unable to get record in Lightning Datatable

I am trying to display records from Contact Object in a Lightning Component in a datatable. Somehow the records are not getting displayed. Can someone please help where am I going wrong? Apex ...
0
votes
0answers
20 views

Recaptcha in salesforce community

I have tried out the recaptcha in lightning component using VF page as iframe and it is working absolutely fine,but when i tried that component in salesforce community it's not working. I added the ...
0
votes
2answers
39 views

Error when trying to show Toast from lightning out through Site

I get this error on the bottom of the page when trying to show a toast message This page has an error. You might just need to refresh it. Error in $A.getCallback() [$A.getEvt(...) is undefined] ...
0
votes
1answer
19 views

LC build attribute name on run time

Can we dynamically build attribute name on run time in the lightning component? Use case- <aura:iteration items="{!v.attributeA}" var="key"> {!v.attributeB + "!key" + .length} </aura:...
1
vote
0answers
30 views

Lightning Component UI switch back to old code

Almost every day the LC I am building in a developer sandbox start showing the old version of the code. Then I have to wait 30 mins or so, for it to start reflecting the new code. The LC is embedded ...
0
votes
0answers
38 views

On adding Bootstrap to lightning component it misshape the standard lightning layout

Hi I am very new to lightning. I have added bootstrap as static resource in lightning component. This component I'm calling from lightning action button. Once this modal loads it changes the layout of ...
-1
votes
0answers
28 views

Not Accepting related Datatypes values

Hi I am building Custom filter logic by using Lightning component.I have created apex class,JS file and lightning component for this. But The problem is field value is accepting only string value. ...
1
vote
1answer
17 views

Value provided is invalid for action parameter [String param] of type 'String'

So my component has an attribute defined like this: <aura:attribute name="accountId" type="String" default="" /> that holds the value of a lookup lightning:inputField. I am setting the ...
0
votes
1answer
41 views

Lightning data locker restricting Javascript for CSS/HTML

I am trying to retrieve JavaScript Static resource in Community lightning component to override the numbering from Unescaped html. But the data locker service is blocking the script. Am trying to ...
0
votes
1answer
28 views

How to get value of input from lightning js controller without an id

I am creating the form using: <lightning:recordForm aura:id="data-export-form" objectApiName="{!v.sObjectName}" fields="Account__c" columns="1" mode="edit" onsubmit="{!c....
0
votes
2answers
34 views

Problem setting value of text in lightning component from js helper

So I created for te first time a lightning component and I'm just getting familiar with it all. What I did was create the apex controller, the lightning component, the js contoller and the js helper. ...
0
votes
1answer
30 views

createRecordEvent.setParams is not populating values

I am trying to auto-populate the 2 fields in Account record during the creation of itself. But for LongTextField__c field it's working fine but for Amount it's not reflecting the value in Account ...
0
votes
1answer
26 views

Pass application event to another component in Lightning Flow?

I'm trying to build a form of "journey" through lightning components in the new Flow designer but I'm having a hard time making the flow play. Basically, I've got component 1 that let's the user ...
4
votes
1answer
122 views

Is it possible to add Lighting Web Component in the Visual force Page?

Create one Web Component and want to that in VF page, Is this possible?
0
votes
1answer
16 views

How to edit a specific row/index in aura iteration by javascript?

Hi I am trying to edit a specific row in an iteration based on an onchange event. One of my columns in my iteration is a picklist. And depending on what is selected I want the rest of the columns in ...
0
votes
2answers
30 views

@AuraEnable Server side controller not executing properly (not showing debug log)

I have this component that is available from a Community, where an object gets populated and passed to Apex controller in a JSON String. From the server side, it should show via debug what I ask, but ...
0
votes
1answer
17 views

Refreshing lightning component on community page

Hi I have created a component and placed it in community page which is displaying case records. I have a custom button, on clicking that case records are changing, but to see the changes i have to ...
0
votes
0answers
12 views

Passing Data between two unrelated Lightning Components [duplicate]

Does anyone know how to pass values from one lightning component to another unrelated lightning component? There's no Parent-Child combination and these components or not in a containment hierarchy. ( ...
0
votes
0answers
23 views

How to Toggle (Hide/Show) in Lightning with no Delay or Resizing

I'm conditionally toggling sections in a Lightning Component that each contain a lightning:datatable, and I'm stuck in a bind of choosing either the table resizing when the section is first expanded (...
2
votes
1answer
26 views

Way to preview slds classes

Is there a way to preview how a component will react if I add a new slds class to it? I am new to Lightning component development, doing my development in VS Code and using scratch orgs. Currently I ...
2
votes
1answer
35 views

Salesforce Community - Can we use cookies to only show a visitor a popup once?

I have a client with a Salesforce Community website who wants to have a pop-up on the homepage, but they only want it to pop up one time per user. This is before they login, so I'm thinking what I'd ...