Client Script Error - Cannot read properties of undefined (reading 'CRM')
Hi Guys
I have a custom form, and I have a client Script set for onLoad of the new form.
Below is the script I have defined and the error:
Cannot read properties of undefined (reading 'CRM')
See Screen Shot Attachement for Details.
Here is the Script:
log("Setting Fields to Defaults");
ZOHO.CRM.UI.OnLoad(function(data) {
ZOHO.CRM.FIELDS.setValue("Photo_Hours", 0);
ZOHO.CRM.FIELDS.setValue("Photo_Pay_Rate", 0.00);
ZOHO.CRM.FIELDS.setValue("Tagged_Quantity", 0);
ZOHO.CRM.FIELDS.setValue("Tagging_Pay_Rate", 0.00);
ZOHO.CRM.FIELDS.setValue("Pay", 0.00);
ZOHO.CRM.FIELDS.setValue("Estimated_Amount", 0.00);
});