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]

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.

0
votes
0answers
16 views

Problem with uploading multiple documents in SFDC in Lightning Component

I have an issue in regards to uploading multiple document in sfdc, basically what's happening is instead of 3 different files being saved in SFDC, it will save 3 same documents in SFDC... I think my ...
0
votes
0answers
18 views

Fetch location details of an image to geolocation field while uploading in lightning

I am trying to do a POC with the following details. I have a custom object related to Account CustomObject__c has a geolocation field which consists of Latitude and Longitude and a rich text area ...
0
votes
0answers
14 views

Issue while accessing user type in community

I'm trying to get currently logged in user type in the community, but I'm facing some issues. I have published my community and that published link is not working properly Scenario 1.Open incognito ...
0
votes
0answers
34 views

Lightning Error Message Question

I'm trying to create my own Account Hierarchy link that displays more than 500 accounts and its children utlizing lightning componenets and lightning out. I keep recieving this error whenever testing ...
0
votes
1answer
59 views

how to format date in lightning components [duplicate]

I'm using lightning input of type date in my lighting component. Once the date is selected it is showing date as **Feb 12, 2019 ** But we want the date to be shown as MM/DD/YY. is it possible Here is ...
0
votes
1answer
38 views

Close event of lightning tab

I have created a page and showed a component on that page. I am opening that page in the lightning tab from lightning quick action. I want to call a apex method whenever user close that page either ...
3
votes
2answers
189 views

lwc: sfdx unable to retrieve lwc files

