Keep or Change
Trying to figure out how to keep or change a number in a label or text input using a toggle control. I put a random number in the label and may want to keep it or change it back to a random number. I got it to work one way, to keep (hold) the value. But, when I release it it changes but, not to the last value.
Button OnSelect =
UpdateContext({locFirst: RandBetween(1, 50) });
Set(LastLabelValue, myHoldNumber);
Toggle OnChange =
Set(myHoldNumber,Value(txtFirst.Text));
Set(toggleValue, tglFirst.Value);
If(tglFirst.Value, Set(LastLabelValue, locFirst))
txtFirst Default =
If(toggleValue, locFirst, LastLabelValue)
The issue is "myHoldNumber". It is not showing the
last number (the hold number).
4
4 comments
Mark Kloch
3
Keep or Change
Learn Power Apps
skool.com/learn-power-apps
A community of people who are enthusiastic about and trying to learn about Microsoft's Power Apps!
Leaderboard (30-day)
Powered by