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 / Check box oncheck code...
Power Apps
Unanswered

Check box oncheck code not running automatically

(0) ShareShare
ReportReport
Posted on by 2

I have a check box , whose checked property is based on 

Form1.DisplayMode = DisplayMode.View 
This is working fine
 
On change I put the code to test  :
Notify("test",NotificationType.Information,2000)  
 
Expecting that automatically when the   the check box is checked or unchecked notification will appear,
But it does not happen.
But if I do it manually, the code run of notify.
 
could not understand, manually by mouse done, its working and if when check is true or false by code, it does not run
 
please guide how to run notify if check box is checked or unchecked
 
 
 
 
Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @MIA27 

    Using the Default property to change the check status of the checkbox will not trigger the "OnCheck" and the "OnUnCheck". Only using the mouse to check or uncheck the checkbox will trigger the  "OnCheck" and the "OnUnCheck".

    So if you want to dynamic show the notification , you may need to put the code in the other place.

     

     

    Best Regards,

    Yueyun Zhang

  • MIA27 Profile Picture
    2 on at

    Thank you for your reply.

    "you may need to put the code in the other place."

     

    Not understood. As mentioned, I am just testing the process.

    My target is to run a code on the status change of check box. On Check and on Un Check.

    It can be done manually by mouse, But wanted to automate the system and keep this in hidden form user.

     

    Kindly guide how to capture this event on the check box

     

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @MIA27 

    For example , we can put this code to a button-OnSelect:

    Set(selected,true);Reset(Checkbox1);Notify("test",NotificationType.Information,2000)  
     
    Checkbox- Default:  selected

    When we click the button, the app will show the notification. And you can also put this code to a Gallery- OnSelect.
     
     

     

    Best Regards,

    Yueyun Zhang

     

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 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard