Modal Problems

Hi,

I’m having some problems with a Modal.

I’m using the following to open a Modal when a column is clicked:
window.xToggleUpdate( id, true );

That works.

However, there is a button containing the Modal within that column. When I click that button it won’t launch the Modal when I have the code above active. It works when that code is removed.

How can I get that button to launch the Modal?

Thank you.

Here is the code:

jQuery(document).ready(function($) {
  $(".team-container").click(
    function() {		 
	    var ToggleButton = $(this).find(".button-bottom-fixed");			
	    var ModalId = ToggleButton.attr('data-x-toggleable');
	    var isModalOpen = window.xToggleGetState( ModalId );
			
 	    if(isModalOpen) {
		window.xToggleUpdate( ModalId, false );								
	    }
											
        window.xToggleUpdate( ModalId, true );
    }
  )		
});

Hello @tektonministries,

Thanks for asking. :slight_smile:

Unfortunately, we can’t assist you with customizations that involves custom codes as it falls outside the scope of support we offer. However, to launch modal popups you can use ConvertPlus plugin that comes bundled with X and Pro Theme and can be installed from X/Pro > Validation > Extension. Here are few resources that you can take a look:

Thanks for understanding.

Ok. Thank you.

You’re welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.