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 / Ability to create Butt...
Power Apps
Answered

Ability to create Buttons in Component Library to have OnSelect behavior as a custom property that's not just for navigation

(1) ShareShare
ReportReport
Posted on by 36

I'm creating a Power App Component Library for our company-branded look and feel. The buttons that we use are somewhat complicated in terms of formatting (radius, basic color, text, hover color, disabled color, etc.). I was hoping that I could create a Component Button that would contain all the formatting plus Input properties for button text AND behavior for OnSelect.

 

All I seem able to do is use Navigate > Screen or Back() function. Most of the buttons I use in Apps are not for navigation, but instead are for actions like submitting a form, patching a SharePoint list item, and sending an email.

 

Categories:
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    Hi there

    the custom properties can be used if you wish to go this way. here is an example for a component that sends email

    the button has three properties, send to, subject header and the email body.

    rubin_boer_0-1600631218623.png

    the onselect event for the button in the component

    rubin_boer_2-1600631617103.png

    On the screen the properties can be referenced like with any control

    rubin_boer_1-1600631489360.png

    I would have gone with a theme screen and store all my buttons within the theme etc like this. not the most elegant but it works.

    rubin_boer_0-1600632197227.png

     

    hope it can be useful for you.

     

     

     
  • whitelc Profile Picture
    36 on at

    Thanks! I will try this.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard