I have a form where users can update their profile. One of the fields of the form has a Google map field where they set their location. I have another field where they enter their city separately on registration, but when they update their profile and change their location in the Google map field, I want to automatically set the city from their new location in the text field.
Is there a way to do this? Any snippets I can use to acquire this?