I am currently working in a dev org and I have installed the LWC e-bike component (https://github.com/trailheadapps/ebikes-lwc/tree/master/force-app/main/default/lwc/orderBuilder) When I create the ...
0
votes
0answers
39 views

lightning:carousel error

I'm new to lightning and never used carousel component. My requirement is to display different images by querying from object level and upon clicking on the picture it will call another component and ...
0
votes
0answers
35 views

Syntax for Filter on enhanced lighning grid

Can anyone help me understand how to set the filter on the Salesforce Labs enhanced lightning grid. I want to return all the contact records where the Contact_Ult_id__c = the Contact_Ult_Id of the ...
0
votes
0answers
28 views

Lightning Custom Caching

Hello Lightning Experts, How to implement custom caching in Client Side for Lightning. Is HTML 5 Web Storage is right option for this? Use Case: Based on the service address, show the service ...
0
votes
0answers
34 views

CMS Collection Not Visible to Guest Users

We're hitting an issue where the CMS Collection component in our community is not displaying for guest users once deploying to production. Has anyone hit this before? In our sandbox we had it happen ...
0
votes
0answers
14 views

Display Dashboard in VF page or in a Ligthning component

I am trying to see if there is a way to display a Dashboard in Visual force page without using iFrame (As it is no longer supported) or without using analytics:chart tag as it involves maintenance. Or ...
0
votes
1answer
26 views

Child Aura Component not Loading for Some Users

Strange situation. This code works perfectly for me, but does not load for some users. I have searched permissions and security on Aura bundles, but cannot find what I need. Here is the code. The ...
0
votes
0answers
20 views

Error encountered while deploying Community

While deploying community I am getting an error Network community_name- unknown exception has occurred I have verified that name of the community is same in both the environments. Any solution?
0
votes
1answer
60 views

What is the purpose of $ContentAsset provider? Why can't $Resource always be used?

What is the purpose of $ContentAsset provider? Why can't $Resource always be used? Is there any point of storing images, style sheets, and JavaScript in some other places rather than in ...
0
votes
2answers
90 views

callback action from e.force:editRecord

I'm migrating some functionality from classic to lightning and need to replace javascript button which will redirect to standard edit page. I'm using Quick Action for that calling component which ...
0
votes
1answer
21 views

Salesforce CPQ: Block Pricing with Configuration Attribute

Block pricing is very useful to set the price based on the quantity of the product. But can it be used with a configuration attribute?. For ex: Block Pricing 0-99 - $1000 100-199 - $2000 200-299 -...
1
vote
0answers
22 views

How to create a lightning Component for standard record creation with specified URL?

I have a button called SUBMIT. When I click on this button It will open the Case record creation page with some specified values. PageReference RecPageRef = new PageReference(System.URL....
0
votes
1answer
65 views

How do i pass the current expanded accordion section to another component

Im completely new to lighting so I get stuck quite easily. I have looked online for examples but found none. I have created a lightning accordion that uses an aura iteration to display a list of ...
2
votes
0answers
36 views

lightning global search url

Is there a readable URL for global search in Lightning, similar to Classic that use &startURL=/_ui/search/ui/UnifiedSearchResults?str=valueToSearch ?. I want to use this URL to add to Chrome ...
0
votes
0answers
17 views

Create a location record from account using lightning flow

I'm trying to create a location record from an account using Lightning flow. Requirement is that, location has to be created on an account record and create an associated account relation with the ...
1
vote
1answer
29 views

Is there a way to toggle between Lightning and Classic Community

Here is my use case. I have one community that works in 'lightning' (Customer Service Template) and the other that works in classic (Salesforce tabs + visualforce). The users can be common. Is there ...
1
vote
1answer
18 views

Setting Inline CSS from Component Attribute

In a custom Lightning Component, I'm trying to set the padding-top CSS property on a div with a number (Double) that comes from an attribute on the component. I'm having trouble figuring out what the ...
0
votes
0answers
30 views

Lightning Experience Formula Field With Old Value

I've "A" object with two fields: a lookup field (object B) and a formula field (field status of object b) and a "B" object with lookup field to "A" object. In lightning experience I open record "A" ...
0
votes
0answers
10 views

i want to add search filter to my wrapper class table , please check my code , i cant access my selected records in edit component

My Apex Controller public class wrapperDisplayController { public static List<wrapperAccountCheckBox> LstWrp; public static List<wrapperAccountCheckBox> LstWrp_Selected; public ...
0
votes
1answer
54 views

$SObjectType.CurrentUser.Id gives undefined for Guest user

I just stumbled upon something while using $A.get("$SObjectType.CurrentUser.Id") to get current user id in lightning component. $A.get("$SObjectType.CurrentUser.Id") returns Id only if user is logged ...
0
votes
2answers
30 views

Search Icon Button in Lightning [duplicate]

I need a search icon button icon in my compoonent. I have got the code as well. Below is the link from where i have referred the code. https://www.lightningdesignsystem.com/components/button-icons/ ...
0
votes
2answers
27 views

Is there a way to set Component visibility based on child record criteria

I'm trying to display a rich text component containing a warning message on Account. I'd like to display it the Accounts related Contacts have a blank email. Is there any way to do that? Any help is ...
-2
votes
2answers
24 views

Have custom map as return type in a class!

I am trying to have a class with map as return type. I am not sure how to return a custom map. Here is my code: public static Map<String,Integer,Integer,Integer> getMdus() { Map<String,...
0
votes
1answer
25 views

How to create an inline image as files in lightning

I'm having a rich text area in my lightning component. On clicking "Save" button, I want to create files if any inline image is added to that rich text area. I'm having an idea that if I,m able to ...
1
vote
1answer
42 views

<lightning:select> limit height?

Is it possible to mention the number of options to display in . <lightning:select> <option>option 1</option> <option>option 2</option> <option>option 3<...
0
votes
1answer
33 views

How to change UserServicePresence in Salesforce and How to get the list of Status shared to a profile?

I have a requirement to create a Global Quick Action that would display all the "Service Presence Status" available to a Live Agent and Change the status when he selects any of the status available. ...
0
votes
3answers
37 views

lightning check box field set default as true

I am trying to set checkbox value as default. Below is the code. <label class="slds-form-element__label">Is Active</label> <force:inputField value="{!v.Opp.Active__c}" /> Can ...
0
votes
0answers
21 views

Issue in querying in apex aura enabled method vs execute anonymous

Hi I have an aura enabled method that returns a Cycle Record, The issue is some of the fields are returning null in the aura enabled method compared to querying in execute anonymous and workbench. ...
1
vote
2answers
31 views

Adding a new method to Controller of Lightning component resulting a constant error

Every time a new server-side method is added to existing component that has controller tag and it's successfully calling other methods in the same class, that component has an issue with recognizing ...
0
votes
0answers
27 views

How to Record Audio in Lightning Component?

Everyone. I Need to record audio in lightning Component when the button is clicked and after to save the file as an attachment. I'm looking for a solution, but so far unsuccess. Please Help Me
0
votes
1answer
23 views

SFDX Force Redeploy

Is there a way to force SFDX to deploy all assets again even if they've already been deployed? I thought -f overwrite might do it but it doesn't seem to override what it thinks is already deployed. It ...
1
vote
2answers
120 views

How to close sub tab from lightning component button click

I have a vf page in which I have embedded a lightning component ( lightning out ). I'm having a lightning button called "Save". On clicking this, I need to close the sub tab ( currently I'm displaying ...
0
votes
0answers
29 views

lightning component unable to remove cached data

I have a lightning component that implements isURLAddressible and it is invoked with a button from lightning case record page. The button opens a lightning modal that creates opportunity record. ...
0
votes
1answer
55 views

Lightning:input format currency

Hi I am trying to display Amount field as currency format. If I enter 10K in Amount field, it should display as 10000. But it's not happening. Below is the tag I am using to get the Currency field ...
1
vote
1answer
29 views

Search not refreshing when input SearchText changes

I have a lightning component which lists a list of reports. Also a search Bar so users can search from the list. I am not using Apex to perform the Search using .filter within the js controller. But ...
0
votes
2answers
67 views

How to insert ContentVersion with preview in files?

I can insert an image, but it's without preview. I can open the image after downloading, but a need preview. It writes in files "No preview available". How to fix that? Here is my code. js: ...
0
votes
0answers
18 views

Create a location record from an account using lightning flow

We have recently moved to Salesforce Field Service Lightning. Our requirement is to create location records and associate address to the created record from an account. We also want to use the Google ...
0
votes
1answer
30 views

How to calculate count of records in map based on keys in Helper

I am getting map in helper in callback action.setCallback(this, function(response){ var state = response.getState(); var wrapperRecords = response.getReturnValue(); ...
0
votes
0answers
29 views

Prepopulate value in lookup field in lightning component dynamically

Can someone please let me know if there is any solution to prepopulate a value in Force:inputField lookup field dynamically. Is there any workaround. Below I tried but it's static. https://help....
0
votes
1answer
28 views

Review the errors on this page Lightning

In the detail page of a record,if any error occurs on editing and saving(Eg: not giving value for a mandatory field) , error message is shown as below. It is a standard edit page in lightning. I have ...
0
votes
0answers
21 views

Lightning:input type= date changing year from dropdown doesn't work

In Lightning,for Date input field I use <lightning:input type="date" aura:id="Start_date__c" value="{!v.Start_Date__c}" /> In UI, in the datepicker,if I try to change the year using the ...
0
votes
0answers
32 views

Have a problem with inputAddress lightning component(Google autocomplete)

In my inputAddress lightning component, I have attribute showAddressLookup=true. But it doesnt work and I don't have "Google autocomplete" feature there, below is the code <lightning:...
1
vote
0answers
64 views

Add addEventListener for blur to lightning:inputField

I want to invoke a method when inputfield is off from focus state(blur). I am trying as below but i am not able to get the alert statement when the cursor is out of focus from field . Can some one ...
0
votes
0answers
39 views

event.getSource().get(“v.validity”); doesn't work on lightning input

Component: <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" > <aura:...