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

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

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

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

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
7 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
19 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
12 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
13 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
15 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
25 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
23 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
13 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
418 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
9 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
5 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....
6
votes
2answers
154 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
8 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 ...
0
votes
0answers
24 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
26 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
20 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
16 views

Override New Button Lightning component: Modal opens in another tab

I'm trying to override New Button using Lightning component. I wish to open up a pop-up on the same record page. But the modal/pop-up opens in another tab. Here's my code: <aura:component ...
0
votes
0answers
9 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
0answers
6 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
16 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
14 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
14 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
13 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
13 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. ...
1
vote
0answers
26 views

Navigate Between Components using Navigate and lightning:isUrlAddressable

I was using e.force:navigateToComponent and had everything working but then realized this is deprecated. I am attempting to replace the logic by using navigate(). It seems to be working in that I ...
0
votes
1answer
18 views

How to call VF on the Detail Button from Opportunity

Classic: document.location="/apex/CreateCaseRequest?oppid={!Opportunity.Id}"; I created a new Button for Lightning : did not work {!URLFOR('apex/CreateCaseRequest', null, [ SourceID = ...
0
votes
0answers
19 views

lightning:recordViewForm unable to display for guest community users

asking does recordViewForm in communities only work display if the user is logged into Salesforce? I can't seem to get my output fields to display for a guest user. They're displayed and fine for a ...
0
votes
2answers
25 views

iFrame in Lighning Component errored out

I have a lightning component with iFrame. I a getting the 'sameorigin' issue. am I missing anything? Lightning Component: <aura:component implements="flexipage:availableForAllPageTypes, ...
0
votes
3answers
36 views

How to get the name in aura:iteration

<aura:iteration items="{!v.AccountList}" var="ac"> <div class="tileLabel" id="{!ac.Id}" aura:id="acId" onclick=" {!c.handleClick}">{!ac.Name}</div> </div> In javascript,...
0
votes
2answers
31 views

how to access object values in lightning component

I want to render a table dynamically in lightning. I have a list of data of transaction (Custom object) and list of string which contains API name which data i want to render. I have created a child ...
0
votes
1answer
15 views

Can a Custom Component Populate Gmail Subject and Body Fields Using the Lightning for Gmail Application

All that the documentation says is the following: The subject indicates the subject on the current email. <aura:attribute name="subject" type="String" /> The messageBody indicates the email ...
0
votes
0answers
31 views

<ltng:require not working in community

Component <aura:if isTrue="{!v.customScriptCSV != null}"> <ltng:require scripts="{!v.customScriptCSV}" afterScriptsLoaded=" {!c....
0
votes
0answers
18 views

How to redirect to a newly created SObject record at the end of a flow?

I have been trying to follow the Salesforce documentation, but running into errors such as "We can't execute this action. Ask your admin to check that the "c:OpportunityFinish" Lightning component's ...
5
votes
1answer
52 views

Can we specify a minimum height for a lightning:datatable/lightning-datatable?

Problem lightning:datatable (rendered as a lightning-datatable) places itself in a wrapper that is only exactly as big as it needs to be. If you click on a header-level action in a table with no rows,...
0
votes
1answer
14 views

Redirect to custom visual force page/action from a lightning component controller

I created a custom visual force page that I use to overide the standard NEW action in the list view of one of my custom object. I would also like to add a link to this custom VF page in the record ...
1
vote
1answer
44 views

Is there any way to use lightning:inputField independently?

Based on online documentation and examples available it seems that lightning:inputField can only be used inside lightning:recordEditForm. But nowhere mentioned that we cannot use it outside of ...
1
vote
0answers
32 views

Send data from Lightning component to visualforce page without window.postmessage

I am using window.postmessage() to send data from lightning component to visualforce page as given in below link. https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-...
0
votes
1answer
18 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 ...
3
votes
3answers
493 views

How much do new Releases impact your orgs?

Recently I was asked to create an excel sheet for my company of all the relevant features Salesforce has added in the Spring Release 19' Now someone is asking me to go through one of our orgs and let ...
0
votes
2answers
31 views

Delete an array element using event.getSource().get(“v.name”)

I try to get index, but it's always -1. JS: close : function(component, event, helper) { let vacancies = component.get("v.vacancies"); //an array let vacancy = event.getSource().get("v.name"...
0
votes
1answer
18 views

Fetch current lightning URL

I want to understand if there is any way to fetch the current lightning component url in salesforce and navigate to it I am using window.location.href = window.location.pathname; in my lightning ...
2
votes
0answers
29 views

Spring19 release:Uncaught (in promise) TypeError

keep getting the following js error in my lightning component after the Salesforce Spring19 release: Can any one help please contextService.js:2 Uncaught (in promise) TypeError: Cannot read property '...
0
votes
0answers
12 views

Lightning Gmail Email Application EmailTemplates and Merge Fields

I'm working on a custom template picker component that will be part of the Lightning for Gmail Email Application. I'm able to load templates based on my criteria and fill in body and subject email ...
2
votes
1answer
42 views

Rerendering lightning:recordViewForm OR single component

I have a lightning component similar to: <aura:component> <aura:handler name="myevent" action="{!c.myRerender}" /> <lightning:recordViewForm recordId="{!v.recordId}" ...
-1
votes
3answers
39 views

How to access <ui:inputTextArea in helper.js for a component

In my component, I have ui:inputtextarea field defined as below <ui:inputTextArea aura:id="generatedLinks" label="Links" value="" rows="5" /> In my controller, I'm trying to call getElement ...
1
vote
1answer
27 views

Lightning components - Initiating App attribute with controller - Issues with format and transmission

I'm Working on Lightning components I would like to add some values in my App, using its controller (aura:handler) But it doesn't work at all, so the default values of my component is displayed at ...