Lifemankind (Ventidox) Minimum date fixcd
Specific Folder FTP Upload / ftp-deploy (push) Successful in 41s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 41s
Details
This commit is contained in:
parent
58343db0a9
commit
c513584c16
|
|
@ -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});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue