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 / Set Y coordinates base...
Power Apps
Unanswered

Set Y coordinates based on dropdown

(0) ShareShare
ReportReport
Posted on by 1,512

I have a form at the top of a screen that determines the items displayed in a gallery.

 

The issue is when I select the 3 yr maintenance not all of the questions should be visible but the remaining fields are at the bottom of the gallery rather then moving up in the space.

 

I tried this

If(DataCardValue71.Selected.Value = "3 Year Distribution Breaker", Label13_8.Height + Label13_8.Y)

and it worked great if I selected the 3 yr, but when I select the 6 year it should be back in its normal position instead it is at the top of the gallery.

 

How can I get this to dynamically work? 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Dorinda 

    Add the original value back into your formula as the Else part of the If.

    Ex.

    If(DataCardValue71.Selected.Value = "3 Year Distribution Breaker", Label13_8.Height + Label13_8.Y, <originalValueHere>)

    Just replace the <originalValueHere> part to be what it should be when that choice is not selected.

     

    I hope this is helpful for you.

  • Dorinda Profile Picture
    1,512 on at

    @RandyHayes  my hero, thank you sir!!

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Dorinda 

    No problem! Happy to help 😁

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard