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 / Button appears OnSelec...
Power Apps
Answered

Button appears OnSelect of Another Button

(0) ShareShare
ReportReport
Posted on by 302

Hello, I'm having a little issue.

I wish to make a list of buttons appear (like sub btns under the main) when a button is clicked. For example:

PRODUCTION (main button, when this is clicked, I want others under it to appear)

  • Phase One
  • Phase Two
  • Phase Three

I wanted Phase One - Three to appear when PRODUCTION (btn) is clicked.

Any useful help would be appreciated.

Categories:
  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 2 on at

    Set the visible property of each button to a variable which u then switch true/false based on button presses.

  • joshburnsM4dev Profile Picture
    83 on at

    hi @Virikefe22 

    select the PRODUCTION button and change the onSelect property to Set(ShowBtns, true)

    then for button 1,2 & 3 change the visibility property to ShowBtns

     

    Cheers

     

    josh

  • Virikefe22 Profile Picture
    302 on at

    Thanks for your apt response (didn't know this community is this responsive)

    Ok, I've tried that and still have a lil more issue. How do I make it come On/Off when each each?

    I mean, the first click should show the buttons 1,2 & 3 and the second click should hide it. I hope I'm clear enough?

  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 2 on at

    Set(variable, true) to show them, then Set(variable, false) to hide them. The variable you then put as your "Visible" property on each of the buttons

  • Virikefe22 Profile Picture
    302 on at

    Thanks @StretchFredrik 

    Can you be more practicable please? I mean, these are two different clicks (following each other), how do I different between the first click and the second click?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Virikefe22 

    Set(variable,!variable) will toggle the visibility.

  • Virikefe22 Profile Picture
    302 on at

    This is what I have: Set(ShowBtns, true,!ShowBtn, false) but it's showing error.

    Can you help with the variable lines, please?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Virikefe22 

    Try it exactly like I wrote it without the true false

  • Verified answer
    joshburnsM4dev Profile Picture
    83 on at

    @Virikefe22 try Set(ShowBtns,!ShowBtns)

  • Virikefe22 Profile Picture
    302 on at

    Thanks @joshburnsM4dev @Drrickryp @StretchFredrik 

    This works!!! Set(ShowBtns,!ShowBtns)

    I really appreciate you guys.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard