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 / Visibility Using Multi...
Power Apps
Answered

Visibility Using Multiple Buttons

(0) ShareShare
ReportReport
Posted on by 35

btnpage.JPG

 

I'm creating an activity on some eLearning where an individual is attempting to select the correct answers. I have a next button set up with the variable visibleNext. I am trying to only have the Next button appear when all of the green buttons have been selected (these buttons begin white but have a display mode variable). I tried adding to the green buttons with all of the green variables included like below:

If(UpdateContext({display132btn:DisplayMode.Disabled, display464btn:DisplayMode.Disabled, display011btn:DisplayMode.Disabled}), UpdateContext({visibleNext:true}))

But no luck there. I also tried just adding an If formula to the visible function on the next button:

If(btn132.Pressed = true & btn464.Pressed = true & btn011.Pressed = true), UpdateContext({visibleNext:true}) 

etc. But still no luck. 

 

Any assistance on this would be greatly appreciated. Lots of content online but nothing specific to my problem.

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Lizzlenizzle ,

     

    Could please share some more details like the logic for green buttons and is these buttons inside any gallery ? 

  • Lizzlenizzle Profile Picture
    35 on at

    Hi @PriyankaGeethik 

     

    The buttons are not in any gallery. The idea is to have the users search their online database and select the correct buttons, we use the Next button to ensure they don't progress before completing the activity. The only formulas the buttons currently have on them are their displaymode, as they change colour when selected if they are right (green) or wrong (red). The current formula I have on the buttons are like this (but relative to the number on the button e.g. this is the one for button 132):

    UpdateContext({display132btn:DisplayMode.Disabled})

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Lizzlenizzle ,

     

    Do you have any other color code if button is not clicked ?

     

     

     

  • Lizzlenizzle Profile Picture
    35 on at

    No other codes, it's just the button isn't disabled and stays white. @PriyankaGeethik 

    btnpage2.JPG

     

    I have tried this formula without luck as well on the onVisible of the screen based on a formula I've used previously for navigating:

    If(
    btn132.DisplayMode = Disabled && btn464.DisplayMode = Disabled && btn011.DisplayMode = Disabled && btn530.DisplayMode = Disabled && btn027.DisplayMode = Disabled && btn079.DisplayMode = Disabled && btn083.DisplayMode = Disabled,
    UpdateContext({visibleNext: true})
    )

     

    This is the formula that worked previously on a different project:

    Lizzlenizzle_0-1633337457429.png

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Lizzlenizzle ,

     

    Try the below code. Update according to your requirements. 

     

    If(btn132.Fill=RGBA(255, 255, 255, 1) Or btn464.Fill=RGBA(255, 255, 255, 1) Or btn011Fill=RGBA(255, 255, 255, 1),false,true)

     

     

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Lizzlenizzle ,

     

    Just to touch base. Did you manage to resolve this issue ? 

     

     

  • Verified answer
    Lizzlenizzle Profile Picture
    35 on at

    Hi @PriyankaGeethik 

     

    Thanks so much for your help. I changed up my formula in the visible function for the next button based on your advice. It worked! This is what I ended up going with:

    If(
    btn132.DisplayMode = Disabled && btn464.DisplayMode = Disabled && btn011.DisplayMode = Disabled && btn530.DisplayMode = Disabled && btn027.DisplayMode = Disabled && btn079.DisplayMode = Disabled && btn083.DisplayMode = Disabled,
    true)

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard