Empty text field

Is there any way I can send an error message if one of the fields are empty ?

Your text field should have a function than handles any events the text field generates. Two of those events are a submitted event and an ended event. You can put code in the function when you get those events that tests the length of the text field and if it’s 0 length, then you can alert the user however you wish.

See: https://docs.coronalabs.com/api/library/native/newTextField.html

Rob

Your text field should have a function than handles any events the text field generates. Two of those events are a submitted event and an ended event. You can put code in the function when you get those events that tests the length of the text field and if it’s 0 length, then you can alert the user however you wish.

See: https://docs.coronalabs.com/api/library/native/newTextField.html

Rob