Expand my Community achievements bar.

Automatic Serial Number for Dynamic SubForm

Avatar

Former Community Member

HI,

what is the javascript code for repeating the Serial Number in a dynamic subform from 1 to Number ,which is given in text field which creates that many rows  automatically  ?

1 Reply

Avatar

Level 3

From what i could understand, you want your form to have as many rows as the serial number.

And the serial no. will reside in a text field.

refer to the instanceManager function in designer's Scripting reference help,  which creates a new instance of a table row.

once you figure out how to create once instance, then you can wrap that in a loop.  Read the rawValue of the SerialNumber text field, and run that loop iteratively.