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
1answer
7 views

Lightning action(Email & Task) buttons not showing on Lead

I have the following configuration set and still Email and Task buttons not showing in the chatter lightning Lead Object: 1- Deliverability = All Emails 2- Task Has a record type 3- Feed Tracking ...
0
votes
1answer
21 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
0answers
15 views

Assign home page in a lightning app in managed package

I have managed package with its own app. I want to assign a lightning page as the home page of that app. How can we set it up?
0
votes
1answer
18 views

AuraEnabled returning success records instead of failed records

I have apex AuraEnabled function which is inserting records for a junction object, however due to some validation rules, some of the records may get failed. So I have a solution to maintain a list of ...
-1
votes
0answers
27 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
15 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
0answers
23 views

Open Add Product page in lightning

I want to display the add product to opportunity price book page(/p/opp/SelectSearch) in lightning. We override the opportunity edit screen with VF and then redirect to this page: ...
-3
votes
0answers
24 views

How to Create Progress Bar in Salesforce

When ever i will click next button it will change the color of the progress bar and green tick mark on progress bar , how i can resolve this issue
0
votes
2answers
20 views

Prevent Wrap on Checkbox Button Group

I'm seeing some weird formatting where it's refusing to expand the Checkbox Button to keep it all on one line and insists on wrapping down to a second line. Please see the "View All" and "Modify All" ...
0
votes
1answer
26 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
27 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. ...
3
votes
1answer
99 views
0
votes
1answer
23 views

How to Switch Partner portal User to Lightning Experience?

I have a community with 100 Partners Users and I need to switch one or all of them to try lightning in that community but I don't know why I can't.
0
votes
1answer
18 views

Email Services - Add setReplyTo email while sending email from record detail page of an object

I have created an email service and got an email address like email_handler@9w9wya19o...... I want to capture the email response of email that I am sending from the record detail page but I am unable ...
0
votes
2answers
28 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
14 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 ...
1
vote
0answers
18 views

Unable to create/update record using lightning data service

I am trying to update FinServ__AssetsAndLiabilities__c record using lightning data service. I am getting below error while trying to save record. saving record, error: [{"fieldErrors":{"Id,Name":[{...
2
votes
1answer
31 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 ...
0
votes
0answers
8 views

How to Use Visual force email template In Lightning Email template with Preview Option [on hold]

I have developed Visual force email template and its working as expected with process builder. But the client requirement is changed, they are asking the same template to be used in the Lightning with ...
0
votes
2answers
26 views

lightning:outputField get value

Is it possible to get the value of a "lightning: outputField" to pass it to the controller? I used a lightning:recordViewForm to display record's values. <lightning:recordViewForm recordId="{!v....
-1
votes
0answers
13 views

Lightning Component - Account Object display Primary Contact Details [on hold]

Strange request because you would potentially leverage Person Accounts. I'm looking to display the related Primary Contact details (1 contact) ON the Account object such as address etc. Best option ...
1
vote
2answers
36 views

LWC Function calls

I am creating a simple component that retrieves multiple URL and Description fields in a record (e.g. url1__c, desc1__c, url2__c etc) and transforming it into an Array of object in a JavaScript ...
0
votes
1answer
36 views

Lightning Web Components, how to set lightning-input autocomplete=“off”

I have a lightning-input with type="search". I am having trouble to set autocomplete="off" to be able to disable autocomplete functionality of modern browsers like Chrome. Any help on this is ...
0
votes
0answers
24 views

Lightning Page - You have uncommitted work pending. Please commit or rollback before calling out

I have some issues with my lightning Page. There are some lightning components who are filled with some data that came from more than one service. There is a component Asset Contact, the data from ...
0
votes
0answers
17 views

How to implement button on a Contact page that calls an Apex code providing that contact's Id (Lightning) [on hold]

I would like to create a button on top next to 'new case', 'new note' etc And by clicking it sends the contact's id of the current page to a function in an apex class. So far, all the solutions I ...
0
votes
0answers
19 views

How to refresh view in lightning when I change the object's filed value in controller?

Component <aura:attribute name="Lead" type="Lead" description="潜在客户信息"/> <lightning:recordEditForm aura:id="editForm" recordId="{!v.recordId}" objectApiName="Lead" > <lightning:...
0
votes
1answer
16 views

What is the URL to a Visualforce page without Sites

I have created a Visualforce page: CustomVisuaforce.page <apex:page> <h1>Custom Visualforce Page</h1> </apex:page> I want to access to page from within Salesforce ...
0
votes
0answers
24 views

Interacting with external calendar library in my Lightning component

I am implementing FullCalendar in a lightning component and am having trouble interacting with it from my methods. When I click on the Previous button, the console log appears but doesn't navigate to ...
1
vote
0answers
18 views

Drodpwn goes off the mobile width when expanded in lighnining component

I have one lightning component. In that lightning component, I have one dropdown which goes out of the mobile width when expanded in mobile devices. How can i make it responsive so that its width ...
3
votes
1answer
47 views

How to Upload Lightning, not Classic, EmailTemplates

I need to convert 200 classic emailtemplates to lightning templates and I've encountered an obstacle. When I insert templates with lightning markup using SOQL and identical field values to an existing ...
0
votes
0answers
24 views

ShowToastEvent is not getting called inside the save function in LWC lightning web component js [on hold]

I'm trying to call the below function in Save (Event) function , but due to some reason ShowToastEvent is not getting executed. Not sure how dispatchEvent works. I did it something similar to this ...
0
votes
1answer
18 views

VF Page Header in Lightning [on hold]

Currently i am trying to call VF page in lightning by using Window.open("/apex/VFPageName"). Page is getting displaying however it is not showing the page header. We can't update the VF page header to ...
0
votes
0answers
11 views

Feedback form in post chat page live agent

I need to display a Feedback form in post chat page of live agent. I don't see post chat option default provided by saleforce like pre chat. I created one post chat vf page in my sandbox and using the ...
2
votes
0answers
29 views

Way to bypass CSP limitations

We store images of our customers in Google Drive. Way we merge data is by Rest API calls. Also, we provide our managers with custom lightning component with embeded links to the images. Unfortunately, ...
0
votes
1answer
26 views

how to refresh the source tab when the current tab is closed

I have a button "Create Activity" in a lightning component (say LC1) on the case lightning record page. When I click that button, an another lightning component (say LC2) opens as a sub tab with some ...
0
votes
0answers
14 views

Fields getting misplaced in mobile devices

I have one lightning component placed inside community. it looks good in desktop but in mobile devices when submit button is clicked without filling any of the fields then validation is fired and ...
0
votes
0answers
12 views

Display Currency in Salesforce Lightning

I am using the following code <lightning:formattedNumber value="{!v.clientRecord.Annual_Income__c}" style="currency" currencyCode="USD" currencyDisplayAs="symbol"/> However, instead of ...
0
votes
0answers
28 views

Display info in the form of table with fixed header and fixed footer with scroll bars using jquery plugin not showing properly [on hold]

Trying to build a lightning component to display data for selected fields in a table.By applying jquery plugin trying to fix the header and footer with scroll bars. Used ltng:require to load the ...
0
votes
1answer
24 views

handleErrors toast Function not able to find

I want to toast the exception message when the callback is not succssful. as per the guidelines here:- https://developer.salesforce.com/blogs/2017/09/error-handling-best-practices-lightning-apex.html ...
0
votes
0answers
64 views

Lightning Testing service failing for apex

I am trying to mock the apex method response and trying to test attributes with the fake response.But It is failing. I am getting error message: Error:Expected 0 to be 1 Error:Expected false to be ...
0
votes
0answers
12 views

The application event not working [duplicate]

I know what I am asking is a very basic example question. But I am trying to understand the application event using an example and it is not working. I tried to figure it out all by myself for a long ...
0
votes
1answer
22 views

The Value in the Apex Class in Right , but when returned to my controller it is Empty

So I have this code on my apex controller: @AuraEnabled public static List<GroupedJobApplicationWrapper> setGroupings() { List<GroupedJobApplicationWrapper> groupedJobApplicationList ...
0
votes
1answer
16 views

Can a lightning component manipulate DOM outside the component itself? If not, what are my options?

Requirement: My controller code should be able to navigate through the DOM (of the whole page, not just the wrapping component), locate elements and add overlay (like tooltips) on identified elements. ...
0
votes
1answer
11 views

The object you're trying to delete is in use on site SITE_NAME, which is published

I've created a Sandbox to begin the unfortunately tedious process of migrating to Lightning Knowledge. To do this, Salesforce requires that we merge all existing Knowledge Articles into a single ...
0
votes
2answers
19 views

Need to get the key of an Object Array given a Value

I have a registration process that differs from each record type, I need to get the recordType Name (or label in this case) so I can give proper flow to each user. The record type selection is made ...
2
votes
1answer
47 views

Lightning List Vew Search Not Returning Expected Results

I had finished migrating contacts from an old system to SalesForce, and upon having the data load checked, I got reports that the count of contacts was very low. The users were using the search this ...
1
vote
1answer
26 views

How do I change the fill color of the lightning checkbox-toggle? [closed]

The fill color of the https://www.lightningdesignsystem.com/components/checkbox-toggle/ toggle in the off position should not be grey. In UI design, greyed out means the toggle itself is disabled and ...
0
votes
0answers
26 views

lightning:navigation not passing the States in URL

I used to naviagate from one component to another component. 'TestComp' is the destination component to which i want to naviagate. Its working fine in dev orgs but not in all the sand boxes. In some ...
0
votes
0answers
10 views

How to navigate cursor from one component to another in record detail page?

I have 2 components added in detail page of record(One is at the top and another is at somewhere middle). On click of a link in first component I have to navigate(auto scroll) to the 2nd component ...
0
votes
0answers
14 views

Clickstream data tracking for salesforce

In our project we are analyzing whether we can use external clickstream tool for capturing following events like.. Page load XHR load HTML Button clicks Page load time on browser XHR load time on ...