javascript-api icon indicating copy to clipboard operation
javascript-api copied to clipboard

Custom contact field object key

Open nodesocket opened this issue 8 years ago • 1 comments

I have a custom field for contacts defined as:

screen shot 2017-02-21 at 9 11 48 pm

Howerver, what is the object key in JavaScript when creating a contact? I've tried:

var contact = {};
contact.plan = 'Unsure'; // does not work
contact.plan_interest = 'Unsure'; // does not work
contact.planInterest = 'Unsure'; // does not work

nodesocket avatar Feb 22 '17 05:02 nodesocket

this works:

contact['Plan interest'] = 'test';

KuCiWEB avatar Nov 20 '18 07:11 KuCiWEB