# Advance text field components in flex reapeater

**URL:** <https://forum.inductiveautomation.com/t/advance-text-field-components-in-flex-reapeater/63629>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [August 30, 2022, 8:52pm UTC](https://forum.inductiveautomation.com/t/advance-text-field-components-in-flex-reapeater/63629 "2022-08-30T20:52:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [August 31, 2022, 1:40pm UTC](https://forum.inductiveautomation.com/t/advance-text-field-components-in-flex-reapeater/63629/4 "2022-08-31T13:40:06Z")

</div>

You can probaly program you scanner to send a tab after a scan

If the scanner is used for somethign else where this would be undesirable

The easiest way is proably working with messages.

1. A scripts in the onChange of the inputfield, that sends its step number/id in a message to the page
2. In the page a message handler that sends a message to the next step
3. a message handler on the inputfield that does a focus if its id matches the one send by the message of step 2

it can also be done with a step less if you use indexs instead of your prefex  
example:

> [@Flex Repeater Focus](https://forum.inductiveautomation.com/t/flex-repeater-focus/53748):
>
> Hello all, I am trying to shift focus to different numeric entry fields in my perspective project. In this example I have 4 fields, two of them sitting inside a flex container and I can auto-advance focus on them using the change script: if currentValue!=previousValue: self.parent.parent.getChild("nok").getChild("nokBC").focus() How can I gain focus on the third field after that? (the third field is the instance of a flex repeater)

---

_[View the full topic](https://forum.inductiveautomation.com/t/advance-text-field-components-in-flex-reapeater/63629)._
