Miko. eCommerce Template

Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Close lightbox form after submitting

1 month 2 weeks ago #1

  • Moghees's Avatar
  • Moghees
  • Posts: 33
I've added the JS code to Close lightbox form after submitting but I ca't seem to make it work.

jQuery(document).on('success-submit', '.custom-form', function(){
jQuery(this).find('.ba-form-acceptance-field input[type="checkbox"]').prop('checked', true);

1 month 2 weeks ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
Hello,
Thank you for contacting us

You need at the code editor, to add the JS code:
jQuery(document).on('success-submit', '.ba-form-lightbox-layout', function(){
	jQuery(this).formsModal('hide');
});

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum