- Home /
Text field data entering
I have four text field named as text1,text2,text3,text4 arranged in vertically column wise player has to enter some data into each text field. if player enter data in text2 leaving text1 as bank then what ever data entered text2 should go to text1 like wise my need is when ever player enter data in text field it should auto populate in the blank text field which ever bank in top .If player enter data in text3 field if both text2 and text1 are blank then it should go text1 field and text1 is already filled then data should go to text2 field like wise all four field should work i tried many ways not working.
Oftentimes a good starting point is to make pseudocode of what you're trying to accomplish. Pseudocode is a half-code, half-english version of the implementation, which is easily translatable to any program$$anonymous$$g language. It also serves the purpose of clarifying your own thoughts as to how the program should run (to yourself and to anyone else reading).
$$anonymous$$y pseudocode could look something like:
array textFields of TextField
when user inputs letter
while not the first textField
check if previous textField is empty{
move to previousTextField
}else{
add inputted letter to textField
break while
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613114538im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Input Field text history/previous 0 Answers
Arduino Temperature Sensor Read Values in Unity 5 Answers
Create a glossary using Simple JSON, loading data dynamically 1 Answer
Displaying text on a GameObject 1 Answer
Activate a text field on key press 0 Answers