Questions tagged [lightning-modal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

Z-index issue for lightning-button-menu in lightning-modal

This is my issue, when using <lightning-modal>. I've read several posts here about z-index issues, but I haven't found any that address the <lightning-modal> situation, which I suspect has ...
PatMcClellan__c's user avatar
0 votes
1 answer
43 views

Quick Action - Run code before a quick action is destroyed as a result of the X icon click

We are using an LWC as a quick action. I believe that since the screen type is ScreenAction, Salesforce is creating a new modal window (inclusive of an X icon), and rendering our component's markup ...
Prateek Mathur's user avatar
0 votes
1 answer
95 views

Adding extra button to Lightning-Confirm

I want to add another button to Lightning-Confirm so that I can redirect users to another community page on click of that. Is it possible to do so? Another way I'm looking for is to add a URL in the ...
Ruturaj Chothe's user avatar
1 vote
0 answers
90 views

lwc LightningModal - hide x button

Is it possible to hide 'x' button import { api } from 'lwc'; import LightningModal from 'lightning/modal'; import { PREVIEW_MARKUP } from 'c/constants'; export default class EmailPreviewMainModal ...
pincet's user avatar
  • 869
0 votes
1 answer
62 views

Squared Modal Pop-up LWC

I have the below modal pop-up built using LWC that has curvy edges but I need the edges to be squared. Actual : Expected : Here's the modal pop-up piece of HTML code for the existing one : I want to ...
Surya Prajwal Ch's user avatar
0 votes
0 answers
60 views

Salesforce Mobile App - Collecting user input / Close modal on device back button

In the Salesforce Mobile App, we have a custom tab with a Lightning component where the user can trigger various actions, and one of the actions requires additional user input. Therefore, a modal (...
Jaka Krajnc's user avatar
1 vote
1 answer
196 views

LWC - LightningModal does not display as a pop up and doesn't look like a modal at all

I have a similar problem, yet I'm using the lightningModal. I also checked the element and it does have the slds-modal. I would really appreciate any idea, or if you could point me out to my error. ...
Ronit Shoshani's user avatar
0 votes
0 answers
164 views

Override the NewCase Action with a Lightning Component that launches a Flow in a pop-up

Overview We've built a custom screen flow to guide Users through creating a new Case record. We would like this flow to override the standard "NewCase" action, so that when a User clicks it, ...
JustinF's user avatar
  • 413
1 vote
1 answer
612 views

this.close() will not close Lightning Modal

I am following the documentation from here: Close a Modal Instance Use this.close(result) to close the modal, where result is anything you want to return from the modal. The .close() operation is ...
Arthlete's user avatar
  • 4,907
0 votes
0 answers
192 views

LWC - Using NavigationMixin.Navigate doesn't work in some contexts. I require it to work within a LightningModal component

I have a custom component cmpLookup that has a lightning input. Upon typing a text into this input, records with a matching name are shown. Upon clicking any of the suggestions, user is redirected to ...
Milan Vrškový's user avatar
0 votes
1 answer
265 views

LWC lightning-modal initial focus on header

According to documentation lightning-modal documentation When the modal opens, focus goes to the first interactive element in the modal. If the header includes a link in tagline text, the link gets ...
sfrazlond's user avatar
1 vote
0 answers
230 views

Problems with DOM API in LWC lightning-modal

I'm attempting to create a reusable LightningModal component. This modal is invoked from the JavaScript file of the user component using the .open() method. The challenge I'm facing is that I'm unable ...
Juan de la Fuente's user avatar
0 votes
0 answers
116 views

Customized Lightning-modal header

Is there anyway to customize the lightning-modal-header in lwc? If I leave out the label and just use the subheader. I get this error message. However the label only takes in a string while I want my ...
Kevin Yao's user avatar
  • 107
0 votes
1 answer
425 views

How can I add a form in a modal that pops up on first page load?

I'm trying to set up a modal that opens on page load, the first time a user accesses the site. The form is simple and will have two buttons: Are you an agent? Yes No If yes, the content on the page ...
linnse's user avatar
  • 109
2 votes
1 answer
440 views

Is there a way to pass in markup to a modal built with "lightning-modal"?

In LWC, when using a custom modal component, I'm able to pass in markup to my modal body using slots like so. <c-custom-modal> <lightning-card slot="main"> &...
Sal Carrera's user avatar
3 votes
0 answers
299 views

Pass markup to lightning-modal dynamically in LWC

I've a LWC which defines generic structure of Modal using lightning-modal-*standard Base components. myModal.cmp <lightning-modal-header label={modalLabel}></lightning-modal-header> <...
sfdc07's user avatar
  • 584
0 votes
1 answer
1k views

Why does Lightning-modal not recognizing label and not opening?

So, I'm having a problem with lightning modal not opening due to not recognizing the label value on the aria attribute. This is the error I'm getting: LightningModal - Templates with <lightning-...
Lior Lavi's user avatar
  • 364
0 votes
1 answer
734 views

Script Error Closing LWC Modal Window when Flow Interview Finishes

I'm trying to use the new LWC modal component. Embedded in the LWC modal is a screenflow. The issue I'm facing is the finish behavior. How can I get the modal window to close when the flow interview ...
Taku's user avatar
  • 5
0 votes
1 answer
577 views

Styling and positioning a lightning-modal

Used a popover blueprint for this look but I'm not benefitting from the built-in open/close and faded background functionality of a lightning-modal.... Is there a way to customize the lightning-modal ...
nstuyvesant's user avatar
1 vote
2 answers
2k views

Hitting error "TypeError: Cannot read properties of undefined (reading 'open')" when using open() method of the new LightningModal library

I'm trying to utilize the new LightningModal library to launch a modal from an LWC component. Running into an error that I'm having trouble resolving, and hoping someone here can help me out. There is ...
Trevor Gill's user avatar
2 votes
1 answer
597 views

lightning combobox dropdown is hidden inside LightningModal

I'm building a lightning Combobox inside LightningModal but the dropdown list is hidden because the lightning modal container is not automatically extended as follows. I already tried the solution ...
Hiroki Yuda's user avatar
0 votes
1 answer
379 views

Show text with link in Lightning modal

Hello everybody I want to show a message inside a Lightning-modal and a link that redirects the user to a previously created record. Like for example: The problem is that I am getting this: In my js ...
user avatar
0 votes
1 answer
1k views

Show/Hide Lightning modal in LWC

Hello everybody I am currently working in a LWC form that shows a form and a js code that sends the user data to an apex code to validate the input values. And if there is any error it returns me a ...
user avatar
0 votes
1 answer
165 views

LWC: Edit file details in modal

I want to edit file details and update it. i dont know where i am going wrong, i have used lightning datatable for display of all file and on click of edit file button modal open up which shows ...
Dhiren Raut's user avatar
-3 votes
1 answer
878 views

How to display LWC Modal Popup when user login to salesforce org?

I have created a LWC modal popup which is currently displayed on home page once the home page gets loaded. Requirement is Display Modal Popup on the homepage when user freshly login to salesforce. ...
Pranav Chavan's user avatar
2 votes
2 answers
2k views

dispatchEvent not working inside Lightning Modal

I have a modal window from which I am sending an event to the parent component from where I opened Modal window. But it is throwing an error. Is there a way to fix it? //ServiceContractHierarchyModal....
doga's user avatar
  • 4,575
7 votes
2 answers
3k views

Lightning-modal custom event not working in winter 23 release

I was exploring new lightning-modal module in winter23 release but seems like custom event of the modal is not working. here's my code. I believe lightning-modal is already GA but struggling to ...
Soumi's user avatar
  • 75