Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 4/ZX5VDYY0SOEuchsCjBtT
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started