Skip Navigation

[Resolved] Make "use my location" show address instead of lat/lon

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by cynthiaH 3 years ago.

Assisted by: Waqar.

Author
Posts
#2198125
Screenshot 2021-10-17 191954.jpg

Context: I have a front-end submission form which includes an address field. When a user fill out the form, there is a "use my location" button they can use (I think this is built in by Tooset because I didn't set it up when I built the form template).
The issue: When "use my location" is clicked, the address field is filled with the user locations latitude and longtitude, instead of the address itself (see screenshot) .If the user is observant enough, they would notice there is a "use this address" button at the bottom of the map. If they click that button, then the actual address will be used instead of the lat/long. However, I don't think many user would notice this nuance. As a result, they would just submit their address as a lat/long, which if very confusing for people who would read the post.
The ask: 1. The best solution would be that when user "use my location", the system automatically fill in the actual address, rather than lat/long 2. If that's not possible, can we disable the "use my location" function so that all users must type their address?
Thanks!

#2198647

Hi,

Thank you for contacting us and I'd be happy to assist.

The way these links and input fields work for an address type field, I'm afraid, there is no simple method available to customize them or override their default behavior.

To hide the "use my location" link, you can include the following CSS code in the form:


a.js-toolset-google-map-use-visitor-location {
  display: none;
}

regards,
Waqar

#2198831

My issue is resolved now. Thank you!