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 / Update multiple visibi...
Power Apps
Answered

Update multiple visibilities at once with Form Control

(0) ShareShare
ReportReport
Posted on by 134

Hi!

I have a page in my app with an advanced form control. there are 5 bits of the form separated out by buttons. the buttons are showing and hiding the information great with the variables:

Button OnClick:Set(varOI,!varOI);

Form Visible:varOI

 

 

but I have 2 others just like this:

varFI and varSummary

when I make OI visible, I need to make the others auto hide, and vice versa. I don't want them to all stack up on top of each other like they currently are. I currently have to re-click their own button to hid it again. not a great user experience 😞

 

Snag_f066a5f.png
Categories:
I have the same question (0)
  • turnerj3 Profile Picture
    2,039 on at

    @BHaapi ,

    Try setting all the variables you need inside the one button OnSelect:

    Button OnClick:Set(varOI,!varOI);

    Form Visible:varOI;

    Set(varFL, false);

    Set(varSummary, false);

  • BHaapi Profile Picture
    134 on at

    nope, code error 😕

    I tried doing some extra parenthesis and moving around the code but it didnt work. it grabbed the variable and the false when I was typing though.

    Snag_fc4d1c8.png
  • Verified answer
    turnerj3 Profile Picture
    2,039 on at

    @BHaapi ,

    You can't use Set in your Visible property.

    You need to Set those variables false in the same button onSelect where you set VarOI

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard