A few questions about TextFields

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:

  1. How do I FORCE input so that the input cannot be blank when performing a function? (for ex: adding phoneNumber and wage)

  2. 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!

This is an amazing bug on Android that does not occur on iOS or Mac. It should not be overlooked any further because it can be duplicated quite easily.

I just installed daily build 2830 and it is still occurring. I cannot set the ‘default text’ of a field on Android. This is not to be confused with ‘placeholder’.

Well, I can set it, but it doesn’t retain the value. When I check the field.text immediately after setting it, it returns blank.

In my case, I get the field input of an email address on one screen and then go to another screen where the gamer can type a nickname and their names, too. On that screen, I need to populate the email address with the user’s previous input.

fieldObject.text = anything simply doesn’t work on Android. And this is assuming that fieldObject = native.newTextField…

Rob? Corona Team? Can you please fix this quickly? My App is about 30 days from release.

This problem is resolved in daily build 2830.

This is an amazing bug on Android that does not occur on iOS or Mac. It should not be overlooked any further because it can be duplicated quite easily.

I just installed daily build 2830 and it is still occurring. I cannot set the ‘default text’ of a field on Android. This is not to be confused with ‘placeholder’.

Well, I can set it, but it doesn’t retain the value. When I check the field.text immediately after setting it, it returns blank.

In my case, I get the field input of an email address on one screen and then go to another screen where the gamer can type a nickname and their names, too. On that screen, I need to populate the email address with the user’s previous input.

fieldObject.text = anything simply doesn’t work on Android. And this is assuming that fieldObject = native.newTextField…

Rob? Corona Team? Can you please fix this quickly? My App is about 30 days from release.

This problem is resolved in daily build 2830.