cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
trjackson77
Helper II
Helper II

Focus hijacked - possibly by patch code?

I am having trouble with a gallery for the input of data.  It has three text input controls (txtCount1-3).  I want the focus to move from txtCount1 to txtCount2 (and 2-3) when data is entered.  There is some code running onChange that patches a collection.

 

When entering data I can see that the focus moves from txtCount1 to txtCount2, but then almost instantaneously moves back to txtCount1.  What is going on?

1 ACCEPTED SOLUTION

Accepted Solutions
Alex_10
Super User
Super User

how does that focus move from txtCount1 to txtCount2? By pressing TAB on the keyboard?

If yes, patching OnChange into the same collection as gallery's data source collection will reset tabbing order.

Patching to a different collection will not reset that tabbing.

View solution in original post

1 REPLY 1
Alex_10
Super User
Super User

how does that focus move from txtCount1 to txtCount2? By pressing TAB on the keyboard?

If yes, patching OnChange into the same collection as gallery's data source collection will reset tabbing order.

Patching to a different collection will not reset that tabbing.

View solution in original post

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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (21,757)