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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Displaying X and Y coo...
Power Apps
Answered

Displaying X and Y coordinates of an item on screen or in gallery

(0) ShareShare
ReportReport
Posted on by 51

Is there a way to display X and Y coordinates of an item such as a label, icon or a button in a gallery or on a screen in general? I am looking to build a database with X and Y coordinates where a user will point the icon to where they prefer on a screen or in a gallery and record it in a submit form method. I am just not sure how a user can get the X and Y Coordinates of a label without me going into the edit mode form to get it. 

 

Thanks 

Categories:
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    on the items OnSelect

    Set(xPref, Self.X);
    Set(yPref, Self.Y)

     

    then just refer to these two variables

  • atn2019 Profile Picture
    51 on at

    Thanks that works

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard