cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
unislacker
Advocate I
Advocate I

Patch Removes Focus

I am a bit frustrated here and hope someone can advise, however i don't think what i am looking for is possible. 
Lets say for argument sake I also have to use patch so please do not suggest other options such as forms or something.

So I have 18 TextInput boxes all next to each other in a line and i have the onchange set to patch the change within the input boxes all pointing to patch a single column , This basically builds a logical string in said colum. 

The problem is that if in TextInpu1 I type a number and then click Textinput2 and try to type something in here, the app unfocuses on TextInput 2 almost immediately. I assume this is because the TextInput1 box is still  Performing its patch. 

 

Why is this annoying is because you have to make a change, then click another text box ¨, then click again to start typing. 

So what I want is when i click away from TextInput1 onto any other TextInput box i want the focus to remain.

Thanks in advance for the support 

1 REPLY 1
gabibalaban
Super User II
Super User II

Hi @unislacker,

Did you experiment the same issue when you use Tab instead of mouse click to change the focused textInput control ?

If so, please try to use SetFocus(yourNextTextInputControl) function after the Patch(). I think this should solve your problem.

 

Hope it helps !

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (55,547)