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 / Make object visible ba...
Power Apps
Answered

Make object visible based on multiple toggles

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I've been tasked with creating a research application form for my organisation. One of the sections requires a set of questions answered which check that there are numerous ethical requirements met. If the correct answers are given (e.g. Questions a-g are no and Questions h-t are yes), then the application has no ethical issues requiring full review and can be fast-tracked. I want to have a text box become visible if these multiple toggles are in the specific true/false pattern and a specific button that takes the applicant straight to the last section of the application, thus bypassing all the pages they don't need to fill in.

 

I've done this using the method listed on this forum for unhiding a button when a single toggle is activated, e.g. a toggle for accepting T&Cs that makes the 'continue' button appear. I can't seem to work out how to make an object appear based on multiple toggles. It's important that the fast-track message only appears when all the conditions are satisfied.

 

Appreciate your thoughts chaps 🙂

Categories:
  • eka24 Profile Picture
    20,925 on at

    Can you give any screen shot

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I can, but I'm messing with it as a test page at present, then will apply the logic back to the real questions...

     

    Set of questions:

     

    A: Toggle yes/no

    B: Toggle yes/no

    C: Toggle yes/no

    D:Toggle yes/no

     

    If A & B are yes and C & D are no then make the 'Fast Track' text box and button visible. If any other combination of yes and no, make 'Normal Track' text box and button visible.

     

    So I can set 

    for Toggle A:

    OnCheck: UpdateContext({vis_toggleA:true})

    OnUnCheck: UpdateContext({vis_toggleA:false})

     

    for Toggle B:

    OnCheck: UpdateContext({vis_toggleB:true})

    OnUnCheck: UpdateContext({vis_toggleB:false})

     

    for Toggle C: 

    OnCheck: UpdateContext({vis_toggleC:false})

    OnUnCheck: UpdateContext({vis_toggleC:true})

     

    for Toggle 😧 

    OnCheck: UpdateContext({vis_toggleD:false})

    OnUnCheck: UpdateContext({vis_toggleD:true})

     

    The question is, how do I take those four contexts and apply them to the visibility setting for a single object?

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to decide other buttons' visibility based on multiple toggles?

    If so, the OnCheck and OnUnCheck property that you set is right.

    You just need to set the labels and buttons Visible by using If Statement.

    For example:

    1)set 'Fast Track' text box's Visible:

    If(vis_toggleA&&vis_toggleB&&!vis_toggleC&!vis_toggleD,
    true,false)

    button1's Visible:

    If(vis_toggleA&&vis_toggleB&&!vis_toggleC&!vis_toggleD,
    true,false)

    2)set 'Normal Track'  text box's Visible:

    If(vis_toggleA&&vis_toggleB&&!vis_toggleC&!vis_toggleD,
    false,true)

    button2's Visible:

    If(vis_toggleA&&vis_toggleB&&!vis_toggleC&!vis_toggleD,
    false,true)

     

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Brilliant, thanks, that did it 🙂

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard