Adding rows to subform using script

Adding rows to subform using script

Hi Zoho,

I have a form, stating term length in years (for example, 5).
In the subform I have two fields: "End Of Year X" and "Amount".
I'd like to have rows added to the number of the terms length.
(5 years = to have 5 rows, without the user having to add / delete).

I Could not find an "Add Row" syntax....
How can I do this?

Thanks!

Ravid