Current location

Prev Next

Show the user's current location

To show the user's current location, you need to change two things in the Formula URL that generates the map.

  • Change qbmaps.aspx to ShowLocation.aspx
  • Include the parameter &showCurrLocation=true

When the user runs QB Maps after these changes, they are asked to allow us to use their current location. Select OK or Accept.

Browser prompt asking to allow QB Maps to use your current location

The user's current location appears with a red pin that has a black circle in it.

Map showing the user's current location marked with a red pin with a black circle

Store the user's current location in a record

To store the user's current location, you need to add more parameters to the Formula URL that generates the map, in addition to the changes listed above.

  • Include the parameter &locdbid= with the bid of the table you want to store the location into.
  • Add the parameter &locrecid= and the record ID# of the record you want to update. You can leave this blank to create a new record.
  • Also put the parameter &qbuserid= and UserToEmail(User()). This gets the current user's account and stores it in the record.
  • Finally, include the parameter &locclist=11.12.34, which is the list of field IDs of the latitude, longitude, and user fields to store the data in.

Example location table record showing latitude, longitude, and user fields populated by QB Maps