Hey guys!
I just got a few questions about TextFields…
wage = native.newTextField( HW, HH+HH/2, 150, 30 ) -- First Text Field wage.inputType = "number" wage.align = "center" wage.placeholder = "Hourly Wage" phoneNumber = native.newTextField( HW, (HH+HH/2)+45, 150, 30 ) -- Second Text Field phoneNumber.inputType = "number" phoneNumber.align = "center" phoneNumber.placeholder = "Boss Phone #"
Here are my questions:
-
How do I FORCE input so that the input cannot be blank when performing a function? (for ex: adding phoneNumber and wage)
-
How do I save the value of wage and phoneNumber so that next time I load the app, the textfield is already filled in?
Thanks guys!