Community Questions & Answers

Required Fields

Hi, i have a contact form in my app. It's working but i need to create required fields like name surname and email. How can i prevent user to click send button without fill this fields. Thanks..

Post Data Error

hi, i made a contact form with textfields and i made a button to send information from app to email.php file... this is my textfield code, ~~~ var name=...

iPhone Create Contact

Hey guys, i currently am unable to create a contact within my iPhone app. This is the code i use. ~~~ var contact = Titanium.Contacts.createPerson(); contact.firstName = companyname+' - '; contact.lastName = shortcutname; contact.note =...

Add more than one contact

Hi, (iOS) I have a textfield where the user can add an email and a button to add email form the contacts list. Can we add more than one contact at time, I want to let the user select the emails of multiple contacts and add them to a textfield...

show contact on android

Hi, this solution works fine on iphone but on android, when i click on the contact, i comeback to my app without going to numbers of this contact and select one of them. and when i comebakc to my app, my label is not...

How to set values for a contact

Can anyone share simple syntax for how to set/update the properties of a contact in the apple addressbook? I can read them fine with this code: ~~~ var people = Ti.Contacts.getAllPeople(); for (i = 0; i < people.length; i++) { for...

Titanium.Contacts.getPersonByID - issues

Hi there, I've searched everywhere on the documentation, kitchensink sourcecode, but I can't see how to get the id of a person. In the API docs you mention method getPersonByID - but in the Titanium.Contacts.Person API there is no mention of any ID field....

iPhone - Formulary to add a contact

Hello, I working to find a way to call the native iOS formulary to add a contact on an iPhone with the know field fill in. I have seen the API contacts in Titanium, but it's just add a contact without formulary. I would like to be able to modify all...

Contact from iOS not working

I'm trying to grab a contact from the iOS address book (Android actually works fine for once), and in my code, I'm not getting any values for the selected person. ~~~ selectedPerson: function(e) { var friend_name= e.person.firstName+ '...

Ti.Contacts.Person.image Can't seem to set it.

I can't seem to set the image for a contact. Is anyone else having the same issue? ~~~ var person = Titanium.Contacts.getPersonByID(personAddressBookID); var image1 = Ti.UI.createImageView({ image: someURL }); person.setImage(image1.toBlob()); ~~~

show contact on android

Hi, this solution works fine on iphone but on android, when i click on the contact, i comeback to my app without going to numbers of this contact and select one of them. and when i comebakc to my app, my label is not...

createPerson error

hello, I get this message when I want create a contact message = "'undefined' is not an object (evaluating 'Titanium.Contacts.createPerson')"; name = TypeError; sourceId = 259412672;

Add contact organization

How can I add contact organization with Titanium.Contacts.createPerson(); can I have an example ?

Android Contacts API

Does the contact API work on the Android platform? As I get an error on the following ~~~ Titanium.Contacts.getAllContacts(); ~~~ as it seems to be undefined according to the error message.

selectedProperty multiple fields

How can I get the contact's name when using selectedProperty? values.selectedProperty = function(e) { if (e.property == 'email') { Ti.API.log(e.label + ": " + e.value); } } how can I not only get the email address, but I also...

accessing contact email adress crash

i try to access email adresses from the contact database. my code seems to work stable on the emulator, but on the device it crashes. the crash message: Fri Jan 28 01:56:46 toms-iPhone xxxxxxx[5947] <Error>: *** Terminating app due to uncaught...

Contact form example

Can someone give me a simple example of a contact form page with a date picker for the iphone? 1 or 2 fields would be all I need. I've been trying to get my mind around this for a few days and it's just not sinking in. Any help is appreciated.

Contacts API

This question is two fold: 1) how do you get the ID for a contact to use the get contactbyID api call? The person object does not seem to have an ID field, and if you try to iterate over its properties (for p in person) to find any undocumented...

Contact screen for iPhone

I've noticed in several different apps that when they display a contact screen, they all look the same. The layout, which is a tableview, looks like this: [pic] Person's name phone # home page address notes [Create new contact] [Add to existing...

CONTACTS on ANDROID...

I'm using 1.6.0 continuous build, Android API2.1 on a MAC http://drupal.pastebin.com/nDY7vXkZ this is the code and trace. This code used to work when I was using 1.4.3. I am able to see all of the phone labels.. ( home, work...) but I can not pull the...

Contact email on iOS

FYI - trying to get contact email on iOS works in emulator, but crashes on the device. if I just simply add this line to my code, it crashes on the device (4.2.1 3GS & 4). contact.email I can use contact.phone and iterate over the phone just fine...

Easy way to select group to save contact to.

I noticed in the kitchen sink that there is an example of viewing/saving groups as well as how to save an individual contact with a lot of detail, but what I need to know how to do is to specify which group I am saving a detailed contact to when using...

Can't create a contact

Hello, I try to create a contact on my iPhone app, like this: ~~~ var contact = Titanium.Contacts.createPerson(); contact.firstName = 'foo; contact.lastName = 'foo'; contact.email = 'foo@foo.com'; // contact.email.home = 'test@gmail.com'; //doesn't...

contact.sort on android

THis code works fine on iPHONE, but a.lastname is returning NULL on an ANDROID. So, I believe the problem is when the array is passed to the function.. any suggestions? ``` // var people = Titanium.Contacts.getAllPeople(); if (Ti.Platform.name ==...

Showing 1-46 of 46