Power Apps Buttons & OnSelect

by | Beginner | 0 comments

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

0 Comments

Submit a Comment

Current Articles

Understanding Data for the Power Platform

Unlock the power of data in your Power Apps projects with this comprehensive guide to relational databases! In this live stream tutorial, we dive deep into the fundamentals of data, relational databases, and how they seamlessly interact with the Microsoft Power...

Power Apps Beginner Topics

Welcome to the Power Apps Beginner Topics livestream, hosted by Darren Neese – your Power Apps Accelerator. This in-depth nearly 3-hour session is tailor-made for absolute beginners who are eager to delve into the world of Microsoft Power Apps.

Wrapping Your Mind Around Power BI

The business world is constantly evolving, and the need for effective data visualization and analytics tools has never been greater. If you're looking to harness the power of data in your business, then this blog post is for you. We are thrilled to share an exclusive...

Power App Host Object

https://youtu.be/8of3VF4aOy8 Dive deep into the world of Microsoft Power Apps with Darren Neese, your expert guide on the platform. This insightful video demystifies the latest feature in Power Apps - the Host Object. The Host Object, integral to every app, equips you...

Microsoft Power Platform in the Enterprise

Harnessing the Power of Microsoft Power Platform in the Enterprise The Microsoft Power Platform offers a suite of tools that can be used to develop customized business applications, automate workflows, create visual data analytics, and build chatbots without extensive...

Future of Power Apps

As technology continues to evolve at a rapid pace, so does the potential for Power Apps. Microsoft is constantly updating and improving the platform, adding new features and capabilities to help businesses and organizations streamline their processes and improve their...

Power Apps Advanced Example

https://youtu.be/3ISiX4eImVI Looking for an advanced Power Apps application to streamline your timesheets and invoices? Look no further than this demonstration video showcasing an example application built for one of our clients! In this video, we take you through all...

Delete Records in Power Apps by Using Remove

https://www.youtube.com/watch?v=WYBfigNtpkA Any Power Apps application you write will at some point need to delete records from your data source. Sometimes you're on an edit screen, and you'll want to have a delete button for an individual record, but sometimes you...

How to Create Database Tables in Microsoft Dataverse

https://www.youtube.com/watch?v=v4A51a494yw In this video tutorial, you'll learn how to create custom database tables in Microsoft Dataverse by using an Entity Relationship Diagram (ERD) as a guide. We'll walk you through the entire process of building your ERD...

Can ChatGPT Create a Whole Power App?

https://www.youtube.com/watch?v=Ohgy3k6oW4o In this exciting live stream, I'll be demonstrating how you can build a complete Power App from start to finish using Dataverse, with the help of ChatGPT. This is an exciting opportunity to see the power of AI and how it can...