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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Get latitude an...
Power Apps
Unanswered

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard