Zenova (Tracker Form) - Date alert
Specific Folder FTP Upload / ftp-deploy (push) Has been cancelled
Details
Specific Folder FTP Upload / ftp-deploy (push) Has been cancelled
Details
This commit is contained in:
parent
3267e4be13
commit
70ab57ae63
|
|
@ -346,6 +346,15 @@ if (!empty($submissions->data->submissions)) {
|
|||
min: minDate,
|
||||
max: maxDate
|
||||
});
|
||||
|
||||
$recordDate.on('change', function() {
|
||||
var selectedDate = $(this).val();
|
||||
|
||||
if (selectedDate && selectedDate > maxDate) {
|
||||
alert('You cannot select a date in the future. Please select a valid date.');
|
||||
$(this).val('');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue