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 Apps
Answered

Toggle value

(0) ShareShare
ReportReport
Posted on by 105

Hello community!

I have a simple question. How to switch the toggle by button, without variables if it's possible?

For example I press the button and I want my toggle to switch to the opposite Value.
How can I achieve it?

 

If(Toggle.Value=true,Toggle.Value=false,Toggle.Value=true)

 

I tried this and also tried Reset, but it doesn't work. 
Any ideas? 

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,636 Super User 2026 Season 1 on at

    Hi @KK76875875 ,

     

    There is no way to do this without variables:

     

    Set the Toggle.Default property to locToggleValue.

     

    Then add this to the OnSelect property of the button: UpdateContext({locToggleValue: !locToggleValue})

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard