From e934fe27824dfe34bf9451a775e2fbcbe3586739 Mon Sep 17 00:00:00 2001 From: "Abdallah A. Zaqout" <26047413+zaqoutabed@users.noreply.github.com> Date: Sun, 23 Nov 2025 14:09:58 +0300 Subject: [PATCH 1/2] fix: stop validation when click pervious btn --- frappe/public/js/frappe/web_form/web_form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/web_form/web_form.js b/frappe/public/js/frappe/web_form/web_form.js index 5ee2c22128..71b167e065 100644 --- a/frappe/public/js/frappe/web_form/web_form.js +++ b/frappe/public/js/frappe/web_form/web_form.js @@ -103,9 +103,9 @@ export default class WebForm extends frappe.ui.FieldGroup { $(".web-form-footer .left-area").prepend(this.$previous_button); this.$previous_button.on("click", () => { - let is_validated = me.validate_section(); + // let is_validated = me.validate_section(); - if (!is_validated) return false; + // if (!is_validated) return false; /** The eslint utility cannot figure out if this is an infinite loop in backwards and From 6a7849db049239c04a4dd4dfcb7e244aff882eed Mon Sep 17 00:00:00 2001 From: Ejaaz Khan Date: Thu, 22 Jan 2026 16:36:27 +0530 Subject: [PATCH 2/2] refactor: remove commented code --- frappe/public/js/frappe/web_form/web_form.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frappe/public/js/frappe/web_form/web_form.js b/frappe/public/js/frappe/web_form/web_form.js index 71b167e065..1d2395eeab 100644 --- a/frappe/public/js/frappe/web_form/web_form.js +++ b/frappe/public/js/frappe/web_form/web_form.js @@ -103,10 +103,6 @@ export default class WebForm extends frappe.ui.FieldGroup { $(".web-form-footer .left-area").prepend(this.$previous_button); this.$previous_button.on("click", () => { - // let is_validated = me.validate_section(); - - // if (!is_validated) return false; - /** The eslint utility cannot figure out if this is an infinite loop in backwards and throws an error. Disabling for-direction just for this section.