Creator Form -> Potentials

Creator Form -> Potentials

Hi,

I am trying to create a form when upon completion a new "potential" is created in Zoho CRM. In my implementation, the potentials tab has been renamed "Sales".

When a form is submitted, nothing appears in Zoho CRM. I think the problem relates to the mandatory Closing Date field. I don't think the formatting is correct for it to link correctly into the CRM.

Can someone advise me? Here is the script I'm using:

  1. leadinfo = { 
  2.       "Sale Name" : input.first_name + " " + input.last_name, 
  3.       "Closing Date" : input.date_field,
  4.       "Stage" : "Lead", 
  5.       "Email" : input.email, 
  6.       "Phone" : input.phone, 
  7.       "Mobile" : input.Mobile, 
  8.       "Description" : input.company_name, 
  9.       "Lead Source" : "Online Contact Form", 
  10.       "Status" : "Never Contacted", 
  11.       "Marketing Campaign" : "Referral Program" };

  12. crmResp = zoho.crm.create("Potentials", leadinfo);