Skip to main content

Notifications

Community site session details

Community site session details

Session Id : fGBjqenPt6CZLF9FO4h53w
Power Apps - Building Power Apps
Answered

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

Like (0) ShareShare
ReportReport
Posted on 8 May 2023 04:32:36 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.

  • microsoftdevlop Profile Picture
    26 on 15 May 2023 at 05:25:55
    Re: How to Get latitude and longitude values automatically in When submit the form in canvas app?

    yes Resovled,Thanks alot.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 08 May 2023 at 05:43:58
    Re: How to Get latitude and longitude values automatically in When submit the form in canvas app?

    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 08 May 2023 at 05:15:18
    Re: How to Get latitude and longitude values automatically in When submit the form in canvas app?

     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?

  • v-qiaqi@microsoft.com Profile Picture
    on 08 May 2023 at 05:04:12
    Re: How to Get latitude and longitude values automatically in When submit the form in canvas app?

    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
  • Ethan_009 Profile Picture
    4,838 Super User 2025 Season 1 on 08 May 2023 at 05:02:02
    Re: How to Get latitude and longitude values automatically in When submit the form in canvas app?

    Hi @microsoftdevlop ,

     

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 223 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 110

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 89 Super User 2025 Season 1

Overall leaderboard
Loading started
Loading complete