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.

2,150 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
2answers
818 views

lightning:fileupload - Override default error message when unacceptable file format is uploaded

I am using lightning:fileupload in my lightning page. It works fine, but I am unable to override the default error message displayed (your company does not allow the file format...etc). Business wants ...
2
votes
0answers
92 views

Error with Case.SourceId field in a record edit form component in Spring '20 - works fine in Winter '20

I have a Lightning record edit form base component with the following simple markup: <div class="slds-col slds-size_1-of-2 slds-p-around--small"> <lightning:inputField fieldName="SourceId" ...
2
votes
0answers
530 views

Lightning Flow Display text does not render HTML inside lightning out app

I have a flow that is using a simple DisplayText element on the Screen. It just displays Hello world (yes, I formatted it to be bold). I edited the record detail page and added this flow to the page. ...
2
votes
1answer
102 views

Lightning Experience: External Sharing/Forward This Case

I have run into a brick wall trying to figure out how to extend or duplicate the External Sharing functionality in Salesforce Classic to Lightning Experience. Since the Classic Console is being ...
2
votes
0answers
101 views

"Recently viewed" list views

In the Contacts tab, annoyingly, there are 2 standard list views: (1) Recently Viewed and (2) Recently Viewed CONTACTS 🤨. Most of you wouldn't have even noticed this. For list view number (2), can we ...
2
votes
0answers
151 views

Focus tab after firing Create record event in console app

I'm firing force:createRecord event from custom lightning component in lightning service console. I used Workspace api close Tab and closing the current and firing the record event , after that where ...
2
votes
0answers
335 views

Cannot save lightning component Spring '20

In Professional Edition, after the Spring '20 release, I'm not able to save any lightning component. Getting the below attached error. Anyone else facing a similar issue? Error message: nested ...
2
votes
1answer
33 views

How we can identify from which component the event has been fired?

I have a scenario that I have an event called AdviceEvent registered by two different components ParentCmp and FriendCmp. And Third component called PersonCmp is handling both event. The Question is ...
2
votes
0answers
35 views

How to disable "text-transform: capitalization" for embedded service chat button label on community?

Does anybody know how to disable "text-transform: capitalization" for embedded service chat button label on community?
2
votes
1answer
411 views

Lightning Component not updating records

I need help getting my muddled-together-lightning-component to update existing records. I do not really know what I'm doing so it's a wonder I've made it this far :) My component lists all child ...
2
votes
0answers
36 views

Can we affect the standard Lightning Email feature on Case with code?

Rather not code this from scratch. My question is specific to how I can tap into Lightning Experience's existing functionality. Just as an example, is there a way to leverage a 'marker interface' to ...
2
votes
0answers
900 views

Refused to run the Java-script Issue with Redirection from Lightning Web Component to Lightning App Builder page

I'm facing issue when I click link in the Lightning web component to custom built Lightning App builder page( Type is App page). Error In the Image: "Refused to run the JavaScript URL because it ...
2
votes
0answers
231 views

I have created a lightning datatable in LWC and now want a url field to open a modal

I am not sure what is that i have to add in the code to make it open in a modal
2
votes
0answers
57 views

With Lightning UI enabled - is it possible to stop /aura Operation spam in Developer Console's log panel?

When I have Lightning UI Enabled, Open the Dev Console and toggle to the "Logs" tab, my log is spammed with nearly endless /aura operations. This slows down my general experience in lightning as ...
2
votes
0answers
18 views

Lightning Inspector - Performance tab issue

When I try to toggle recording button of the performance tab of the Lightning Inspector, i'm getting below error message; Any thoughts to prevent this?
2
votes
0answers
146 views

getting issue in setting caret in div with contenteditable true

I'm trying to set caret to a child span of a div with contenteditable="true", Below is the code: placeCaretAt : function(id){ setTimeout(function(){ var test = document.getElementById(id)...
2
votes
1answer
2k views

How to conditionally render inside a datatable in lightning?

I have a lightning datatable and into one column called 'Set Primary Contact' I want to display an icon if the custom field IsPrimaryContact__c has the value TRUE, or a button 'Set primary contact' if ...
2
votes
1answer
27 views

Lightning component docs are not avialbe

Why every lightning document that I'm trying to open give me the next error : Example Urls: https://developer.salesforce.com/docs/component-library/bundle/lightning:card Actually all the next ...
2
votes
1answer
321 views

Lightning:openFiles event alternatives for communities

we need to open (preview) files in communities by clicking on link. After searching I found lightning:openFiles event, but in documentation is written that it is no longer recommended and it should be ...
2
votes
0answers
31 views

Quick action record edit form behaves differently based on page layout

I have a lightning record edit form launched through a quick action that uses the page's recordId to grab fields. On this edit form there is a lookup field. If I don't include this field on the page ...
2
votes
0answers
36 views

'Create a Record' Action Navigation

Scenario: I currently have an Action associated with the Account object that creates a new Opportunity, with fields mapped to that new Opportunity, from the Account where the user clicks the Action. ...
2
votes
0answers
65 views

How to refresh record page when related objects are created

When a user adds a related object on a contact you can see the newly added record instantly. However in a trigger we add another related object to the contact (an Opportunity) and to see this newly ...
2
votes
1answer
630 views

Unable to upload the LDS 2.10.0 as static resource

As we know that static resource has a limit of 5MB, I am trying to upload the LDS winter 20 as static resource, but its size is more than 5 MB https://lightningdesignsystem.com/downloads/ In this ...
2
votes
0answers
179 views

LWC - Retrieving WAVE Dataset information

I'm trying to make a callout to /services/data/v45.0/wave/datasets in a lightning web component. I can successfully make the callout for the running user in apex using UserInfo.getSessionId() but ...
2
votes
0answers
1k views

LWC lightning datatable: Enabling Popover Overflow

I'm creating a lwc datatable with a custom column which contains a button and a corresponding popover. The problem is that the popover will not display as I would like it to, though by playing ...
2
votes
0answers
193 views

'Small' form factor available for LWC in Partner Developer org but not in Partner Professional org

I have two orgs created in the Environment Hub, both on AP15. The 'Partner Developer' org actually lists 'small' as a valid factor in LWC (e.g. in Lightning Page Builder you can select 'phone'); the '...
2
votes
0answers
104 views

Translations in Lightning Web Component

I have to build a Lighting Web component which would be exposed to the Lightning community for guest user License. I want this component to be multi-lingual. The language will be passed in the URL. ...
2
votes
1answer
91 views

React App API Patch call getting 500 error

I've got a react application running in a lightning container. Queries to the rest API via a get request work just fine, but upserting data via the patch request just gets a 500 error with no message ...
2
votes
0answers
29 views

Event to trigger related list data change

I see that there is a force:refereshview handler event that i can use to handle refreshview The challenge is when the related list is edited the refreshview does not fire consistently(Observed this ...
2
votes
1answer
610 views

How to set org wide default home page through metadata api? Not for specific app or profiles

This question has been asked by few previously and i see the answers are not pointing to the correct scenario I am having a need to deploy a new lightning home page and set it as default for the ...
2
votes
1answer
252 views

How to change the value of a input field on select

I am trying to update the selected value from pop up to the input fields. But the value is not getting reflected on UI. If any one have any idea please help below is my code HTML <template> &...
2
votes
0answers
336 views

Lightning Console: Hyperlink in lightning Data Table

The hyperlink/Url in LightningDataTable is not opening in a new primary tab. Instead, it's opening in a subtab in lightning console. I have tried "_self" and "_blank". Blank is opening in new browser ...
2
votes
0answers
168 views

Visualforce page embeded in page layout is not coming with 100% width in lighting compact density

I have a visualforce page embeded in pagelayout and page is showing the 100% width for comfy but for compact it is not showing 100% width. Can any one tell me how to fix this issue?
2
votes
0answers
62 views

Exception in lightning component when loading on mobile app web view using lightningout.js

We have a custom mobile app where it loads the lightning components in hybrid web view through lightningout.js. we found an error message displayed in mobile webview for a component, it contains ...
2
votes
1answer
1k views

add custom LWC to lightning record page causing error (Only happens when the org has a namespace )

it was working earlier this week, but starting from June 18th I believe after SF pushing upgrade or something, it stopped working. add custom LWC to lightning record page for standard object still ...
2
votes
0answers
205 views

Salesforce lightning tab URL param is getting removed

I had created a lightning component tab. The tab was being called from a detail page button like this /lightning/n/Forecast_Report_Account?accountId={!Account.Id} All was working fine . The URL ...
2
votes
0answers
1k views

Spell check doesn't work well in lightning input rich text

I'm having a lightning out app in which I'm having a custom rich text field. When I try to correct the spelling for the misspelled words, it's stripping out the entire line instead of correcting the ...
2
votes
0answers
177 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, ...
2
votes
1answer
952 views

Lightning:progressIndicator - Current Path Progress Step "Error" red background color

Anyone know how to set a background color for Lightning Progress Step when the current step is set to failed/error? COMPONENT: <lightning:progressIndicator aura:id="progressIndicator" ...
2
votes
0answers
2k views

Is there a way to use lightning:fileUpload from a Visualforce Page?

I need to call a Lightning component which uses lightning:fileUpload to upload multiple files from a Visualforce Page. But for calling a Lightning component from a Visualforce Page, I need to use a ...
2
votes
1answer
393 views

Content Overflow with <lightning:checkboxGroup>

I want my lightning:checkboxGroup to overflow into two columns in my fixed width and height box. I believe the best way to do this is to edit the css but I am not sure if this is possible with the ...
2
votes
0answers
169 views

Why we have two data model static and dynamic in lwc to refer in metadata aware component

In base lightning component in LWC we can refer data model static or dynamic. Static ensures referential integrity whereas dynamic does not. Is there any other difference between these two? Which ...
2
votes
0answers
1k views

Visualforce Page Timing Out in Lightning but OK in Classic

I have over-ridden the standard Edit button. The button loads a VF Page that displays 11 child records. The page is timing out in Lightning mode but does not when in Classic. However, if the VF page ...
2
votes
0answers
845 views

Using a forceChatter:feed component to render activity

In the lightning component that I am making, I want to mimic the behaviour of the chatter feed views, All Updates, Call Logs, Text Posts and Status Changes. (In the screenshot below) Basically I want ...
2
votes
0answers
256 views

LockerService Error while using Range.setStart

Why does LockerService Error while using Range.setStart? Getting the error "Failed to execute 'setStart' on 'Range': parameter 1 is not of type 'Node'. This is when using popper.js dependency in a ...
2
votes
0answers
338 views

Accessing Connected App From Visualforce

I'm developing an application which integrates with another services API. This API requires a SAML token to provide authentication. I've created a connected app, and from an execute anonymous call if ...
2
votes
1answer
186 views

Set relative height for ui:scrollerWrapper

I'm trying to implement a ui:scrollerWrapper for a Lightning Component in a quick action in the Salesforce app. I'd like to have a scrollable section that occupies 60% of the screens height, so I ...
2
votes
1answer
55 views

Lightning out - How to catch errors from the embedded component

I have a lightning out application. I can easily catch backend errors and show it in the front-end via alerts or toasts. However, I wanted the host application to have a way to capture the error ...
2
votes
1answer
357 views

lightning:fileupload issue in salesforce1

I am trying to upload/attach files to a record using the lightning tag 'lightning:fileUpload'. I have used this tag inside a component and used the component inside an App It works fine when ...
2
votes
1answer
25 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). ...

1
3 4
5
6 7
43