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.

Filter by
Sorted by
Tagged with
2
votes
1answer
84 views

How to use Salesforce Dynamic Forms in Community Record pages?

Can we use the Salesforce Dynamic Forms (Dynamic layouts) in Community Record pages? I know we could use it with Custom Object Record pages. I couldn't find any known issue or limitations mentioning ...
1
vote
1answer
26 views

How do I turn off all the pop-ups in Lightning?

Lightning these days has so many pop-up messages - notifications from Salesforce for this and that and then there's the in-app notices too. All this is fine and well when you're in the org as you can ...
0
votes
1answer
19 views

Navigating to a component in Communities

I have a simple parent child component. This is surfaced in the community, and for some reason, the parent component is not able to call the child component via the lightning:navigation service. I ...
0
votes
0answers
19 views

Custom Maintenance popup same like salesforce

i have curiosity on how salesforce implement Maintenance Window/popup or Alert banner? below images. i want build same like but all my doors are closed to get the same out put. or I tried bellow 2 ...
4
votes
0answers
74 views

Lightning record page printable view or PDF

I need to create a printable view (or PDF) of a record's Lightning Page (think "tear sheet") that includes a compact "details" section, compact related list tables, and a custom ...
0
votes
1answer
41 views

How to display toast message on record opening?

I want to setup a toast message to be displayed on record opening . How can I achieve this ? I apologize for asking but I am not familiar with writing code in Salesforce. I found this article but I ...
0
votes
0answers
30 views

Update records using input data in aura

I have an aura component with records <section class="slds-card__body"> <div id="list" class="row"> <table class="slds-table slds-...
0
votes
1answer
17 views

How to decrypt the lighting url

Is there any possibility to decrypt kind of "..lightning.force.com/one/one.app#eyJjb21wb25lbnREZ.." URL? In classic we know that we can get url parameters and component name in the url, but ...
0
votes
1answer
60 views

Communicate across tabs in LWC using Message service

I am trying to send info across components which are not on the same lightning page. They are on different tabs of the App. When the components are placed on the same page, Lightining message service ...
0
votes
0answers
13 views

Attempt to de-reference a null object - Object.eval

My sales team keep receiving the following "attempt to de-reference a null object" error.  I've browsed the forum for an answer, and almost all appear to require the use of the Developer ...
0
votes
0answers
18 views

External URLs with Friendly Name(Translatable) which user can provide on Org and it is visible on community portal

I have a requirement from user in which they want to show a list of URLs(friendly name which are translatable) at country level, on Home page of community. So there are several country, and some place ...
1
vote
1answer
59 views

Re-enabling the ability to impersonate External Users via “Log in to Experience as User” button (Spring 21)

Some Platform Users in my org used to be able to impersonate Community (now "Experience") users from the Contact record by using the "Log in to Community as User" button. After ...
0
votes
0answers
20 views

Workspace API open tab + Standard Record Page +pagereference state to initialize custom component

I have created lightning record page for Account and using app builder ,i have added custom lightning component. Now,i have to open this Lightning Account Record page using work space api open tab ...
0
votes
2answers
31 views

Dynamic record choice set [closed]

My problem is this: I'm using a collection variable to populate a count-variable, which in turn determines an outcome in a decision. If the collection variable has count greater than 1, i want the ...
0
votes
0answers
61 views

Emojis/emoticons in Rich text field LWC?

I am trying to build a LWC component with a rich text editor and want to know how to get the emoji option in the tool bar.
1
vote
0answers
21 views

New Note quick action not appearing in lightning page

I have created one quick action on a lead object, which creates notes records. I also added that note quick action to the page layout but it's not getting displayed on the page. I tried to do the same ...
0
votes
1answer
21 views

How to call application event handler in init method?

I have created an Application event and registered that in Component 'A'. I have component 'B', where i have declared handler for the event. Now my issue is I have the init method on Component 'B' and ...
0
votes
1answer
24 views

LWC lightning-formatted-number doesn't work

I have lightning-formatted-number with currency type and if value has more than 15 digits then it doesn't work (left is work, right not): I show it with a wired method and I have 100 fields, so I don'...
0
votes
0answers
20 views

Tasks - No access to the RecordTypeId field. The field has been removed from the entity or access to this field has been removed

here is my issue I create a task from an activity bloc of an account I create an event from event bloc of an account I go back to my task to mark it as done or modify it, i got this message error : ...
0
votes
1answer
30 views

How to pass pagereference parameters to component using workspace api Open Tab() standard detail page navigation?

I have created a Flexi record page for an account and also placed a custom lightning component in that. now my requirement is, I want to Open Tab with workspace API to redirect to standard account ...
0
votes
2answers
42 views

Remove Send Message Button From contact list view

Can you Please help me in removing SendMessage button from contact recently viewed List view(Standard List view)
-2
votes
1answer
28 views

Can any one explain from where they taking url path to display image

<aura:component implements="flexipage:availableForAllPageTypes" access="global" > <aura:attribute name="car" type="Object" access="public&...
0
votes
0answers
29 views

What is the smtp address of my Salesforce Org for SPF Purposes?

If anyone can provide any advice, I am looking for the smtp server address for my salesforce org. Where can this be found? In summary: I am being asked to provide the smtp address to an individual. ...
0
votes
0answers
19 views

Cant able to redirect dev hub( salesforce login) through vs code

When i try to open dev hub through Vs code in terminal. It redirects to login salesforce. After loggin saying that "the service and account specified in key.json do not match the version of the ...
0
votes
2answers
49 views

How to use forceChatter:feed with a record?

How to show the Chatter feed for a record in a custom component? I am trying to use the forceChatter:feed type="Record" but it is not giving the correct results for the record? Can anyone ...
0
votes
0answers
23 views

How to pass take record id while pressing a overiding button and take it to the component

I was working on a project in which I have to override a button. After overriding, I get redirected to a new page and lose the reference to parent id. Can someone give a solution to this problem? ...
0
votes
0answers
18 views

How Can I Embed A Visualforce Component inside Lightning Experience Builder?

I am trying to embed a component from my Visualforce page inside the Lightning Experience builder. This will be specifically for the header and footer. I have a VF community and need the header/...
0
votes
0answers
34 views

getting Client DOM Code Injection security issue in lightning controller

In scanning, I got Client DOM Code Injection security issue in lightning controller for below section: window.addEventListener("message", function(event) { var message = event.data; }, false)...
0
votes
0answers
16 views

How to implement Auto-date formatting functionality in the Lightning JS?

would like to show the auto date format like mm/dd/yy. Here is the example: link Auto-format Date Input. so far i was using this code, but this doesn't resolve my problem. Component <lightning:...
0
votes
0answers
24 views

How to modify the CommunitiesSelfRegController to check if the contact exists in Salesforce?

I have a community portal where we want to allow external users to self register. As you might know, a controller called CommunitiesSelfRegController does this. The external users needs to give their ...
0
votes
0answers
19 views

Regular expression to check does a string contains any special symbols not working in lightning javascript

