Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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 😞

 

  • Verified answer
    turnerj3 Profile Picture
    2,039 on at
    Re: Update multiple visibilities at once with Form Control

    @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

  • BHaapi Profile Picture
    134 on at
    Re: Update multiple visibilities at once with Form Control

    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.

  • turnerj3 Profile Picture
    2,039 on at
    Re: Update multiple visibilities at once with Form Control

    @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);

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard