How can we disable closing when clicking outside of the lightbox?

  • Profile Image
    Aries Joseph 
    Asked on April 27, 2016 at 11:47 AM
  • Profile Image
    Answered on April 27, 2016 at 01:25 PM

    Looks like it is not quite possible, please allow me some time to research on this and see if I can find a workaround or a solution. 

  • Profile Image
    Answered on April 27, 2016 at 01:45 PM

    Unfortunately, it seems like this is not possible. The function is directly called on this link: We cannot directly edit or add additional parameters like backdrop: "static" that should prevent the modal/lightbox to close when you click outside the box.

    I see you are loading your own scripts, I'm not quite sure if your website is loading the jQuery library. The workaround that I have in mind is:

    1. First, create your own modal or lightbox version using jQuery or Bootstrap. I believe it is equivalent to the "Dialog" element there. Here's a link to it: 

    2. Embed the form in the modal using the iFrame embed code

    3. In your Modal/Dialog script, add the parameter backdrop: "static" on it. You can see how it works in this example: 


    I hope that helps.