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 / Triggering an action b...
Power Apps
Unanswered

Triggering an action based on a component's custom property change

(0) ShareShare
ReportReport
Posted on by 12

Is there any way to trigger an action (for instance Navigate) based on the change of a component's custom property in the app?

Categories:
I have the same question (0)
  • bobesponja Profile Picture
    258 on at

    When creating or editing a custom property, you can have it trigger an action in the component's OnReset property by checking "Raise OnReset when value changes" in the custom property settings. (If this is for a custom property you've already created, you can edit the settings by selecting its data type under Custom Properties).

  • lorensimon Profile Picture
    12 on at

    I use "OnReset" to pass the variable with the button pressed in the component, but if I want for instance to navigate to a page based on that variable, I do not see a way to do it.

     

  • bobesponja Profile Picture
    258 on at

    If it's not possible to set a variable to a page that you pass into Navigate, your best bet is to use a Switch statement based on that variable for each page.

  • lorensimon Profile Picture
    12 on at

    Thanks for the suggestion. Still I am not clear to what event I would map the Switch statement, since the only triggering event is the change of the custom property of the component. 

     

  • bobesponja Profile Picture
    258 on at

    From what I understand, you're using the OnReset event to set/pass a variable that helps you decide what page you want to Navigate to. If this variable is a string describing the page, you can do this:

    Switch(VariableName,
    	"MainPage", Navigate('Main Page'),
    	"Settings", Navigate('Settings'),
    	"SecretPage", Navigate('Secret Page'),
    	Notify("ERROR: page name not recognized", NotificationType.Error) // default response if it doesn't match
    )
  • lorensimon Profile Picture
    12 on at

    maybe I am not explaining myself well enough, or I am missing some foundational knowledge.  What I am trying to do is trigger an action within the screens based on the change of a custom property of the component. 

    From my understanding of the OnReset event, that will drive a behavior of the component.  To give even more context, I only have the navigation header as a component.  I can follow the example of the switch command, just would not know where to attach it in the screens.  

  • lorensimon Profile Picture
    12 on at

    Update: I just enabled some additional experimental feature, and I see that there is an additional custom property type "behavior" besides, input/output. That sounds like what I was looking for.  I am going to experiment the experimental feature.  

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard