web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get the current user c...
Power Apps
Answered

Get the current user coordination when submitting a form

(0) ShareShare
ReportReport
Posted on by 3,514

We have a Power App standalone canvas app which is connected to SQL. now when the user submit a form we need to capture his coordinates' latitude longitude? is this possible?

Thanks

Categories:
I have the same question (0)
  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Yes it is

     

    Location.Latitude 

     


    Location.Longitude 

     

    You can set the default of textbox like that

  • johnjohn123 Profile Picture
    3,514 on at

    @Nogueira1306Thanks for the help ...so this will show a popup on the user browser to allow getting the current location,, is this correct?

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Yes sir

  • johnjohn123 Profile Picture
    3,514 on at

    @Nogueira1306  so is there a way to always get the coordinations even if the user disable or reject the popup?

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Nope... That is like the camera control, for example

  • johnjohn123 Profile Picture
    3,514 on at

    @Nogueira1306  ok make sense

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @johnjohn123,

    Do you want to get the GPS coordinates for each submitter?

    Could you please tell me that if you want to save this coordinates data in your data source?

    Generally, the GPS coordinates would not display like a pop-up message, it usually display as a text string in the screen which could not be affected by user interaction. It just displays in a Label or TextInput control.

    If you want to save it, you should create 2 fields to store the coordinates value, just add the corresponding field to your form, and set the Default property of the Text Input as below:

    "lat:" &Location.Latitude& "," & "lng:"&Location.Longitude

    Once you submit form, the coordinates values could be saved to your SQL table as well.

    If you do not want to save it into your SQL table, you just need a Label or a Text Input and set the formula as above to display the  GPS coordinates.

    Hope it could help you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard