Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Check box oncheck code not running automatically

(0) ShareShare
ReportReport
Posted on by

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
 
 
 
 
  • v-yueyun-msft Profile Picture
    on at
    Re: Check box oncheck code not running automatically

    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

     
  • MIA27 Profile Picture
    on at
    Re: Check box oncheck code not running automatically

    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
    Re: Check box oncheck code not running automatically

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard