Button Control In Power Apps

Power Apps is a suite of apps, services, connectors, and data platforms that provides a rapid application development environment to build custom apps for your business needs. For more details click here.

The Button Control is used so the user can click or tap to interact with the app. In Button control, we can Configure the OnSelect property to run one or more formulas when the user clicks or taps the control.

Reading this article, you can learn how to use Buttoncontrolin Microsoft Power Apps.

Step 1

Open the URL https://powerapps.microsoft.com/en-us/ in the browser for Power apps,

Button Control In Power Apps

Create an account with your Organisation Mail ID and login it, After login your Power Apps account,

Button Control In Power Apps

Step 2

First, click on Create (+ ) and Select the Canvas app from blank.

Button Control In Power Apps

Next, give the App name as PAButton and Format as Phone then click create.

Button Control In Power Apps

Now, In the Power Apps studio environment, select the Create a form option,

Button Control In Power Apps

After that, we are able to see the following Power Apps studio Environment,

Button Control In Power Apps

Step 3

For testing the Button control, first, rename the Screen name as ScnBtn and Rename the Form name as FrmBtn,

Button Control In Power Apps

Add the following controls in the Form window for Button feature view,

Insert the Label Control and set the Name property as LblDisp.

Button Control In Power Apps

Insert the Button Control and set the Name property as BtnTest, Text property as Click Me and OnSelect Property in Action (click the Advanced) as UpdateContext({Disptext: "CSharp corner"}).

Button Control In Power Apps

Button Control In Power Apps

Next, we can assign the LblDisp Text property value as Disptext from BtnTest.

 Button Control In Power Apps

Step 4

Now we can see the preview of your App in Power Apps Studio, and the output of the PAButton is,

Button Control In Power Apps

After clicking on the Button,

Button Control In Power Apps

Summary

Now you have successfully tested the PAButton in the Power Apps Studio environment.


Similar Articles