Detect user's location coordinates (longitude and latitude) and redirect to a pre-filled Google or Tally form containing these coordinates.
To use, simply change "TYPE", "ABC", and "XYZ" in the following URL https://sherbeeny.github.io/gps2form?formType=TYPE&formId=ABC&gpsEntry=XYZ¬e=ENCODEDNOTE
Where
- TYPE is either 'google' or 'tally'.
- ABC is the form ID.
- XYZ is the where you want the GPS coordinates to be entered in your form.
- ENCODEDNOTE is URI encoded text if you want to change the text above the buttons.
Tally Forms Notes: You have to create a Hidden Field and a Logical Condition that changes the answer of the location field based on the value of the hidden field. Name the hidden field and use that name in the gps2form URL.
Google Forms Notes: check this for how to pre-fill a form: https://www.howtogeek.com/774169/how-to-prefill-google-forms-with-certain-answers/ Fill the location field and extract the "entry questions number" from the prefilled URL. Use that number in the gps2form URL.