creating a record from zoho creator to zoho crm

creating a record from zoho creator to zoho crm

I created a web form in Zoho Creator, customized exactly how I need it (I have the free edition).  Then I went into script and in the onSuccess area I added the deluge script to update the fields I want added into the CRM.  I copied it exactly as the how-to guide from your page describes.  Then I clicked on embed in my site, since I have the free edition it will only let me make the app private but for testing purposes this is okay for now.  The problem is when I embed the code into my site, the form is beautiful and when a user enters their information the functions work and the information is put into zoho creator; however, it is NOT put into the CRM.  I have already allowed edit access and I would appreciate a response to this.  here is my deluge script:

Leadinfo = { "Last Name" : input.Last_Name, "Company" : input.Company, "First Name" : input.Name, "Email" : input.Email_Address, "Phone" : input.Telephone, "Product" : input.Product1, "Lead Source" : "Advertisement", "Campaign Source" : "Website Contact us Form", "Comments" : input.Comments };
crmResp = zoho.crm.create(("Accounts"), Leadinfo);


Also, I do not know if this matters but I did not put every single field in my form and the fields are not in the same order as they are in the form I made.

Thank you for any assistance