Is there a way of knowing if a text field has got text in? I’ve looked at the documentation, but all I can find is knowing if the user has clicked away from the text field, or clicked submit, but nothing about whether they actually wrote something or not? [import]uid: 116264 topic_id: 26264 reply_id: 326264[/import]
Take a look again
: http://developer.anscamobile.com/reference/index/nativenewtextfield
Look at the section “listener” it shows you the phases that the text field returns. [import]uid: 84637 topic_id: 26264 reply_id: 106560[/import]
I still can’t see how to make sure there is text in the text box? [import]uid: 116264 topic_id: 26264 reply_id: 107054[/import]
To see if there is any text in the box you could do:
[code]
if string.len(nameEntryField.text) > 0 then
print(“text has been entered”)
else
print(“no text was entered”)
end
[/code] [import]uid: 84637 topic_id: 26264 reply_id: 107531[/import]
Thanks! [import]uid: 116264 topic_id: 26264 reply_id: 107638[/import]