Questions tagged [modal]

The tag has no usage guidance.

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

force:lightningQuickAction . Will implementing this open the component as modalpop up directly?

I want to open a component as modal up from another custom of another component.If my child component has force:lightningQuickAction ,should that open directly as modal pop up without writing the ...
0
votes
1answer
41 views

Error in lightning:overlayLibrary. PromiseRejection: Cannot read property 'setParams' of undefined

I'm trying to add a modal to my lightning component, but receiving below error. Home Component <aura:component access="global" > <lightning:overlayLibrary aura:id="overlayLib"/> &...
1
vote
0answers
21 views

Lightning modal - Scroll to top of page when there is a validation rule error

I am making a component that has a similar functionality like the standard lightning component. I am using modal mode and normal mode based on a value provider. I want when there is a validation error,...
0
votes
0answers
20 views

List button - VisualForce Page - Modal

Is there is a way to open the VisualForce Page of a list button (related list button) in a modal instead of in a new tab ?
0
votes
0answers
24 views

List button - Visual Force Page

I need to create a list button with Visualforce page as Content source, that will appear in related list next to the button 'Add products', as you can see below. This related list is in Opportunity ...
1
vote
1answer
75 views

Can I use Modal window with lightning:recordForm?

Okay, I am using lightning:recordForm to create a standard contact form in which I am redirecting on cancel and on success using lightning:navigation but since the layout in recordForm is not that ...
0
votes
0answers
19 views

Rerender of Outputpanel not working in modal component

I have a VF page with a modal component in it, which gets displayed depending on a button click. There are 2 issues: I pass a record id to the modal component via a data-attribute, which populates a ...
6
votes
1answer
484 views

Composed Lightning Web Component with slots and conditional rendering

Use Case I'm building a LWC to use as a modal template (leaving a slot for the body) so all the logic from the modal can be handled there and reuse it for multiple modals Example Here's the ...
0
votes
0answers
34 views

lightning component unable to remove cached data

I have a lightning component that implements isURLAddressible and it is invoked with a button from lightning case record page. The button opens a lightning modal that creates opportunity record. ...
0
votes
1answer
193 views

Reload Modal Panel of Quick Action (Lightning Component)

I have a Quick Action with a lightning component, it's a form for the creation of records. I make a button (Save & New) in the modal panel, but i don't know how to reload the entire form or clear ...
0
votes
1answer
75 views

force:inputfield is not displayed on the modal popup

I have created modal in component and added <force:inputField inside it, but it is not displayed on the modal popup. But, if the same <force:inputField is added in the component, then it ...
3
votes
1answer
145 views

How do I produce a “New” record button to look like a standard “New” button?

Basically I want to create an input area for a new record. I'm trying to get it styled like the standard "New" Button. I have tried doing it via Visualforce but it looks like a completely separate ...
6
votes
3answers
366 views

component.find(“overlayLib”).notifyClose(); not working inside apex controller's returned promise

I have a parent component with the <lightning:overlayLibrary aura:id="overlayLib"/> component added. The parents controller creates an instance of the modal component, assigns it to the body ...
2
votes
1answer
313 views

Lightning Modal disable background

Here is my code for modal: component code: <div aria-modal="true" role="dialog" tabindex="-1" aura:id="myModal" class="slds-modal"> <div class="slds-modal__container" > <...
0
votes
0answers
46 views

Component behaves differently in community vs internal

I have a component that displays a modal form using create component and a modal promise. In the community, it works as intended, where something occurs that fires the event that creates the ...
1
vote
1answer
98 views

Unable to Call Apex-Controller Method in Modal-Footer Component

I have a modal with a footer. The footer is just for Cancel and Save buttons, and their respective JS functions. Modal Markup <lightning:overlayLibrary aura:id="overlayLib"/> <lightning:...
0
votes
0answers
361 views

Onchange Function for Lightning:inputField Automatically Runs (Causing an Error) when Loaded in a Modal

