web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to make a common t...
Power Apps
Unanswered

How to make a common toggle in two screen

(0) ShareShare
ReportReport
Posted on by 22

I have created a toggle inside a component and I am using that component in 2 or more screens so once applied in one screen should be the same in other screens but it's not showing in a way i needed.

 

Categories:
I have the same question (0)
  • Verified answer
    Sunil-Narnaware Profile Picture
    681 on at

    @Abhijith123Component on one screen does not impact the component on another screen.. they act independently..

    Better way would be to manage it via as toggle control on each screen instead of component and using global variable to manage the state across screen..

     

     because in order to maintain the toggle state across screens, you need to play with global variable.. you get the flexibility to manage it..

     

    However while working with component, you are totally dependent on the input and output properties of component and with your scenario, it is challenging and has so many moving pieces..

     

    So here is the solution with separate toggle control on each screen :

    App.OnStart : Set(gblDefaultTglValue, false)

     

    Screen 1:

    Toggle Control 1

    • Default : gblDefaultTglValue
    • OnCheck : Set(gblDefaultTglValue, true)
    • OnUncheck: Set(gblDefaultTglValue, false)

    Screen 2:

    Toggle Control 2

    • Default : gblDefaultTglValue
    • OnCheck : Set(gblDefaultTglValue, true)
    • OnUncheck: Set(gblDefaultTglValue, false)

     

    Screen 3:

    Toggle Control 3

    • Default : gblDefaultTglValue
    • OnCheck : Set(gblDefaultTglValue, true)
    • OnUncheck: Set(gblDefaultTglValue, false)

     

    .

    .

    .

    .

    likewise

  • Abhijith123 Profile Picture
    22 on at

    How can I make the toggle applied same in other screen also

  • Sunil-Narnaware Profile Picture
    681 on at

    @Abhijith123 .. I have updated my first reply.. try it out and see if it works for you.. 

    ======================
    If this solves your problem, 'Accept it as Solution' so others can also benefit from it. Hit 👍 if you found it useful.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard