
Announcements
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 ?
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':
In this case, when I tried to use a button inside the form I got an error similar to yours:
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!