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,
Create an account with your Organisation Mail ID and login it, After login your Power Apps account,
Step 2
First, click on Create (+ ) and Select the Canvas app from blank.
Next, give the App name as PAButton and Format as Phone then click create.
Now, In the Power Apps studio environment, select the Create a form option,
After that, we are able to see the following Power Apps studio Environment,
Step 3
For testing the Button control, first, rename the Screen name as ScnBtn and Rename the Form name as FrmBtn,
Add the following controls in the Form window for Button feature view,
Insert the Label Control and set the Name property as LblDisp.
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"}).
Next, we can assign the LblDisp Text property value as Disptext from BtnTest.
Step 4
Now we can see the preview of your App in Power Apps Studio, and the output of the PAButton is,
After clicking on the Button,
Summary
Now you have successfully tested the PAButton in the Power Apps Studio environment.