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