Questions tagged [modal]

The tag has no usage guidance.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
753 views

How to dynamically load phtml file on a button click in Magento 2

I have a phtml file view.php and its block class View.php. I need to show that phtml on a modal on checkout page and to do that I'm pre-loading phtml file using following code : <div id="modal-...
4
votes
1answer
1k views

Magento 2 - Dynamic rows based on related products modal grid on custom form with tabs

I am working on magento 2.1 backend module. Basically backend part is a form that contain tabs. I ahve here some standard inputs but also some dynamic rows etc. Everything is working fine except the ...
3
votes
1answer
950 views

Is there a way to completely destroy a modal in Magento 2

I have created a modal with some dynamic content (input fields) and a save button to save input field data in database and I'm opening that modal on a button click. Now when I fill all the input ...
2
votes
0answers
177 views

How to select values in parent grid magento 2 from ui component modal?

I have a custom product listing grid, on clicking add products, I have created a (slider) modal, Where I check the products from another grid and click add selected products, then the selected items ...
2
votes
1answer
490 views

Add Video button not working on product page

I'm having issues with the add video button on the product pages in Magento 2.2.1. The button doesn't open the modal window even though I have added my Youtube api key and its enabled. I've done ...
1
vote
0answers
237 views

Magento 2 - Enable the authorisation login popup modal

How do I activate the authorize Login popup modal for Magento 2? Like shown below. Is this a Extension or can I activate this by configuration or by edits in my Theme?
0
votes
1answer
11 views

Add Custom JS to Modal Insert Widget Admin Form

I am wanting to do custom javascript to manipulate the Widget Options when adding a widget (using the WYSIWYG editor) in the Admin panel. I have found that the layout handle adminhtml_widget_index is ...
0
votes
0answers
11 views

M2 Modal Widget - How to stop video playing after close or click off modal

I have searched for the answer and tried to implement the solutions, and they were not working for me. Everything works fine except the video sound continues to play after closing or clicking off the ...
0
votes
0answers
20 views

block executing before modal click

I have a modal with 2 buttons that have a click function. Inside of each of these click functions is a block that's supposed to only be executed when clicked. However, the block seems to be executed ...
0
votes
0answers
25 views

Magento 2 : How to use Modal Slide for CRUD Operation using custom module in Admin side?

I am trying to create a CRUD operation using Modal Slide in Magento 2 Admin Area like below. Please refer the below screenshot. I'm spending the last 3 days on this. Please assist if anybody knows ...
0
votes
0answers
18 views

How to create modal popup to confirm on add to cart on view page in magento 1.9

I need to display a pop-up with custom fields and validations. After the data validation successful then product goes to cart if not stays in the same product details page.
0
votes
0answers
63 views

Magento 2.3.1 modals-wrapper causing errors

Is anyone else having an issue of late errors showing up in Magento 2.3.1? I stopped all extensions, and reverted back to the Magento Luma theme, and I'm getting this error: misc.js:181 Uncaught ...
0
votes
0answers
11 views

How to open a slide-in modal with a block button adminhtml

Would be possible to have a block button, like the Add Attribute, open an XML modal. XML Modal Example namespace Magento\Catalog\Block\Adminhtml\Product\Edit\Button:AddAttribute I've attempted to ...
0
votes
1answer
227 views

Modal popup not working after clearing browser cache

I am using the bootstrap modal popup to show some content on site on click. First time when I click a link the modal popup works fine, but when I clear my browser cache and click on again on the same ...
0
votes
1answer
256 views

How to use several Modal in the same page

i'm trying to find a way to use several modals on the same page, could you help me ? Here is the code I use, and only the first modal works : <script> // Modals require( ['...
0
votes
0answers
50 views

Create modal admin without losing content at closing

I created a modal in the backend with the object ´Window ({})´ the problem and that creating it so I create a modal that must necessarily reload the content via ajax. My code: Window....
0
votes
0answers
57 views

Hide modal while loading

We had the third party create a website for us and on one of the pages, as the page content is loaded, the content from one of the modals is visible. Once the page has finished loading it disappears ...
0
votes
0answers
208 views

An Error while add a complex component modal as insertlisting for add dynamic row in my ui-component admin form

Facing an Error while add a complex component modal as insertlisting for add dynamic row in my ui-component admin form: Error is as below: "Warning: DOMDocument::loadXML(): xmlParseEntityRef: no ...
0
votes
1answer
1k views

Trigger modal after placing a product in minicart on Magento 2

I need to show a modal after a product is placed inside cart. This is what i have so far. This is my default.xml <body> <referenceContainer name="content"> <block ...