non-dismissible modal?

1 reply · opened Jun 22, 2020

RrazoirtJun 22, 2020

According to bootstrap I should be able to add "data-backdrop="static" and data-keyboard="false" to the modal div and that should make it so that the modal can't be dismissed. However this isn't working. It also doesn't work if I add it to the javascript as an option inside modal.show().

I need some way so that the modal I show on load does not get dismissed until the form in modal is submitted. Here's my code...


    
        
            
                
                    
                        
                            Access Codes Needed
                        
                        
                            
![attachment](../images/cobrand-logo5.png)

                        
                    
                
                
                    
                        
                            
                                
				    
                                    Referral Code:
                                    " placeholder="Enter Referral Code">
					
				    
                                
                                
					
                                    Aetna Group ID:
                                    
					
				    
                                
                                
                                     
                                    Submit
                                
                            
                        
                    
                
            
        
    
SSemicolon WebSTAFFJun 23, 2020

Hello,

The Modal you are using is not a Bootstrap Modal but the Magnific Lightbox: https://dimsemenov.com/plugins/magnific-popup/documentation.html#options which is why the Bootstrap Settings do not work. You will need to Custom the JS Codes according to your needs and add the closeOnContentClick, closeOnBgClick, showCloseBtn and enableEscapeKey Settings according to explained in the Documentation or simply use the modal JS Setting.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard