Skip to main content

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
0 votes
0 answers
18 views

Navigate to LWC page from a custom button on an object using Lightning:UrlAddressable

I want to open a LWC page (a form) in a new page when clicking on a custom URL button on a standard object page. The issue is I don't know what the button URL should be, and how to properly wrap it ...
MrKnudz's user avatar
  • 13
-1 votes
0 answers
20 views

The formula fields should be available /visible only on record page and not record edit page how to solve this?

The formula fields should be available /visible only on record page and not record edit page how to solve this ?
rampallypranaya rampally's user avatar
0 votes
0 answers
26 views

I'm not able to redirect account record page using lightning aura component

<aura:component controller="auraaccountController" implements="flexipage:availableForAllPageTypes,force:appHostable,force:lightningQuickAction,lightning:hasPageReference"> ...
Sridhar's user avatar
  • 61
2 votes
1 answer
49 views

Beautify code snippet string in LWC

Hi Im removing html tags from a richtext input in order to make it a raw string, the string will be a code snippet. However I could not achieve it through using the standalone.js of prettier library. ...
RProgrammer's user avatar
0 votes
1 answer
38 views

Access LWC via text template URL from flow

I have created a screen flow. It has a text template. I have created a button in the template that will call a LWC. Below is the code added in text template: <a class="slds-button slds-...
user15754268's user avatar
0 votes
0 answers
28 views

Display error message and character count in same line below in lwc

I have a requirement to display a character count underneath an input field, which is a required field. However, I'm encountering an issue: when the user does not input anything and the error message ...
Shira's user avatar
  • 49
0 votes
0 answers
21 views

Not Able to update version of LWC component

I have updated the Lightning Locker API Version to 61.0 after that I'm trying to update API version of my component but am not able to do import { LightningElement, api, track, wire } from "lwc&...
garvita asthana's user avatar
0 votes
0 answers
26 views

Renaming LWC - Post Renaming

When you rename the LWC Component and deploy it from VS Code, what will happen to the existing LWC Component with the older name? -- Will it be deleted automatically and replaced with the new name? -- ...
Loki_72's user avatar
  • 11
0 votes
1 answer
36 views

Bulk Update Custom Metadata Records

Are there any sfdx/sf CLI commands to bulk update the Custom Metadata Records via VS Code? I can able to see only create commands in the Salesforce documentations. Thanks In Advance!!
Loki_72's user avatar
  • 11
0 votes
1 answer
21 views

Checkbox Toggle current value

I am using the standard Salesforce Toggle checkbox code. I am not able to read the current value of the toggle with getelementbyId. <div class="slds-form-element"> <label class=&...
SFDCRookie's user avatar
0 votes
0 answers
27 views

Why is there a thick blue border appearing over elements when its in focus?

Can someone please help to me understand why html elements are showing a thick blue color instead of a light blue color when active/infocus. This is what I'm talking about: Before, everything used to ...
Mike's user avatar
  • 31
1 vote
0 answers
24 views

Aura Component - Lightning Page Template - Collapsible region not resizing correctly

I am trying to create a Lightning Page Template aura component that has two equal sized regions. Between the regions is a button which when clicked collapses the left region, and the right resizes ...
Tom Young's user avatar
-2 votes
0 answers
27 views

Use Access Token to login to Salesforce UI

I get an Access Token for each user using User/Password flow in a trial Production SF tenant. I cannot access the API nor I want to. I only need to use the Access Token so I can redirect the user to ...
user149829's user avatar
0 votes
1 answer
36 views

ESLint not recognizing files in non-standard folder structure

