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=...
Does titanium api doesn't work for facebook contacts ???
~~~ var values = { cancel : function() { // info.text = 'Cancelled'; } }; values.selectedPerson = function(e) { selected_person = e.person var temp_numbers_list = [] for (var temp in selected_person.phone) { var temp_numbers =...
How to get the content of the multivalue fields such as 'url', 'organization', 'birthday' from the contact?
I want to be able to retrieve a content from the multivalue field of the contact. I see in my test that some fields are always undefined in the contact object which i get by Ti.Contacts.getAllPeople. These fields are: birthday, url, organization, nickname....
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 =...
Android Intent add contact intent extra param
There is an extra param in Android documentation when adding a contact to adressbook: http://developer.android.com/reference/android/provider/ContactsContract.Intents.html#EXTRA_FORCE_CREATE Here is my code: ~~~ var intent = Ti.Android.createIntent({ ...
how to set contact details type of layout ?
here i added image, i want to set image type of contact details layout in my contact app using titanium. check this link for image.. http://goo.gl/SGr9T
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...
How to get phone number from contacts on textfield?
I'm developing an app on Titanium Studio for Android. I have a textfield (let's call it 'Receiver') and a button (let's call it 'Contact'). I want to press the button, select a contact from the contacts list and the phone number of the contact to appear...
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 ?
application crashes while adding contacts
HI ALL, I am trying to add contacts to contact book, but the iPhone application gets crashed without any error display. below is by code var contact =...
can i access the current device's phone number through the Titanium.Contacts namespace??
can i access the current device's phone number through the Titanium.Contacts namespace??
Android Contacts
When will Contacts be supported for Android? Specifically, the Contact Picker.
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.
A simple contact phone picker
Hi everybody! I had browse around the Q&A service trying to see some sample code or anything that brings light to this simple problem. I need to show the contact picker and get the phone but can't get this...
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...
How to use Ti.Contacts.getPeopleWithName?
Hi Guys. I want to search for a contact in the phonebook, if they exist - do nothing If they dont exist then add them. i tried this : ~~~ var findus = Ti.Contacts.getPeopleWithName('Adam Kearsley'); if findus.value == 'Adam Kearsley' { // DO NOTHING }...
How to know the favorite contact in the contact list
Hi all, Searching the Titanium APi, I could not find any properties to define the contact is favorite or not. Is this function not supported in Titanium 1.6.1? Or that I searched wrong place? Please advice.
Custom phone number label in create per
In the Titanium.Contacts.Person, you have the contact.phone variable where you can set: home, work, other, mobile, pager, workFax, homeFax, main, iPhone as type. I have seen some native apps that save numbers with a custom type label. Is that possible...
Impossible to "Company Name" or "Organization Name" of contacts
Hi I would to get "Company Name" or "Organization Name" of contacts those are stored in iphone address book. And it doesn't works (it works for fullname, departement, ...) How to do ? Thanks >>>> it works with 1.6.0 !!!!
Error saving contact on call
I'm trying to save a contact on call, but are having trouble making it work. Here is my code: ~~~ var phoneButton = Ti.UI.createButton({ title:'Call', width:150, top: 100, height:50 }); phoneButton.addEventListener('click', function(e){ var...
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...
returning phone numbers in ANDROID
this code lists the Labels, but I am trying to get the Phone Numbers out of this list. I thought something like phnums[label][value] would give me the value of the label, the phone number... but I am getting nulls. ~~~ Ti.API.info('------ creating an...
Android Contact Picker Intent Help
Hi, I'm trying to use Android intents to get a contact picker started so I can get back a phone number. I can't figure out how to actually get a result back, let alone know what I'm looking for in the result. Is there a correct way to get a result and to...
Kitchensink contact list
I am quite new to making apps with Titanium. I think i'm getting the hang of it but there is one thing that's not going that well at the moment. I am trying to make a wordlist, for that i chose to use the contact view out of the kitchensink. What i would...
Contact Form Response Undefined. with JSON too
I am trying to create a contact form where the user can entry in a text field their name, email , subject and message. once you send it, it goes through another page with json stringify functions and then on a server will go through a $data post and this...
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...
contact email form
i want to create a contact form where people can email me straight away from the app provided me with their email, subject and description.
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 ==...
is there anything like the iPhones Contact List View?
I can't seem to find an example of it in the Kitchen Sink, but that doesn't necessarily mean it doesn't exist..... Is it possible, maybe easily, maybe not, to mimic iPhone's Contact List view with the letters on the right to "jump" to the...
ShowContactPicker CRASH
Hello, I have a problem whit a CRASH of ShowContactPicker This is the whole code working on sdk 0.8.x and CRASHING on 1.3.x ~~~ var win = Titanium.UI.currentWindow; win.barColor = '#13386c'; var tf1 =...
Another Titanium App Failure
I updated an iPhone app using the 4.0 patch and the same despairing attempt to fix the useless, crashing Titanium Contact Picker. I asked Apple nicely for an expedited review and stated that the reason for the update was that the Contacts picker was...
Showing 1-46 of 46