Form changes Horizon - Upload Daily Field Work Photo
Specific Folder FTP Upload / ftp-deploy (push) Successful in 28s Details

This commit is contained in:
Tanuja Pansare 2026-10-29 17:53:54 +05:30
parent 58b80b8ef4
commit 9d47e0ef21
1 changed files with 31 additions and 1 deletions

View File

@ -312,7 +312,37 @@
text: 'Your data is successfully submitted!',
icon: 'success'
})
// Reset normal form fields
$('#report-form').trigger("reset");
// Clear the captured photo
if (photoInput) {
photoInput.value = '';
}
// Clear the captured photo preview
if (preview) {
preview.src = '';
preview.style.display = 'none';
}
// Hide the camera preview
if (video) {
video.style.display = 'none';
}
// Stop the camera if it is still running
stopPhotoCamera();
// Reset camera buttons
$('#start-photo-camera').show();
$('#capture-photo').hide();
$('#retake-photo').hide();
// Restore today's date after resetting the form
if (dateField) {
dateField.value = currentDate;
}
} else {
Swal.fire({
icon: 'error',