Installing ESLint and receiving the following error when issuing the command npm run lint: Oops! Something went wrong! :( ESLint: 8.57.0 No files matching the pattern "**/aura/**/*.js" ...
Evelyn Maguire's user avatar
1 vote
1 answer
52 views

Populate Lookup Id field in the Navigation Mixing while creating a new record

I have a scenario where I am using Navigation Mixin to create a new record. So during the creation of the new record I want to prepopulate the Lookup record Id in it. But even though I configure the ...
Loki_72's user avatar
  • 11
-1 votes
0 answers
40 views

How to Implement the rate limiting in the forget password

Can you please guide me, How to Implement the rate limiting in the forget password number of password reset emails to 5 per hour per email address. Set up a verification mechanism to track the number ...
Chittu Kala's user avatar
1 vote
0 answers
58 views

Classic Open CTI methods workaround in Lightning

we're preparing for a migration from Classic to Lightning. We have a custom implementation of CTI where we're using some of the sforce methods, that we need to replace with the new ones. I've ...
ukulele's user avatar
  • 35
0 votes
2 answers
65 views

Toggle field is not getting updated properly

I have a scenario where I have toggle input and if the toggle input is changed, I have a Lightning Confirm popup and in that if the user selects okay button, the system should put whatever value the ...
Loki_72's user avatar
  • 11
0 votes
1 answer
33 views

Changing the layout of the standard button for the custom object

there is a change owner button standardized by salesforce. They want to add another checkbox on the layout of this button. How can I add this field to the layout of this button? Note that It shouldn't ...
Saber's user avatar
  • 11
2 votes
1 answer
56 views

addEventListener VS ResizeObserver

I've noticed Salesforce orgs get the error ResizeObserver is not a constructor when Session Settings -> Use Lightning Web Security for Lightning web components and Aura components is not enabled. I'...
louis's user avatar
  • 81
0 votes
1 answer
61 views

Jest test for lwc modal

I'm trying to write a Jest test to cover a scenario: when the "Reset Location" link is clicked, a modal appears. However, I'm unable to access the cancel button within the modal to simulate ...
Shira's user avatar
  • 49
0 votes
0 answers
36 views

Extra Page When Printing Web Pages in Lightning Experience

When printing web pages in Lightning Experience, there is always an extra page. This is true for any Record pages, App Pages from Lightning Component or Lightning Page Tabs. Adding css in Lightning ...
Sid Fortunato's user avatar
1 vote
1 answer
47 views

For Lightning, can I have a field Lookup Filter that allows a blank lookup value when the path update button is clicked?

This lookup field filter on a field labelled "Fund Bank Account" on an object labelled "Distribution": works well when a user is editing the lookup field. It only offers Fund Bank ...
Keith C's user avatar
  • 136k
0 votes
1 answer
50 views

FIELD_INTEGRITY_EXCEPTION - Price book entry is inactive

I have a custom lightning component button with trigger on the Opportunity object, which clones the existing Opportunity and associated Quote record. At the moment, we cannot clone Opportunities where ...
Sophia's user avatar
  • 31
0 votes
1 answer
67 views

How to navigate to a custom lightning tab in experience site

I am trying to implement a requirement in experience site. Below is what has been implemented in salesforce and I want similar behavior in experience site. In accounts object created a quick action ...
Aniket Srivastava's user avatar
0 votes
0 answers
23 views

RefreshEvent doesn't refresh relatedList

I have a quick action for creating an Opportunity from an Account. The quick action is an LWC component, and upon submitting the button, I need to refresh the Opportunity related list on the Account. ...
salesforce Developer's user avatar
0 votes
0 answers
23 views

Troubleshooting missing metrics in the Lightning Usage app

As an admin, I am unable to locate the metrics for Active Licenses and Login Metrics when browsing the Lightning Usage app. Is there anything specific that needs to be updated? Could someone please ...
Ryan Chan's user avatar
0 votes
1 answer
33 views

Business scenario on why we need bubble=true and composition=false in LWC

As far as I understood, we need {bubble:true,composition:false} on firing event from child component to parent only when we want the event to be received above in the immediate DOM elements of Parent ...
Sukruti's user avatar
  • 462
0 votes
1 answer
44 views

How to get these two functions in LWC to not run at the same time? How to get one to wait for the other to be finished?

connectedCallback(){ this.blurHandler = () => this.testFunction(); this.beforeUnloadHandler = () => this.testFunction(); } I am getting the issue where both of these events the blur and ...
James's user avatar
  • 37
1 vote
1 answer
47 views

Aura component After action.setCallback code not executing

After action.setCallback code not executing, In Console log I can see only this The system debug is returning in the debugging. So, the apex is being called, returning a value. No error in Apex side ...
SK2889's user avatar
  • 921
1 vote
1 answer
42 views

How to fetch element Id on page load

I have a LWC button, and on page load I want to get the id of that element. How can I achieve this? I have tried the below code, but it's not working. In HTML: <lightning-button data-id="...
rmajumder's user avatar
1 vote
0 answers
53 views

User activity monitoring, Can it be done and how ? - Clicks, pages, tabs and components entered, action taken, etc

I have a Sales and Financial Services environment that works with banking and as such, auditing is quite heavy. Having that said, I need to find a way to be able to monitor and register somewhere in ...
Paulo Caetano's user avatar
1 vote
1 answer
52 views

Trying to pass field value from controller into iframe on LWC

Trying to pass Opportunity.AccountId into the url string in an iframe on a lightning web component that I want to sit on opportunity record lightning pages. I'm new to coding so trying to use this as ...
M_Grossbehnke's user avatar
0 votes
1 answer
253 views

How to fix or freeze a column in lightning data table

I have a lightning data table with lot of columns specified. First column in the table is called Product and there are other columns. In order to update other columns user has to scroll the table for ...
Sudhir Balijepalli's user avatar
0 votes
1 answer
108 views

Lightning-modal spinner overlay screen

I'm using the new feature: lightning-modal and using a lightning-spinner: <template> <lightning-modal-header label="Test"></lightning-modal-header> <lightning-modal-body ...
Alexia Ribeiro's user avatar
0 votes
1 answer
53 views

Status field in Highlights Panel not showing in certain profile

I hope someone can help me coz I'm stuck. So I have a page layout and lightning page which is being shared my multiple profiles. However, it seems like the status in Highlights Panel of my Lightning ...
Saber M's user avatar
0 votes
0 answers
25 views

How to create a tab that contains a custom LWC, but is not part of an app?

I have a link in an external system that redirects users to Salesforce. The link opens a tab with a custom LWC. I'd like to have this tab/page accessible to those users without creating this tab/page ...
DevelBase2's user avatar
0 votes
1 answer
49 views

Dynamic dependency between Multi-Picklist and Text field

I'm Configuring Dynamic dependency between Multi-Picklist and a Text Field. Desired Result: When I Select Other from Multi Picklist then the Proof Details Should become required Otherwise it should be ...
Sham Hiruthik's user avatar
2 votes
1 answer
63 views

Blank space - Quick action

I have a custom object and I have a built a quick action which will update the status field to "a" The quick action configuration is shown below While designing this quick action, I have ...
Exps's user avatar
  • 263
0 votes
0 answers
55 views

Styling custom drop down to not hide inside flow modal and extend modal length

I have a custom reusable lookup dropdown LWC component that I'm using in another parent component, which is then used in a flow screen. The dropdown hides inside the flow modal content area. I want ...
salesforce Developer's user avatar
1 vote
1 answer
706 views

Dynamic Related List - Single is missing related lists

I'm adding a Dynamic related list - single to the case page. When using Industries, a field on the Application object is added called ApplicationCase which links to case. In the standard page layouts ...
Duncan's user avatar
  • 21
0 votes
1 answer
36 views

Lightning Record Page

My mentor asked me this question,2 users with same profile, same page layout, same record type can see different fields based on their location. The answer is lightning record page, but how? I have ...
Rashmi Shankhpal's user avatar
0 votes
0 answers
90 views

How to add style to lightning combobox?

how can I add style to the combobox input and option items? ><lightning-layout-item size="12" padding="around-small"> <label class="custom-...
Yuqi Sui's user avatar
0 votes
0 answers
22 views

Different List Views for Activities & Tasks

I just noticed that you can directly access Activities and Tasks in Lightning - but no Events. The former brings you to a very old Classic list view while the latter is just as expected. I thought ...
Semmel's user avatar
  • 2,537
0 votes
0 answers
15 views

Setting Knowledge data category visibility based on Partner Roles

We have several Partner accounts and their hierarchies(point of Sales). Partner account can have multiple child partner accounts. for e.g PartnerAccount 1 => Pos1, Pos 2 PartnerAccount 2 => Sop1,...
AbhishekDEV's user avatar
1 vote
1 answer
142 views

Modify field value before this.template.querySelector('lightning-record-edit-form').submit();

I have an LWC component in which I'm using lightning-record-edit-form. I have a custom submit button. That is outside lightning record edit form. I don't have the 'Name' field in the HTML; instead, I ...
salesforce Developer's user avatar
0 votes
0 answers
45 views

Dynamic row deletion not working properly

I have an LWC component in which I dynamically add and delete rows. In my parent component, I use a reusable lookup custom LWC component. However, when I delete a specific row in the parent component, ...
salesforce Developer's user avatar
0 votes
0 answers
30 views

Selenium clicking of Lightning Elements causing abnormal behavior

I'm using Selenium to click the "View All" link in the App Builder drop down: const element = await driver.wait(until.elementLocated(By.xpath(`//lightning-button[.="View All"]`)), ...
MadMax's user avatar
  • 1,000
0 votes
1 answer
262 views

Not able to see Public Groups when sharing files

I'm trying to share files with my users. I can see individual users, but can't access the groups. My Public Groups don't populate in the Groups dropdown list, and if I just type in the group name, no ...
Ajinkyasd's user avatar
  • 335
-1 votes
1 answer
144 views

user not able to edit the dashboard

I am system admin. One of my user not able to edit the dashboard. She is getting error message saying " You don't have permission to edit this dashboard. Ask your Salesforce admin or the ...
Priya's user avatar
  • 1

1
2 3 4 5
133