var win = Ti.UI.currentWindow;	
var tf1 = Titanium.UI.createTextField({
	color: '#336699',
	top: 20,
	width: 250,
	height: 40,
	hintText: 'RecordID Number',
	keyboardType: Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION,
	returnKeyType: Titanium.UI.RETURNKEY_DONE,
	clearOnEdit: 'true',
	returnKeyType: Titanium.UI.RETURNKEY_DEFAULT,
	borderStyle: Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
});
var b1 = Titanium.UI.createButton({
	title: 'FIND RECORD BY ID',
	height: 40,
	width: 250,
	top: 65
});
b1.addEventListener('click', function()
{
	tf1.blur();
	var val = tf1.value;
	var p = Ti.Contacts.getPersonByID(val);
	if (p == null)
	{
		alert("INVALID RECORD!!");
	}	
	else
	{
		alert(p.fullName);
	}
});
var tf2 = Titanium.UI.createTextField({
	color: '#336699',
	top: 120,
	width: 250,
	height: 40,
	hintText: 'Contact GroupID Number',
	keyboardType: Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION,
	returnKeyType: Titanium.UI.RETURNKEY_DONE,
	clearOnEdit:'true',
	returnKeyType: Titanium.UI.RETURNKEY_DEFAULT,
	borderStyle: Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
});
win.add(tf2);
var b2 = Titanium.UI.createButton({
	title: 'FIND GROUP BY ID',
	height: 40,
	width: 250,
	top: 165
});
win.add(b2);
b2.addEventListener('click', function()
{
	tf2.blur();
	var val = tf2.value;
	var p = Ti.Contacts.getGroupByID(val);
	if (p == null)
	{
		alert("INVALID GROUP");
	}	
	else
	{
		alert(p.name);
	}
});
tf1.addEventListener('return', function(e)
{
	tf1.blur();
});
win.add(tf1);
win.add(b1);
win.open();
@@ -265,22 +265,20 @@
 OnEdit: 
-'
 true
-'
 ,%0A%09retur
@@ -936,14 +936,12 @@
 dit:
-'
 true
-'
 ,%0A%09r

wrong use of 'true'