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 / Anchoring a label (or ...
Power Apps
Answered

Anchoring a label (or any other control) in a form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I had a need to put a label directing the end user to do something on an edit form and I want to to be at the top of the form.  This form has data cards from a SharePoint list and I only want the label to show based on the value of a variable.  However, I want to anchor the control and I cannot do this (I would like it to push the data cards down).  What would be a way to get around this?  Is there one?

 

Thanks for the information,

 

Brad

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

    You anchor objects in PowerApps by setting the x en y properties to a fixed position or make a formula that sets the position of the label referencing the hight and width of the screen.

    In this case you also need to do something about the positioning of the data cards. You need to create a formula where the positioning of the data cards depends on whether the label is shown or not. You can do that by using the If-function in a formula in the x and y properties of the datacards and referencing the visible proporty in the condition of the If-function. In that way the datacards could have a different position if the label is shown then in case the label is not shown.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the answer.  I figured that to be so but I was hoping that maybe there was another property I was missing.  I know like in the Visual Studio .Net control properties for a form's controls there is an anchor property.  Maybe something in the future.  I can include it in the suggestions forum.

  • JLam63 Profile Picture
    48 on at

    Hi, can you please give me an example of this. Thanks.

  • Rebetcha Profile Picture
    645 on at
    In this article among other things positioning of a control is explained:
    https://docs.microsoft.com/en-us/powerapps/add-configure-controls
  • JerryH Profile Picture
    431 on at

    please can you provide a visual on how to anchor a label or text input within a form.

    my x & y are just values.

    Thanks

    Jerry

  • Redn Profile Picture
    2 on at
    Parent.Width - Self.Width - 30

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard