PDA

View Full Version : Add Contact problem


bfrancis2813
March 27th, 2007, 08:08 AM
When I add a new contact the first and last name are separated by a comma. Is there a way not to add the comma and to just add it to the end of the email address like the other existing emails.

Thank you,

Brian

kas
March 28th, 2007, 12:18 AM
Hi bfrancis2813,

I'm not exactly sure what you mean by "when you add a new contact".... are you referring to the widget?

You can manipulate the data that comes back from the widget such that you can have it appear the way you want by writing code in onABCommComplete(). What you do with it is up to you.

Eg. Here's a start...

function onABCommComplete(data) {
// called when user completes the widget; data is [[name1, email1], [name2, email2], ...]

if (data) {
var nameAndEmail = data[0];

if (nameAndEmail.length > 0) {
setValue('txtNameRecip', nameAndEmail[0]);
setValue('txtEmailRecip', nameAndEmail[1]);
} else alert('no namesAndEmails[0]');
} else alert('no data');
}

//--></script>


Kathy

bfrancis2813
March 28th, 2007, 07:03 AM
Yes, I'm referring to the widget.
When I load addresses from Outlook and then add a contact this what is in the hidden text box:

"\"Ronnie Rastogi\" <kazmerbn@yahoo.com>, \"Sonny Dixon\" <sonny@vdppro.com>, \"Francis, Brian\" <bfrancis2813@netzero.com>"

The last address name has a comma between the first and last name.

Brian

kas
March 28th, 2007, 01:29 PM
Hi Brian,

Thanks for the details.

I tried to reproduce it at www.plaxo.com/api/widget_demo with my account reading from Outlook (as a csv import) and was not able to.

Are you able to reproduce it there? If yes, I'll send your problem to QA. If no, we'll to look at where you are running the widget.

Thanks,

Kathy

bfrancis2813
March 29th, 2007, 06:41 AM
Kathy, I was able to reproduce it at the demo site. When I try to add a contact using the Add Contact button. The address has a comma in the name area. It looks like the widget is formatting the name from what I put in from Brian Francis to Francis, Brian. So this makes it inconsistent with the other name format which has no comma.

"Francis, Brian" <bf@aol.com>

Thank you,

Brian

kas
March 30th, 2007, 04:25 PM
Hi Brian,

We need to look at your account to reproduce the problem. Send me a private message if you want us to look into it. We'll need your Plaxo account name.

Kathy