Expand my Community achievements bar.

Auto Table Row Creation Based on User Input


Level 1

Hello.  I'd like to do soemthing simple but I can't figure out where to start.

I'd like to have the rows on a table adjust based on a users input value on another table.  For example, one field of table 1 asks the user to enter the number of "Samples".  Based on the number they enter in table 1 the rows will increase in table 2.   Basically I am trying to prevent the need to have the user add/remove rows (which I already figured out to do).  If they enter 100 in the "Samples" field then 100 rows will show up on the table.   If they adjust it down to 50 rows then the corresponding table would reduce to 50 rows.

Thanks for any help.


3 Replies


Level 10


this can be done with a small script in the change:Event of the field for the number of samples.


Level 1

Thanks for the script.  I am having a problem getting it to work though.  I deleted all but one row of the form in Table and and added your script ot the change instance of the Samples input.  I don't get any errors but the table does not increase in size.  How is this supposed to work?