Has anyone figured out a way to string together multiple controls/variables to get to an OnDeselect style action? I'm almost able to do what my app needs via the onselect and onchange, but it would be better if I could figure this one out. The pattern is that if someone clicks in the text input field and then clicks out of it without changing anything, i need to fire an action - likely set() but havent confirmed for sure since i can't do it. Any ideas? I'm stumped...
Related, I even strung together ways to change the text input without triggering the onselect or onchange, but that isn't the pattern I was aiming at.
Can you give an example to explain
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
without trying to explain the full scenario, the closest example i can come up with is data validation in real time. if i have a field that requires a specific format, it may be required, or it may need to be a certain length, i want to alert someone immediately as they exit the field that they need to make a change. I can handle most of the scenarios using on change, but if someone clicks on the field and doesn't enter something, then i can't trigger anything alerting them that they needed to. Does that make sense?
I tried using a timer that started onselect and then constantly checked if the field was blank, but it was either triggering the alert too early or too late.
We can use these processes:
On OnSelect of each of the Fields (TextBox) set a Variable example:
thanks for trying, but that isn't it. there is no submit button in the scenario. i need it to trigger as soon as someone leaves the field, not on taking another action, like clicking a submit button.
I have some test on it:
1. Insert a Label1 and put some text in it example "You have not filled Some Textboxes"
2. Set a variable OnVisible of the screen:
Check out our new profile badges recognizing authored solutions!
We are excited to announce the Power Apps Super Users!
Did you miss the call? Check out the Power Apps Community Call here.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!