Sub Form Insert code

Sub Form Insert code

Hi,

I need some support adding subform records through script.

would this be the way?

motherform_record = motherform [ID=<record_ID to add subform row to>];

insert into moderform_record.subform_name
       [
      Added_User = zoho.loginuser      
      field_1=<field_1>
      field_2=<field_2>
      ]