function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael Hedrick 2Michael Hedrick 2 

Best approach to get latitude and longitude

Hello All,
I have a custom object where a user completes a survey and saves it.  I would like to get the users current location.  What I am wondering is what is the best approach?  Custom button?  Issue is we care going to Lightning so would JS be an issue?  Reference an Apex Class on record save?  Create a VF Page to capture information and lat & long?
Your suggestions is appreciated.