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 / Location.Latitude and ...
Power Apps
Answered

Location.Latitude and Longitude not working in Form

(0) ShareShare
ReportReport
Posted on by 14

the Location.Longitude and Latitude functions do not work when used within a form. the data source of the form is Sharepoint. The functions work fine when called outside of the Form. This has occurred for all forms I have been trying to make. In older forms on other screens, these functions work fine. 

 

For these newer forms, it gives an "Invalid Use of '.'" error. Why is this now erroring out when previously it had been working ?

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    on at

    I've tried this scenario in a form, and everything worked well... Until I used a form connected to a different data source, which happened to have a column called 'Location':

    ForumPost001.png

    In this case, when I tried to use a button inside the form I got an error similar to yours:

    ForumPost002.png

    If this is your problem, you can use the disambiguation operator to access the global Location value instead of the location from your data source:

    UpdateContext({ myLat: [@Location].Latitude, myLng: [@Location].Longitude })

    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

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard