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:
- leadinfo = {
- "Sale Name" : input.first_name + " " + input.last_name,
- "Closing Date" : input.date_field,
- "Stage" : "Lead",
- "Email" : input.email,
- "Phone" : input.phone,
- "Mobile" : input.Mobile,
- "Description" : input.company_name,
- "Lead Source" : "Online Contact Form",
- "Status" : "Never Contacted",
- "Marketing Campaign" : "Referral Program" };
- crmResp = zoho.crm.create("Potentials", leadinfo);