Hi, I am developing for Android and iPhone wit Titanium Studio 1.0.7.201112152014
I want that a textfield only admits text. I mean no numbers and no symbols. I know that I can do it by checking if the text.addEventListner('change'... But I want that the user hasn't the oportunity to write a number or a symbol, just text. It's like customize my own keyboard. Is it posible? PS: Sorry about my english.
2 Answers
Accepted Answer
The alternative is to create a custom made keyboad, with buttons.
You can check for numbers and symbols using Javascript. Unfortunately you can only use the keyboards that Apple provides. You can try various different keyboards by specifying a keyboard type
keyboardType:Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION
I suggest you try the various keyboards availible to you, look in the API documentation under Titanium.UI.
Sincerely,
John J. Donna II,
Your Answer
Think you can help? Login to answer this question!