Can't autofill subform with crm

Can't autofill subform with crm

I need to import product information from crm field and autofill the rest of the subform fields with this info.

So far:

crmresp = zoho.crm.getRecordById("Products", row.Product_Name_ID);
row.Product_ID = crmresp.get("Product Code");
 
And I put this under the crm field on user input.
Thank you.