I have a front end submit form and would like to include a two extra custom fields which will hold Latitude and Longitude values. I want the users to select the location on a map which will be included in the form. Anybody know a good way of doing this, or any tutorials?


1 Answer 1


Take a look at this I did for a client:


A user can click the map and choose where to search. When a user clicks it updates a couple of hidden fields. Feel free to look at the source code to see how its done. If you want a more in depth description of the google maps api and javascript then this question would be better asked on stackoverflow

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.