I have a component that opens in a modal. Modal/Button Markup <lightning:overlayLibrary aura:id="overlayLib"/> <lightning:button name="modal" label="Create Pet" onclick="{!c.handleShowModal}...
2
votes
0answers
172 views

How can I override standard modal css in lightning:overlayLib modal instantiation?

I am running into an issue where part of my component within the modal generated by lightning:overlayLib requires the user to scroll. I want the div that appears to display over the top of the footer ...
3
votes
1answer
310 views

Unable to open another Lightning Component in a Modal pop-up when called from within a Lightning app

Here is my first Component called Modal: <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:...
0
votes
0answers
91 views

Visual Force page as a lightning pop up

I previously asked this question and found that this is an issue existing in the system and something that needs to be handled at the moment. Lightning Component as a button Drawing from that ...
0
votes
1answer
295 views

Can I update the Header, Body, or Footer of a lightning:overlayLibrary component? [closed]

I have created a custom modal and I would like to update the footer of this component after the component has been created. Is there a way to do this? openModal : function(component) { $A....
1
vote
0answers
183 views

getReference undefined

I ran into a problem that just doesn't make sense. I am dynamically creating component (modal) and passing attributes into it. this is the method that takes care of that: showModal: function (...
2
votes
1answer
1k views

Iterating over List<String> in <aura:iteration>

So, I have been losing my mind over this for a few days now. Scenario: I have a component that displays a custom modal. this a snippet of code, that takes care of that showModal: function (...
1
vote
3answers
108 views

Lighting action to only call apex [duplicate]

I've this very simple component <aura:component implements="force:lightningQuickActionWithoutHeader, force:hasRecordId" controller="LC09_AccountButtonUpdatePermission_CTRL" access="global"> &...
1
vote
1answer
151 views

Show modal on top of Component rather that page

I have a component created : <aura:component description="CaseRelatedArticleComponent_ACE" implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId" ...
0
votes
2answers
2k views

How to create form with 2 columns inside lightning modal

I have a button "Create New Opportunity". onclick of this button, a lightning modal popup opens with the set of around 16 input field tags to get the inputs from the user.I want this 16 input field ...
0
votes
0answers
134 views

Open slds modal dialog from iframe - Visualforce page embedded on Standard Layout

I wonder if it is possible to open modal dialog on fullscreen from visualforce embedded on Standard layout? I already tried to resolve that with JQuery but I get only SecurityError: Permission denied ...
1
vote
0answers
71 views

When creating modal with showCustomModal(), dynamically replace original body component with new component

I'm doing a custom version of the 'Add Products to Opportunity' standard component, and I'm trying to fit a two-stage process within a modal ('Select Products' and 'Create Line Items'). I thought I ...
1
vote
0answers
129 views

How to programmatically identify that no modal is visible on screen?

I want to identify that screen does not have any modal visible, and based on this, I want to show or hide the window's default scrollbar. To show/hide the scrollbar I got excellent solution from this ...
0
votes
1answer
197 views

Lightning Component : JS error when closing modal

I'm working on a Lightning Component that open a modal when user click on a button. This modal have the close button on the upper-right side and also two custom button, "Cancel" and "Save". By ...
0
votes
1answer
193 views

Show Approved/Rejected/NMI on click of Submit button [closed]

I have built lightning component where user can make decision of records like Approve/Reject/NMI. That's working fine.now i am trying to do if record is Approve i want to show some Indication to that ...
1
vote
0answers
198 views

Summer18 - Custom Modal Issue

i noticed an issue in my summer18 sandbox and can´t find any css changes in the release notes of summer18 that could be responsible for that. The issue: Background of the page behind a custom modal ...
0
votes
0answers
284 views

How to show field value on-click of modal popup in Lightning

I have a Tab which contains list of records and actions. they i will have three actions like Approve,Reject and Need more Info. on click of Reject i will show an Modal popup which will have a Comments ...
4
votes
1answer
2k views

How to apply css to Lightning:overlayLibrary

My objective is to control the width of the modal provided by lighting:overlayLibrary component. I am trying to do it by overriding the css applied to the slds-modal__container. I was hopeful this ...
0
votes
1answer
204 views

Opening a Visual Force page which embeds a lightning component from Related List button

Problem: I have a requirement which says, need to open a modal window which opens on click of related list button and this modal needs to be a lightning component,As we cant open a lightning component ...
7
votes
1answer
272 views

Picklist issues inside global modal

I was rendering global modal using lightning:overlayLibrary tag which will display the fields using lightning:recordEditForm and lightning:inputField. If i added the any picklists at the end of the ...
3
votes
2answers
250 views

How to stop the top of a tall SLDS modal from being clipped?

I am using the SLDLS modal styles as documented and in general they work well. Below are two screen shots where the first has a small amount of lines (<p>Line</p> repeated) but the second ...
1
vote
0answers
293 views

Override a Standard Action with a Lightning Component not working for Contact New button

I am trying to perform the Standard Action override with a lightning component as per the given trailhead https://trailhead.salesforce.com/projects/workshop-override-standard-action/steps/override_4 ...
0
votes
1answer
431 views

Lightning Component Modal Heading

I am using the lightning:overlayLibrary to display a modal. The header and footer are coming through fine but the header is not displaying as expected. When I pass the title through the header object ...
1
vote
2answers
595 views

Using lightning:overlayLibrary does not reopen modal

I'm using the lightning:overlayLibrary to display a modal in a Lightning Component that's used in a Salesforce Community. This works for the first time. The modal displays with the correct body and ...
1
vote
2answers
426 views

Calling a lightning form/modal that is its own component

I'm building a lightning page using several lightning components and using lightning data service. I would like to keep components as reusable as possible. What I am trying to accomplish is when ...
0
votes
1answer
2k views

Modal to open the specific record edit on click of link in jquery datatable [closed]

I have created a jquery datatable in salesforce. I want that when somebody click on the Id column in the datatable, it should open the edit page in a modal. I was able to open the record in complete ...
3
votes
0answers
47 views

How can I use the cssClass attribute in ui:overlayLibray modal?

I want to remove the padding from the modal-body. That element is 2 layers deep. How can I pass in a style using the cssClass attribute that will be applied to an element nested within and not just on ...
1
vote
0answers
186 views

Adjusting lightning picklists to follow scrollbar when in focus of a custom modal

Currently I have lightning component that I am inserting into a custom modal using the lightning overlay library: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/...
2
votes
0answers
272 views

Scroll bar disappears when modal closes

I have this modal on Quote object which works as I expect. The problem is that before opening the modal, I have scroll bar on the Quote object main page, but when I open the modal and then I close it, ...
0
votes
1answer
34 views

Lightning Create Custom Tutorial

I want to be able to guide users that switch from classic to lightning with a tutorial. I know how to create a modal to guide the user, I just want the modal to show whenever the user switches from ...
1
vote
0answers
334 views

How to get HTML DOM element outside of lightning component? [duplicate]

I have a lightning component with a modal that opens over it. I want to open this modal on the entire page viewport height and view port width - meaning on top of the lightning experience header. I ...
5
votes
1answer
2k views

Passing user input from `lightning:overlayLibrary` back to parent

I am using lightning:overlayLibrary to collect input from the user which will then be used in the parent component. The modal is simple: 1 lightning:select` in the body and a footer with "Select" ...
0
votes
1answer
658 views

Modal Pop-Up from Visualforce Page Included in Standard Detail Page Section

I have a Standard record detail page in which there are sections which include visualforce pages. I'm rewriting these using SLDS to look like lightning. From one VF page I'd like to open a modal which ...
2
votes
0answers
127 views

Set focus on lightning modal as soon as it opens in SF1

I'm using salesforce lightning modal in a long form, everything is working fine when using lightning experience for desktop. But when using a Salesforce1 in mobile, the form is not fitting into one ...