Read PowerApps toggle control value - demo

In 2 steps read PowerApps toggle control value instantly

One comment

 2,684 total views,  3 views today

In this PowerApps Tutorial, we will learn how to read PowerApps toggle control value and what is PowerApps toggle control in PowerApps.

What is PowerApps Toggle control?

Toggle control is a switch control that the user can turn on or off by moving its handle – this returns either true or false based on the switch selection.

Key properties of PowerApps Toggle control

Below are the key properties of PowerApps Toggle control:

  • Default – This is the default value of the control before it is changed by the user.
  • Value – This is the value of input control.

PowerApps Toggle control – demo

In the below screen, the PowerApps toggle control is being shown, when the user enables it, this returns true or when the user disables this it returns false.

PowerApps Toggle control - demo
PowerApps Toggle control – demo

When a user disables the toggle control, it returns false.

PowerApps toggle control enabled or disabled switch
PowerApps toggle control enabled or disabled switch.

Now let’s learn how it works technically.

Add a toggle control and a label control to display the result.

Select the label control where you want to display the toggle control selection result.

Select the “Text” property of the label control.

Inside the Fx formula box, write the below condition:

If(Toggle2.Value = true,
true,
false
)

PowerApps toggle control enabled or disabled formula

PowerApps toggle control enabled or disabled formula

Description:

In the above demo, “Toggle2” is the toggle control name, inside the if condition we are checking, if the toggle control selected value is true, then return true otherwise false.

Summary: PowerApps toggle control value

Thus, in this article, we have learned about PowerApps toggle control and how to read the value of toggle control conditionally in PowerApps.

See Also: PowerApps Tutorial

You may also like the below PowerApps articles:

Buy SharePoint Online eBook

Buy the premium version of SharePoint Online & Office 365 administration eBook from here:


Buy SharePoint Online & Office 365 Administration eBook

 

About Post Author

1 comments on “In 2 steps read PowerApps toggle control value instantly”

Do you have a better solution or question on this topic? Please leave a comment