Trouble with PhoneGap Contact service. If a field is missing or blank, the code stops.
Posted: Fri Sep 06, 2013 6:08 pm
Very cool. I got it working properly.
For anyone out there in the same boat, I solved my issue by putting the following JS in the OnSuccess event of the Contact Service...
code
for (var i=0;i<data.length;i++)
{
var phoneNumbers = data.phoneNumbers;
Code: Select all
for (var j=0;j<phoneNumbers.length;j++)
{
var type = phoneNumbers[j].type;
var phone = phoneNumbers[j].value;
alert(type + ": " + phone);
} }
/code