Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Auto Table Row Creation Based on User Input

Avatar

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.

J

0 Replies

Avatar

Level 10

Hi,

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

Avatar

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?

Jesse