Community Questions & Answers
Token Field Like the Mail App To field
Does anyone know if there is a module or some code that replicates the Mail To field behaviour when you add contacts? I found this one, but it's not for Titanium. http://cocoacontrols.com/platforms/ios/controls/jstokenfield
Field is being covered by keyboard
One of the input fields in my iPad app is towards the bottom of the page:  So when you tap into it, the keyboard covers...
Android Number Picker
Is it possible to create a standalone widget like this in Titanium, or do I have to create it manually? **I don't want the entire Time Dialog, just a simple number spinner - for a quantity field.** ![sample...
Getting started: Adding a password field
I've been poking around Google, this Q&A section and the Docs, and thus far I haven't had much luck answering (in my mind anyway) a very simple question :) I'm trying to add a password form field to my app (this *could* be done with a textField, but...
Instagram # and @ keys in place of returnkey
Hi everyone, Instagram comment field has # and @ keys in place of the returnkey. How can I do this? I've tried every keyboardType and returnKeyType option and none have what I'm looking for. Titanium 2.0 IOS
Field doesn't go up on keyboard show
Hello, I have a view with 3 text fields but when i focus on any field it shows the keyboard, as i should, but without moving the view up so the keyboard covers part of my view including the fields i'm typing on. thanks in advance :)
Confirm that someone entered a number (and only a number) into a field?
I have an iPad application with input fields. Some of the require a number be input, such as 6 or 10.25. I then do math with the inputs when the user clicks a button, by casting the value to Number(). How can I check that the user entered a valid number...
Row data (without attaching to proxy object)
Just out of curiosity, what kind of solution do you use when the user selects a row from a TableView and you need to respond based on the selected row. At first I always just set a property on the TableViewRow which I could then retrieve from the event.row...
Get value of multidimensional array with string variable
Hi, i have next code: ~~~ var gasolinerasArray = new Array(); for (var c=0;c<gasolineras.length;c++) { gasolinerasArray[c] = { 'id': gasolineras[c].id_gasolinera, 'provincia': gasolineras[c].provincia,...
Where is NumericField/DecimalField?
Is there an easy way to create NumericFields/DecimalFields with Titanium? If not. Is there some examples showing how to create TextFields that only support numeric input, length of input, formatting decimal numbers etc. It would be nice to have: ~~~ var...
database problems!
<code>var db = Titanium.Database.install( "yes.sqlite","hatethis"); var data = []; var rows = db.execute("SELECT * FROM names"); while (rows.isValidRow()) { data.push({ first: rows.fieldByName('first'), ...
Single Event Listener with Multiple Text Fields
Hi, I am wondering how I can have one event listener (onclick) which is fired when any of the text fields are clicked (clicked and the keyboard pops up). Thanks in advance.
cursor position -index- inside text field ?????
is there a way i can determine the position of the cursor inside the text field ?????
How to Validate Text Field
<script src='http://pastie.org/1791400.js'></script>
pickerRow custom field
Hi everybody, Can i put some custom field in pickerRow. I want to use the title field to display some information but i want to "hide" other. An example : var pickerInscrit =...
putting integers into textfields
When I have 2 text fields and want to put the (integer) value of one to an other (e.g. on blur) it is not possible. When it is a string, it does work. Now I have worked around this (see example). But is there a better way to do this? Is this a...
Keyboard bounces when navigating between Text Fields
I have a page with several Text Fields. I've added a "Next" button to the keyboard that pops up, which causes the next text field to be automatically focused: ~~~ var tf = Ti.UI.createTextField({ returnKeyType: Ti.UI.RETURNKEY_NEXT ...
Search field, not search bar?
Hi, I am trying to implement a search field on the top right of my IPad app. For some reason i cant define where the search bar will be located. Its possible? Can someone point me to some examples? thanks in advance
Horizontal alignment of text fields
Greetings, I'm pretty new to Appcelerator, so please bear with me. I'm trying to place a simple text field in the window: ~~~ var uname = Titanium.UI.createTextField({ color:'#336699', height:35, top:10, left:10, width:250, ...
Formatting phone numbers in a text field
Is there any support for auto-formatting phone numbers as they're being entered into a text field, the way that the Contacts utility does? I have a text field that's using a phone number keyboard, and if the user is trying to enter an international number...
Android TextField Decimal problem
I'm trying to make an app where you input a dollar amount into one of the textfields. However, when I push the . button, it doesn't show up. Even on an actual device, it still doesn't work. Is this a known issue?
field.hasText crashes app in iPhone
Hi guys, coming up against a strange error, I've search this QA but this error was different and on Android. I have a text field which I need to check has something in, simple I know! But doing the simple check of: ~~~ tf1.addEventListener('return',...
How to properly focus a text input element (auto keyboard pop-up)?
(As an aside, the documentation could use way more examples. This should be simple, but just isn't working...I'm sure it's me :)) ~~~ var mainWindow = Titanium.UI.createWindow(); mainWindow.open({ fullscreen:"true" }); var textfield =...
Return key not working on text fields
Hi, I noticed another developer is having the same issue at the bottom of this question: http://developer.appcelerator.com/question/5881/titanium-developer-crash-with-titanium-sdk-110. When I go to a text field and click on it, the keyboard pops up...
How do you flush the search bar
I'd like to have a text ie: search written inside the search field and I would like this text to disapear when the search field gets the focus. I tried this code but it does'nt work even with other events like click any...
Showing 1-25 of 25