HTML Form in this code is further improved by adding capability to upload files in certain Google Drive Folder and some specific functionalities.
Example.html is the main form which you can modify at ease.
Example2.html is the main form with additional progress bar and complete message once form submission is finished.
Example3.html is the main form with additional progress bar and complete message once form submission is finished, and capabilities to upload multiple files and the rest of the form data are duplicated in every row of uploaded file.
Example4.html is the main form with additional progress bar and complete message once form submission is finished, and capabilities to upload single image file in any format (JPEG, TIF, PNG, BMP you name it) and inject the captured Geolocation to the EXIF Metadata using PIEXIFJS, before uploading the file to Google Drive.
ExampleMap.html is an implementation of real-time (5 minutes reloading time) geospatial visualization of the captured data from the form. I am using Leaflet JS for this implementation, accompanied by Papaparse JS for in-place conversion between CSV to JSON (Google already dropped JSON in the GSheets publishing options). Read the code comment for further explanation about how to implement this code.
Example5.html is a form like Example3.html, only I add a map viewer (using Leaflet JS) for the geolocation information, along with accuracy value obtained from the device’s GNSS, so you can confirm if the geolocation is accurate enough before form data submission.
GAppScript file is the Google App Script code which has function to send the files to dedicated Google Drive folder, and at the same time send the other form data to Google Sheet document.
Looks the tutorial in Geolocation Form about how to use the script on your HTML form and GSheet.