Team 4 (Smile Box) Submission Limit
Specific Folder FTP Upload / ftp-deploy (push) Successful in 2m52s Details

This commit is contained in:
zeeshan 2026-11-13 11:21:51 +05:30
parent d2936cfa90
commit 5e8c2a452b
1 changed files with 4 additions and 1 deletions

View File

@ -540,7 +540,10 @@ $(document).on('change', 'select[id^="field-contact_id"]', function () {
$('#report-form').on('submit', function(event) {
event.preventDefault();
if (numberOfSubmission != 9) {
let isEditMode = $('input[name="id[0]"]').length > 0 && $('input[name="id[0]"]').val() !== '';
if (!isEditMode && numberOfSubmission != 9) {
alert(`You must submit 10 Doctors , Current Doctors : ${numberOfSubmission+1}`);
return;
}