I have a form in which visitors can set their home municipality (dynamic dropdown populated by custom taxonomy) and also a more exact map location using the WP Geo plugin and two hidden fields (lat and long) as per a tutorial somewhere else in the forum. It's working fine but it requires all visitors to manually enter their location. Not an ideal user experience.
I want to set the form up so that the lat and long fields are populated dynamically based on the municipality dropdown. I can of course do this after the post has been submitted with PHP but it would be better to have the change take place before the submission happens. Because I'm not managing the day-to-day operations of the site I would like this operation to be handled without external code in functions.php or elsewhere but I can't see an easy way of doing it. So if there is, please let me know.
Morten