From ecc21ba75ed24d4f22b9adadf9810aaf163bda20 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Tue, 9 Jan 2024 16:41:29 +0530 Subject: [PATCH] Notification Required : ps --- app/Views/notifications_form.php | 44 +++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/app/Views/notifications_form.php b/app/Views/notifications_form.php index c46ffe93..911c5e6f 100644 --- a/app/Views/notifications_form.php +++ b/app/Views/notifications_form.php @@ -87,9 +87,10 @@
" id="myForm2">
- +
- + +
@@ -105,13 +106,13 @@
- +
- +
@@ -213,6 +214,12 @@ for (let i = 0; i < elements.length; i++) { elements[i].textContent = "Mail Custom Notification"; } + document.getElementById("recipient").required = true; + document.getElementById("subject").required = true; + document.getElementById("summernote-basic").required = true; + document.getElementById("mobile").required = false; + document.getElementById("message").required = false; + }); // Add a click event listener to the link @@ -226,6 +233,11 @@ for (let i = 0; i < elements.length; i++) { elements[i].textContent = "Whatsapp Custom Notification"; } + document.getElementById("recipient").required = false; + document.getElementById("subject").required = false; + document.getElementById("summernote-basic").required = false; + document.getElementById("mobile").required = true; + document.getElementById("message").required = true; }); // Get references to the dropdown and field divs @@ -283,4 +295,22 @@ $('#submitBtn').prop('disabled', true); } }); + + \ No newline at end of file