i am using the below code var value = 'abcd$'; var regularExpression= new RegExp('[-!$%^&*()_+|~=`{}\[\]:";\'<>?,.\/]'); if(regularExpression.test(value)) { //true } else{ false } ...
0
votes
0answers
20 views

How to change the size of custom button on community page in lightning?

How i can reduce the size of button i.e parent portal and how can i add that button after the text i.e after below link
0
votes
1answer
92 views

draftValues in lightning-datatable lwc

I have a lightning datatable html code <c-custom-lightning-datatable key-field="Id" data={sObjectRecordList} columns={columns} ...
4
votes
2answers
614 views

How to remove In-App Learning icon from global header?

With the Spring'21 release, Salesforce have added an In-App Learning icon to the global header. Is there a way to remove this from the header?
1
vote
1answer
22 views

Can you use html attributes to a lightning:button?

In html you can add html attributes like <button data-myattribute="hello world" /> If I am using lightning:button, how do i do this? <lightning:button data-myattribute="hello ...
0
votes
1answer
39 views

Apex Trigger not Firing on Mass/Bulk Update

I'm having an issue where my Apex Trigger only works when updating one Contact at a time. It doesn't work too well when doing a bulk or mass update and I don't quite understand why. My trigger checks ...
0
votes
0answers
8 views

a detail page gets frozen after showtoast events or alerts

I am converting javascript buttons using aura component. I noticed that when my aura component shows toast event or alert messages the page where it was on gets frozen. I have to use window reload to ...
0
votes
0answers
7 views

Discrepancy in values when record is open in Edit mode by one user and is saved by another user at the same time

TLDR : Two users operate on the same record by changing the owner between them. The fields are read-only on the layout for the user as the other works on it. But opening the record in edit mode and ...
0
votes
1answer
24 views

Preview issue for non System Admin users

I am using Lighting:fileCard in the aura component and the System admin can see the preview of the file but not the other user with different Profile. <aura:component> <lightning:fileCard ...
0
votes
1answer
24 views

Creating Lightning Platform Starter License User In Scratch Org?

what is the confi.json we need to add for enabling the Lightning Platform Starter license in our scratch org? we want to check what are all feature users will lose when we downgrade to the Lightning ...
0
votes
0answers
28 views

lightning Error Case: id value of incorrect type: at Edit Case Type

I am trying to edit an existing ERT case type which is a child to Case object by overriding standard EDIT buttin in ERT case record ,here is error  I am using use Philippe Ozil's ready component for ...
0
votes
1answer
103 views

How to change default HTML/CSS for Einstein chat-bot Help Button

By "Help Button" (referenced in post title), I mean the <button> element that is added to the page that you click in order to launch the chat frame. In my implementation, it is just a ...
0
votes
0answers
12 views

apex:emailPublisher for Lightning experience

One of our customer is moving from the old classic service console to the new Lightning experience console. In the old console, they are using a custom VF page using apex:emailPublisher component for ...
0
votes
1answer
30 views

How to display lightning checkboxGroup in 2 column without disturbing other slds form elements?

What CSS would be required to make the items in a lightning:checkboxGroup display horizontally in two or three columns? i have tried this Css .THIS .slds-form-element__control { display: grid !...
0
votes
1answer
26 views

How to detect the LWC form changes on Back button

I am working on gathering the information from the user, once the document details been saved into database, still user can be able to edit the form data at any time. If user click "Back" ...
0
votes
0answers
5 views

Reports and Dashboard by sales rep on following requirement

I have the following requirement to be done,in my analysis what i realised is this is the work of a summary report however I am facing the following issues 1)In my analysis as I understand this ...
0
votes
2answers
23 views

Component “variables” not set, not passed to forceCanvas

I'm trying to host a canvas app on a Lightning page. The canvas app itself needs the current record and type in order to load things on my own server properly. I have the canvas app up and working (...
1
vote
1answer
29 views

Improve performance and speed in Lightning Experience [closed]

Recently switching from Classic to Lightining and users started feeling very slow to load the page, does anybody has any pointers what might the case and what to look for in order to make it faster ...
0
votes
1answer
34 views

Is custom field validation message supported on lightning-input-field like it works in lightning-input?

From the document: <template> <lightning-input label="First Name" minlength="5" message-when-too-short="Your entry must be at least ...
0
votes
1answer
14 views

Error “The Expiration date needs to be entered” when creating a recurring Task (Lightning)

I am trying to create a recurring task in Lightning Experience and it turns out to be difficult. I have enabled the appropriate setting so that I am allowed to create them. I have added the "...