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 / 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
    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
    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

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