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 / Modern Toggle Control
Power Apps
Answered

Modern Toggle Control

(1) ShareShare
ReportReport
Posted on by 4
I am building an app where I want the checked status of a toggle control to do a thing, and I want to be able to control the checked status of the toggle control via another button.
 
I have a button with OnSelect=Set(varToggle, !varToggle)
I have a toggle with Checked=varToggle and OnCheck=Set(varNumber, varNumber+1)
I have a text box with Text=varNumber
 
When I click the button, the toggle control visually changes, but the Checked value seems to remain the same and therefore the OnCheck does not run.
 
Am I doing something wrong, missing a step, or does the OnCheck only run if the toggle is physically checked by a user?
 
 
Categories:
I have the same question (0)
  • Suggested answer
    MParikh Profile Picture
    488 Super User 2026 Season 1 on at
    Try to use Default
    using Default:
    🔹 Toggle:
    • Default: varToggle
    • OnChange:
    If(Self.Value, Set(varNumber, varNumber + 1))
     
     
    🔹 Button:
    Set(varToggle, !varToggle)
    Now:
    • Toggle updates visually
    • OnChange triggers
    • varNumber updates correctly
  • Suggested answer
    Pablo Roldan Profile Picture
    316 on at
    SO button manages toggle's state, bit also toggle state can be manually updated 
    You need to
     
    On button Control  
    -OnSelect Property =Set(locMyToggle,!varToggle)
     
    On Toggle Control \
    - Checked Property =varToggle
    - OnCheck Property =Set(varToggle,true)
    - OnUnCheck Property =Set(varToggle,false)
     
     
     
     
     
     
    regards,
  • Verified answer
    MuhammadAizaz Profile Picture
    53 on at
    Hello, Nothing is wrong with your work.
    This functionality only works when user interacts directly.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard