Input validation for fields

You must Login before you can answer or comment on any questions.

Hi there. I am new to Titanium so don't bite ;-)

I have some input fields like text, date, time etc. Now I want to implement an input validation, so that the user gets an alert by clicking the save button including a list of the missing items, which the user forgot.

How do I do that?

Thanks

1 Answer

Like in any other validation you might do for a webpage.

When you click the save button, get the value of the fields, one by one, and check it against your validation regexp - if there is something fishy alert the user

Your Answer

Think you can help? Login to answer this question!