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 / Connected/Linked Toggles
Power Apps
Unanswered

Connected/Linked Toggles

(0) ShareShare
ReportReport
Posted on by 23

Hello,

 

I have a Power App that switches between two languages using a toggle. This functions correctly when using a single toggle from the main screen. However, I want clones of this toggle on all screens so users don't have to go back to the main screen to switch the language. So, I want each toggle to able to change the other toggles and also change the language. I've researched this quite a bit, but have come up short. I've read this could be an issue while using Edge, but this is mainly what my users will be accessing Power Apps with.

 

Any suggestions? Is it easier to use something other than a toggle?

 

Thanks in advance!

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    Set the default of your toggle to the defLang

    On app start Set(defLang, true)

    On all toggle OnChange put Set(defLang, !defLang)

    Now use that variable to decide to show the default lang or the secondary language like this: If(defLang, deffaultLanguage, secondaryLanguage)

  • jnunn Profile Picture
    23 on at

    Unfortunately this doesn't seem to work for me. I tried exactly what you suggested.

     

    I then tried something simpler to test this out and it seems like there's something wrong with my OnChange.

    Here's my simple test:

    On a single screen, I put my toggle and a text label. For the toggle, the default is defLang and the OnChange is Set(defLang,!defLang). My label text is set to defLang. However, when I click the toggle, the label doesn't change, it always reads "true". 

     

    I assume this the same reason my other toggle won't change?

  • mmollet Profile Picture
    3,187 on at

    Yeah so toggles hold either true or false for the value. I used OnSelect instead of OnChange and it seems to work for me. I have 3 toggles each set to same context variable and on select it updates that context variable to !variable. This changes all 3 toggles when any of them are clicked.

  • jnunn Profile Picture
    23 on at

    Thanks mmollet, but it's still not working, even with toggles on the same page. 

    I tested to see if I could use a button to set the toggle to true. I found that using Set(defLang,true) didn't work. 

    What did work was: UpdateContext({defLang:true}). I tried using this UpdateContext formula in an If statement in the OnSelect for the toggle, but this still wouldn't change my label or my other toggle. I'm at a loss...

  • jnunn Profile Picture
    23 on at

    I solved it, but I didn't use toggles. I used buttons with the same logic in the OnSelect, instead. 

    Not sure why my Power Apps is having such issues with toggles! 

    Thanks again.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 408

#3
timl Profile Picture

timl 339 Super User 2026 Season 1

Last 30 days Overall leaderboard