jQuery('.ninja-forms-form').on('submitResponse', function(e, response) { var $popup = jQuery('#pum-123'), errors = response.errors; if (errors === false) { $popup.popmake('open'); } });