VIDEO – PowerApps Grouped Toggle (select only one)

Brief demo video to show how “OnCheck()” formula can be used to group Toggle controls.   Business goal is to check only one at a time.  When clicking to Check Toggle ON all others controls need to set OFF.    We can accomplish this with “OnCheck()” formula to disable all peers.   Video demo shows the construction of parameters for Patch() function with JSON values to toggle controls OFF and “Refresh()” formula to update display.  Cheers.  shades_smile

Code

Toggle1 / OnCheck = Patch(Test,ThisItem,{Toggle2:false,Toggle3:false});Reset(DataCardValue15);Reset(DataCardValue16);

Toggle2 / OnCheck = Patch(Test,ThisItem,{Toggle1:false,Toggle3:false});Reset(DataCardValue14);Reset(DataCardValue16);

Toggle3 / OnCheck = Patch(Test,ThisItem,{Toggle1:false,Toggle2:false});Reset(DataCardValue14);Reset(DataCardValue15);

Screenshots

image

image

Video

Return to Top ▲Return to Top ▲