Toggle 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.

A toggle is a control that the user can turn on or off by moving its handle. A toggle is designed for recent GUIs but behaves the same way as a check box.

Reading this article, you can learn how to use Togglecontrol in 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 Organization Mail ID and login. After logging in to your Power Apps account,

Step 2

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

Next, give the App name as PAToggle and Format as Phone.

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

Step 3

To test the Togglecontrol, rename the Screen name as ScrToggle, rename the Form name as FrmToggle,

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

Insert the Label Control and set the Name property as LblName and Text Property as Toggle Control in Power Apps.

Insert the ToggleControl and set the Name property as TogStatus,

Next, we can Insert the Label Control and set the Name property as LblStatus and Text Property as If(TogStatus.Value = true, "Toggle value is On State", "Toggle value is Off State") for Toggle status.

Step 4

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

After changing the status of Toggle,

 

Summary

Now you have successfully tested Toggle Control- PATogglein Power Apps Studio environment.