Skip to content
All posts

Power Apps Buttons & OnSelect

In this step-by-step tutorial, learn how you can use the button control within Microsoft Power Apps. Are you new to using buttons in Power Apps, or do you just want to know more about using them? You’re in the right place! This is a beginner tutorial for those who are new to Power Apps. We’ll cover the Text and the OnSelect property, which are the main two you’ll change often for buttons. We’ll set the visible property to make the button invisible and visible again. We’ll also go over the other common properties of the button control that you may want to change in Power Apps.

To add a button to a screen, go up to the insert pull-down menu, and click on Button. This should add it right away.

You should now see the button on the screen. The first property you will want to change on your button will be the Text. A short-cut to do this is to double-click on the button and just start typing. Or, you can change the value over on the property window which will be on the right side of your screen.

The next thing to do with a button control is to add code or an expression that will be fired or executed whenever the button is clicked or selected. Let’s do that now. Make sure the button is selected. Select OnSelect from the drop down list on the left side of the screen, then you can add whatever code or expression you’d like in the fx area.

Let’s add something that will send a message to the user, like the Notify() function. We could simply provide a string of text to display, such as “Hello World!”. We’ll do this with the following code:

Notify("Hello World!");

Go ahead an run the app by clicking on the run button, then click on the button.

You should see the message:

Be sure to check out the accompanying video to go over the other properties of the button!

https://youtu.be/Ldy0NJy2EKE