Lifemankind (Ventidox) Minimum date fixcd
Specific Folder FTP Upload / ftp-deploy (push) Successful in 41s Details

This commit is contained in:
zeeshan 2026-10-06 17:30:27 +05:30
parent 58343db0a9
commit c513584c16
1 changed files with 12 additions and 4 deletions

View File

@ -336,6 +336,17 @@ if (!empty($submissions->data->submissions)) {
$(this).val(value);
});
});
$(document).ready(function() {
var maxDate = new Date().toLocaleDateString('en-CA'); // Outputs YYYY-MM-DD in local time
var minDate = '2026-10-01';
$('#field-record_date_2').attr({
min: minDate,
max: maxDate
});
});
@ -380,10 +391,7 @@ if (!empty($submissions->data->submissions)) {
var yyyy = today.getFullYear();
today = yyyy + '-' + mm + '-' + dd;
var maxDate = year + '-' + month + '-' + day;
var minDate = '2026-10-01';
$('#field-record_date_2').attr({'min': minDate,'max': maxDate});
});