Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gator Forms Support

    (@perfect-web-support)

    Hello,

    with Lightbox effects the form is closed automatically when clicking on modal background, so I guess you want closing when the form is in Slidebox mode. To do so, please insert the following code to Location & Effects > Before opening > Advanced > JavaScript on open event:

    jQuery("body > *").not("body > #pwebcontact?").click(function() {pwebContact?.toggleForm(0)});

    replace ? with your form ID number, so for example for form with ID = 1:

    jQuery("body > *").not("body > #pwebcontact1").click(function() {pwebContact1.toggleForm(0)});

    Best regards

    Thread Starter bjs-it

    (@bjs-it)

    Perfect,

    Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Close form when click outside’ is closed to new replies.