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 / Gallery and Form dynam...
Power Apps
Answered

Gallery and Form dynamic Y Positioning

(0) ShareShare
ReportReport
Posted on by 105

Hi,

I have a summary form pops up before submitting the form. this summary includes forms and galleries where the user filled in and requested.. my issue is how to make Y position dynamic for each gallery and form if one of them is blank the next gallery or form took its place and avoid white spaces between galleries and forms in the summary page. 

the user sometimes request only one thing of many. in the summary form i need only this one to be on top instead of its fixed Y position.

 

I have tried this but didnt work!

GalleryA.Y = GalleryB.Y +20

but even if GalleryB is not visible still reserving its position!

 

 

Thanks

tempsnip.png

Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @YAYA ,

     

    Please try:

    GalleryA.Y= If(!GalleryB.Visible,GalleryB.Y,GalleryB.Y+GalleryB.Height)

     

    Code explaination:

    If Gallery B is hidden, Gallery A would share the same Y with it so Gallery A will cover Gallery B, if Gallery B is visible, Gallery A would locate below Gallery B.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • YAYA Profile Picture
    105 on at

    Thanks for your help, ya this works if in the summary form only two galliereis. 

     

    My Scenario is I have the a sequence as following: 

    Form-1

    Form-2

    Gallery-A

    Gallery-B

     

    Lets say the user only filled in Gallery-B. so in the summary I don't need Form-1, Form-2 nor Gallery-A and those will be invisible. so Gallery-B should take the place of Form-1.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @YAYA ,

     

    An easy way to adjust controls is putting them in a Canvas control, you could add a Scrollable screen and find it.

    35.png

     

    Then you could add Forms and Galleries into each Data Card (you will have to cut and paste since Galleries or Forms could not be put into Data Cards directly):

    36.png

     

    So here you can set Visible of the Data Cards instead of Galleries and Forms, if Visible of a Card = false, then the whole Card would not only invisible but also disappear from the Canvas, all cards below would elevate and cover it.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • YAYA Profile Picture
    105 on at

    Thanks, that's what I was looking for 🙂

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard