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 / How to Get latitude an...
Power Apps
Answered

How to Get latitude and longitude values automatically in When submit the form in canvas app?

(0) ShareShare
ReportReport
Posted on by 26

SharePoint list contains latitude and longitude fields, In canvas app when submit the form show the latitude and longitude values of users. How can achieve thisone. Please help for correct approach of thisone.Thanks in advance.

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @microsoftdevlop ,

     

    Is this what you are looking for: Blog ?
    Hope this helps

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

    Hi @microsoftdevlop,

    Do you want to submit the  latitude and longitude of the current user?

     

    You could use the Location() function as below:

    Location.Longitude
    Location.Latitude

    vqiaqimsft_0-1683522137859.png

    If you have a TextInput control to save the Location.Latitude, please set the Default property as above, and set the Update property of corresponding data carad as below:

    TextInputControl.Text
  • microsoftdevlop Profile Picture
    26 on at

     In canvas app user fill the fields like date, start date,end date etc. when submitting the form the user latitude and longitude should capture automatically. above formula work for this scenario?

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

    Hi @microsoftdevlop,

    The answer is yes, the above formula work for this scenario.

    You coul check our doc for more details about Location().

     

    If your device location is correct, Power Apps Location() function will get you the correct  latitude and longitude.

  • microsoftdevlop Profile Picture
    26 on at

    yes Resovled,Thanks alot.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard