# Input fields\[f8\]

**URL:** <https://forum.kirupa.com/t/input-fields-f8/298511>\
**Category:** Uncategorized\
**Created:** [October 20, 2009, 12:14pm UTC](https://forum.kirupa.com/t/input-fields-f8/298511 "2009-10-20T12:14:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ukko](https://avatars.discourse-cdn.com/v4/letter/u/e68b1a/32.png) [@ukko](https://forum.kirupa.com/u/ukko)\
**Post date:** [October 20, 2009, 12:14pm UTC](https://forum.kirupa.com/t/input-fields-f8/298511/1 "2009-10-20T12:14:21Z")

</div>

Hi There

I wonder if someone can help - I have a number of input fields on stage that a user can enter info into.

How can I go to the next input field when info has already been entered?

thanks

```php
for (var n:Number = 1; n<=boxselecton.length; n++) {
        var txtSelect = boxselecton[n].textfld;
        txtSelect.restrict = "a-z";
        boxselecton[n].textfld.nextField = boxselecton[Number(n)+1].textfld != undefined ? boxselecton[Number(n)+1].textfld : boxselecton[n].textfld;
        txtSelect.onSetFocus = function() {
            this.text = "";

        };
        txtSelect.onChanged = function() {
            total++;
            Selection.setFocus(this.nextField);
        };
    }

```
