Skip to content

Power Apps

Power Apps Button - Modern Controls

Power Apps Button – Modern Controls Purpose A Power Apps button control is used to trigger an action when clicked or tapped. Its purpose is to provide a way ...

Matthew Devaney
Published
Reading time
2 min read

Before you start

Is this guide for you?

Best entry point
Power Apps
Time investment
2 min read

Imported reference from Matthew Devaney's blog for learning purposes. Original: https://www.matthewdevaney.com/the-complete-power-apps-modern-controls-guide/power-apps-button-modern-controls/. Author: Matthew Devaney.

Power Apps Button – Modern Controls Purpose

A Power Apps button control is used to trigger an action when clicked or tapped. Its purpose is to provide a way for the user to initiate actions and navigate through an interface. Properties AcceptsFocus

Determines whether the button can be focused on using the tab key or SetFocus function AccessibleLabel

Screen readers will voice this text when a user selects the control Appearance Sets the button’s style Options: = “Primary” = “Secondary” ContentLanguage

Describes the language used to the audience (e.g. “en-US”) DisplayMode

Selects the mode: Edit, View or Disabled. In Edit mode the user can input values. In View mode the user can only see the values and in Disabled mode the control is greyed-out. Options:

= DisplayMode.Disabled = DisplayMode.Edit = DisplayMode.View Height

Distance from the top of the control to the bottom OnChange Unknown purpose. OnSelect

Actions that will be executed when the button is pressed. Text Text displayed on the button Visible

Determines whether to show or hide the control Width

Distance from the left side of the control to the right side X

Distance from the left edge of the screen to the left side of the control Y

Distance from the top edge of the screen to the top of the control

How To Use The Power Apps Button Control

1. Select the button control in Power Apps studio. Input a value into the Text property. "OK" Code language: JSON / JSON with Comments ( json )

2. Write code in the OnSelect property of the button to execute an action when the button is pressed. Set (varShowMenu, false ); Code language: JavaScript ( javascript )

3. Click on the button to run the action. Did You Enjoy This Article? 😺

Subscribe to get new Copilot Studio articles sent to your inbox each week for FREE Enter your email address Sign Me Up Questions?

If you have any questions or feedback about Power Apps Button – Modern Controls please leave a message in the comments section below. You can post using your email address and are not required to create an account to join the discussion.

Share this

Tagged

Power Apps

Have a Microsoft 365 topic idea?

Share article suggestions, community session ideas, corrections, or real-world scenarios for future nextM365 learning notes.

Suggest a topic

Keep learning Microsoft 365

Explore more practical guides for SharePoint, Power Platform, Copilot Studio, migration, automation, governance, and security.

Continue learning

Next action

What to do next

Browse all tutorials →