How to get users current location using now mobile app

Adarsh Gunjan
Tera Expert

Dear all,

I got the scenario where i need to get the user's location at the time of raising ticket using now mobile app

As the user begins to fill out the form, the system must automatically retrieve and record the user's current location

1 ACCEPTED SOLUTION

Adarsh Gunjan
Tera Expert

I figured this out for anybody who is interested in the solution.

On new button (function) create a UI parameter select the required field (you can choose Filed type as geo point type for better experience) where you want to store the location and put input source as "Auto Fill" and input type as "GPS Location".

Location will be stored in latitude and longitude format.

And do the rest as usual.

Ensure that your location is turn on before submitting the form.

And  BOOM 💥💥you are all set to store the current location of user who is raising ticket.

View solution in original post

3 REPLIES 3

Sumanth16
Kilo Patron

Hi @Adarsh Gunjan ,

 

Please refer to below thread:

https://www.servicenow.com/community/developer-forum/getting-location-in-mobile-ui/m-p/2209366

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

Adarsh Gunjan
Tera Expert

I figured this out for anybody who is interested in the solution.

On new button (function) create a UI parameter select the required field (you can choose Filed type as geo point type for better experience) where you want to store the location and put input source as "Auto Fill" and input type as "GPS Location".

Location will be stored in latitude and longitude format.

And do the rest as usual.

Ensure that your location is turn on before submitting the form.

And  BOOM 💥💥you are all set to store the current location of user who is raising ticket.

Hello  @Adarsh Gunjan  Could you please provide the steps for this and how it will be saved on backend table manually/automatically?