I am trying to auto-populate four fields (First_Name, Last_Name, Email, Phone) in the Leads module from a lookup field connected to the contacts module.
Event Type: Field Event Field: Existing Client
Event: onChange
I've fetched the contact record ID but I'm guessing I cannot set the field value how I have.
var contact_field =ZDK.Page.getField('Existing_Client');
var contactid = contact_field.id;
var contactinfo =ZDK.Apps.CRM.Contacts.fetchById(contactid);