From 9fe13f2885ed4740dd34c02a8e0a92e10f307d2b Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Mon, 9 Sep 2024 13:16:50 -0300 Subject: [PATCH] Revert "Support fields validation with captcha" --- js/formidable.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/js/formidable.js b/js/formidable.js index d9e45b3865..618aa20f8c 100644 --- a/js/formidable.js +++ b/js/formidable.js @@ -1545,17 +1545,19 @@ function frmFrontFormJS() { return; } - errors = frmFrontForm.validateFormSubmit( object ); - if ( Object.keys( errors ).length !== 0 ) { - return; - } if ( invisibleRecaptcha.length ) { showLoadingIndicator( jQuery( object ) ); executeInvisibleRecaptcha( invisibleRecaptcha ); } else { - showSubmitLoading( jQuery( object ) ); - frmFrontForm.submitFormNow( object, classList ); - } + + errors = frmFrontForm.validateFormSubmit( object ); + + if ( Object.keys( errors ).length === 0 ) { + showSubmitLoading( jQuery( object ) ); + + frmFrontForm.submitFormNow( object, classList ); + } + } }, submitFormNow: function( object ) {