Thank your for choosing Power Platform Community.
Problem: You want a reusable component (e.g. a button) to trigger actions like Navigate(...) or Set(...) when clicked, using a custom OnSelect property.
Incorrect Attempts:
Setting OnSelect as a Text property → error: “Behavior function in a non-behavior property”.
Setting it as Action with ReturnType: None → still triggers the same error.
Correct Approach:
Enable Enhanced Component Properties in Power Apps settings (under Experimental features).
Create the OnSelect property as a Behavior type.
Inside the component, set the internal button’s OnSelect to:
powerapps
ComponentName.OnSelect()
When using the component in your app, assign any valid action to OnSelect, like:
powerapps
Navigate(Screen2)
This setup allows your component to execute external actions when clicked, making it fully reusable and behavior-driven.
Check out these resources:
If this fixes the issue, please mark as resolved to help others with find it.
Happy to help
Robu1
SuperUser|Moderator
Season 2:2025