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.

1
vote
2answers
196 views

Does domain name change on salesforce new release

Does domain name change on salesforce new release. For example, currently we have following domain name: test--PCSandbox.cs12.my.salesforce.com. In the new Salesforce release, will the domain name get ...
0
votes
1answer
20 views

Access lightning component controller functions from renderer?

The title says it. I have a function in the controller and I want to access it from renderer. But it doesn't seem to work. I tried to put the function in the helper but it didn't work either. ...
4
votes
1answer
66 views

$A.createComponent with does not work in the community after Spring 19 release

I have the issue but cannot understand what is wrong, hope you will help me here. There is the community with custom lightning Register component. When you fill some basic info about the user you ...
0
votes
1answer
23 views

Adding Multiple Records at once - What type of form to use?

I have build a process to clone a record x number of times. I have the user enter a number from 1 to 10 on the record and the function copies the record x number of times into an attribute. I am ...
0
votes
0answers
18 views

Incorrect URL in Managed Package for default home page

I have a managed package in which I have a few flexiPages (Lightning App Builder pages) I have an object Project__c (this is the default page) on which I have configured tabs (in Lightning App Builder)...
0
votes
1answer
37 views

How to access aura:id of a tag present in child component in a parent component controller

I have created a form where more than 10 radio groups were being used, so instead of using lightning:input tag several times , I made a child component of the radio group . And used it several times ...
0
votes
1answer
39 views

Populate e.force:createRecord's defaultFieldValues returned from Apex

I Need to create a component to create a Task record in the custom object based on conditions. The condition is if the related record(contact record's) record type is New then only The button should ...
0
votes
1answer
17 views

Chart.js - ReferenceErrore : Chart is not defnied

I'm using Chart.js inside a Lightning Community app and I'm having trouble creating a simple chart. Here's my script declaration (note that the moment.min.js is required for the Chart.js to work) : &...
0
votes
1answer
23 views

Community Record Details Page Edit Button

I have some problem on the Record Details Page in Community. When I will click the Edit button as Member it won't do anything. please help.
0
votes
0answers
22 views

Unable to get lightning look and feel for site users

I am using lightning Page in VF using lightning out.The page is added to sites.But when I open the page via link, It shows the components but Look and feel is not of lightning.
1
vote
1answer
17 views

How to control one of the component at the time of Auto-refresh in Lightning component

I'm trying to achieve auto refresh for 2 community pages and was able to get the result. But if a user writing something in anyone of the page like he is filling a forum at the time of filling current ...
4
votes
1answer
69 views

How to update any field before firing the save event in force:recordEdit

I have a usecase where I want to update some field values at the record before firing the component.find("edit").get("e.recordSave").fire() event. Here is the markup which I am using <force:...
2
votes
0answers
31 views

Custom Icons with Vertical Nav Component

I'm using the Lightning vertical navigation component, and I want to use a custom icon for each menu item. In the Component Reference documentation there's an example for referencing icons that are ...
1
vote
1answer
39 views

Is there a way to insert a <div> right below a datatable row?

I need to put a div right below a lightning:datatable row. Is there a way ?
2
votes
0answers
20 views

Salesforce1 on focus on textarea header top is hiding

I have seen the same, or a similar, issue. The problem I encountered also occurs on a mobile device (Android in this case) with a textarea component at the bottom of a container component that extends ...
0
votes
1answer
27 views

How to get Quick Action name?

I have created 3 quick actions using 1 lightning controller.If one action button is clicked then i have perform operations if other then perform some other operation. But I have to implement all ...
1
vote
0answers
33 views

downloading a file with window.open shows “navigating away” message after spring'19 update

Part of application, i need to download a file from AWS S3. so in the helper js, i create presigned S3 URL and call window.open(url, '_blank'). This line of window.open was working correctly and ...
1
vote
1answer
33 views

Querying User table from Community Super User profile in Communities

I am trying to query the user table from a controller called by a lightning component in Communities. User usr = [SELECT Id, Name, Email, Phone FROM User WHERE Id IN (Select OwnerId From ...
14
votes
2answers
470 views

Map<String, Object> in AuraEnabled now failing in Spring 19 with “Value provided is invalid for action parameter”

Seems Spring 19 wants stricter typing for aura attributes, but I'm not finding any best practices on how to approach this. This use to work in Winter 19: MainController.js let myData = { parentId:...
0
votes
0answers
22 views

Navigate to custom lightning component from link in lightning community

I want to redirect to my custom component from link in lightning community but on click of link it is redirecting to home page it self. var urlEvent = $A.get("e.force:navigateToURL"); var url = '...
1
vote
0answers
29 views

Difference between component.get(“”) and component:find(“”) [duplicate]

what is the difference between component.get("") and component:find("")? I thought component.get("") was for aura:attribute and component.find("") was for lightning:input but if on my client-side ...
0
votes
1answer
34 views

Sorting Issue on Lightning Data Table

I am using below code for sorting lightning data table. Not working good. Can you please help me to fix this bug. Component <aura:attribute name="sortedBy" type="String" default="Name"/> <...
0
votes
0answers
9 views

Best Approach To Upload Big CSV to Apex Object

I have 2000 to insert into Standard object by importing the CSV using custom code only and than creating the csv and make it available for user to download to see passed and failed records. I am able ...
0
votes
0answers
32 views

Passing Map<String,Map<String,List<String>>> to an AuraEnabled method, but fails with Invalid Conversion Exception

Fails with the exception Invalid Conversion from runtime Map<ANY,ANY> to Map<String,List<ANY>> Also tried sending the JSON.Stringify(Map) before passing to AuraEnabled Method but ...
0
votes
2answers
24 views

Issue with developing Lightning componenets using Mavensmate IDE for Sublime Text

For developing Lightning componenets I am using Mavensmate IDE for Sublime Text but it overwrites changes of other developers in the dev sandbox, although it is checking for conflicts for Apex classes....
0
votes
1answer
17 views

How to convert DateTime to Date, hh-mm

I wrote soql and retrieved DateTime. ie) '2018-11-21T10:51:12.421Z' I would like to split Date, hours:mins like '21-11-2018 10:51'. i tried like below, String value = '2018-11-21T10:51:12.421Z'; ...
0
votes
1answer
30 views

Unexpected file found in package directory: F:\Mine\SalesForce\Salesforce CLI\HelloWorldLightningWebComponent\force-app\main\default\engine.d.ts

This error Unexpected file found in package directory: F:\Mine\SalesForce\Salesforce CLI\HelloWorldLightningWebComponent\force-app\main\default\engine.d.ts. shown up when I'm trying to run command ...
6
votes
1answer
94 views

How to dynamically get VF page and Lightning page host name to use with Window.postMessage between VF and Lightning Component communication

I've lightning component where I'm going to embed a visualforce page, and then there will be communication between these two windows via postMessage API. the problem is how will I get the VF page ...
0
votes
0answers
9 views

Chartsjs shows charts in different sizes

I have 3 charts included on my lightning component. I am not sure why all 3 charts have different sizes. I am just trying to make it the same size. <li style="width:50%"> <div ...
5
votes
0answers
96 views

Html injections for dependent picklists used in lightning web components in tables with edit

I am trying to build a dependent picklist dynamically within a table using Lightning Web component based on what is selected in the controlling picklist field. Html injections were possible in Aura ...
0
votes
0answers
29 views

Implement Pagination in Lightning Component by standard functionality [duplicate]

I want to implement pagination on lightning componet. Is there any standard functionality present in salesforce? The pagination should be as displayed in image. Basically, need an ability to jump to ...
0
votes
1answer
47 views

On click of save button, onsubmit function is not called

I have used the lightning:recordEditForm. On click of the save button, the onsubmit function is not called. If the submit function is called on the button onclick, then the record gets saved, but the ...
5
votes
0answers
42 views

Safari support for iframing a visualforce page

Background: I have an API I wish to use from within my managed package which occasionally results in long running callouts. In order to ensure my users don't encounter errors with the limits to long ...
0
votes
1answer
40 views

Set the value of a radio button with the controller in javascript

I would like to do something simple but I think it is not as simple as I though. I have a form with a radio button field (salutation field in the account) and I would like to auto fill the value when ...
0
votes
0answers
9 views

prepopulate account name in opportunity name of opportunity lightning custom page

How to prepopulate account name in Opportunity name field of Opportunity lightning custom page. I am launching the lightning custom page from Account detail page for creating opportunity record. ...
0
votes
1answer
22 views

How to add Lightning Quick Actions on Account List View?

I have a Quick Action on Account with a Lightning Component that creates a new opportunity. But I am unable to add the Lightning Quick Action to Account List View. Is there anything to be added ...
1
vote
1answer
27 views

Find value of div inside aura iteration on icon click!

I am trying to find the value of a div which is inside aura iteration on icon click which is also inside the same aura iteration. Here in this code below I am trying to find the value of the aura:id=...
0
votes
0answers
39 views

Update custom field on File upload

I'm using a simple lightning component to upload a file to a record. I would like for the file to uploaded with a certain custom field set. (ie. on upload, set "File Status" to "Signed" - this would ...
0
votes
0answers
29 views

How to remove item from Pill Container?

I have a Pill Container, which contains items from the Contact sObject. When I click the x button nothing happens. CMP: <lightning:pillContainer items="{!v.selectedContactList}" onitemremove="...
0
votes
1answer
51 views

Passing Map from Apex server controller to Lightning controller

I am trying to use the wrapper class variables values in my jscontroller and please help me I have a public Map<String,FinancialSummary> reservesSummaryHeader{} In which I am using wrapper ...
0
votes
1answer
21 views

Salesforce Lightning: ondblclick event not working on Select List box

ListBox.cmp <div id="div1" > <label for="picklist">Available Labels</label> <br/> <select style="width:100%" id="picklist" multiple="multiple" ondblclick="myFunction()"&...
1
vote
1answer
47 views

Lightning Component Error For Case Close Button

Trying to create a Lightning button to close a case and I am getting this error Uncaught Unable to find action 'getCaseStatusPickList' on the controller of c:Button Callback failed: apex://...
1
vote
1answer
24 views

How to click a button from javascript in a lightning component

I am attempting to fire the standard submit event from recordEditForm by clicking a hidden button from javascript but the below code is not working for me any thoughts? I already attempted to use the ...
5
votes
0answers
37 views

Passing a variable to lightning component through snapin chat

I have a snapin chat component embedded on our custom application (not salesforce or a community). I'm trying to allow a parameter to pass through to my lightning component for use in the prechat ...
3
votes
1answer
117 views

How to pass value to another component in lightning?

I try to use event with type="APPLICATION" in my superbadge step, but can't to get the result even from the simple second component. I need to get my boat's Id when I press "Search" button. In both ...
0
votes
0answers
29 views

Implementing lightning component with number of lookup fields in community

I'm trying to implement a component with lookup fields. The form is to be created dynamically. I tried the following ways : Approach 1 Using <lightning:inputField> with <lightning:...
3
votes
1answer
44 views

Visualforce rendered as PDF not working in Production but works in Sandbox (using Lightning in both)

I'm stumped by a very strange issue. We have Lightning enabled in Production and sandboxes. I have an Action (on Opportunity object) which points to a Visualforce page. The Visualforce page is ...
1
vote
1answer
28 views

Require country in lightning:inputAddress

I would like to require the country field in a lightning:inputAddress tag. The required atttribute is set to true but the only affected fields are the street, the postal code and the city. Is there ...
0
votes
1answer
23 views

Set style of component.find(element)'s parent

This is in continuation of the question here I have included a select all checkbox in the header that sets the value of the checkboxes in the table. I am trying to highlight the selected rows. It ...
0
votes
1answer
22 views

Custom button or link in lightning tree

I want to add plus(+) and minus(-) button/sign at every level of lightning tree to add or delete item at particular level, is there any way to do so?