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

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 😞

 

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.

  • 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard