Showing results for 
Search instead for 
Did you mean: 
New Member

ondeselect style action

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.

Super User III
Super User III

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: 

Next Step:
OnVisible of the Screen put:
To ensure the variable does not take effect when user first goes to the screen
Finally, Using Your Submit Button OnSelect, Put:
If(varTochedTextbox1 Or varTochedTextbox2,Notify("Not All fieds are filled"),SubmitForm(Form1))

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.

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:  

Replace DataCardValue6 with your textbox
3.In the DataCardValue6 that has to be completed by the user put:
4.Finally in the Visible of Label1:

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.

Helpful resources

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users


We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (34,973)