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 / two button toggle and ...
Power Apps
Unanswered

two button toggle and display

(0) ShareShare
ReportReport
Posted on by 1,032

Hello everyone

as in the screenshot; I have two Audits and Actions buttons; how can I modify the display of the page according to the selected button? also the display of the button must be changed according to the page displayed. indeed all that is at the top of the two button must remain the same only the lower part which changes.

Capture d’écran 2022-12-26 155630.png
Capture d’écran 2022-12-26 155603.png
Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @gikido 

    A context variable can be used to control the visibility and appearance of your controls. 

    For Button "Audits":

    • OnSelect: UpdateContext({showaudit:true})
    • Fill: If(showaudit, Red,White)

    For Button "Actions":

    • OnSelect: UpdateContext({showaudit:false})
    • Fill: If(showaudit, White,Red)

    For the lower 1/2 panels:

    • Panel1, Visible: showaudit
    • Panel2, Visible: !showaudit

     

  • gikido Profile Picture
    1,032 on at

    @Drrickryp

    Thank you

    Now I want to apply it at the page level. If I click on audit an audit page is displayed and if I click on action an action page is displayed. Both pages contain the two buttons audit and action.
    I tried to group the elements of the second page and paste them in the first and play on the visibility of the elements as you did in your proposed solution, but the problem is that there are elements in the second page whose their visibility is already defined (in the form of a popup).
    Can you suggest me a solution for this?

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard