From b2ec73222b6911d5b46fc6692d2623d03621f927 Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Thu, 16 Jul 2026 12:18:04 +0530 Subject: [PATCH] Titans: form changes removed validation msg and user can eneter 0 or more value in brands Rx --- ...781675090-edd1642b-8b21-4db0-a5b9-979efe4483fc.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/form/rapport-titans/1781675090-edd1642b-8b21-4db0-a5b9-979efe4483fc.blade.php b/resources/views/form/rapport-titans/1781675090-edd1642b-8b21-4db0-a5b9-979efe4483fc.blade.php index 2e7b92ba..747695e4 100644 --- a/resources/views/form/rapport-titans/1781675090-edd1642b-8b21-4db0-a5b9-979efe4483fc.blade.php +++ b/resources/views/form/rapport-titans/1781675090-edd1642b-8b21-4db0-a5b9-979efe4483fc.blade.php @@ -430,19 +430,19 @@ let hasValue = false; brandFields.forEach(function(field) { - if ((parseInt($(field).val()) || 0) > 0) { + if ((parseInt($(field).val()) || 0) >= 0) { hasValue = true; } }); - if (!hasValue) { + /* if (!hasValue) { Swal.fire({ icon: 'error', title: 'Validation Error', text: 'From all brands, at least one field should be greater than 0.' }); return false; - } + } */ const formData = new FormData($('#report-form')[0]); // Log form data to console for (let [key, value] of formData.entries()) {