In the attached file you can find the second version of my testproject.
I use the suggestion from
@Andrew (Digitwell) and added the textchanged subroutines.
If you tap on the clear button of the keyboard
View attachment 143412 you can go back to the previous EditText box.
For this to work i added some code i found here:
B4XPages intercepting keypress event.
Look at the Main module under #Region Delegates, Sub Activity_KeyPress (KeyCode As Int) As Boolean.
In the B4XMainPage module i added: private Sub B4XPage_KeyPress(KeyCode As Int).
When the user enters the last digit the OK button gets the focus. Here (btnok_Click subroutine) you can write code to go to the next page.
In my testproject the focus is returned to the first EditText box when the user taps on the OK button.
There are alternative ways of entering 6 digits. You could show 10 digit buttons like you see in bank apps.