Avatar

Level 6

Hello,

I know this is a simple JavaScript, but how do you reset a table's row count to the initial count after pressing a Reset button?  Currently, I have 3 rows as the initial count (as indicated in the Binding tab), but if I go and add 2 addition rows (thereby bringing it to 5),  then press the reset button to reset the entire form, all the data clears as expected, but the row count says at 5 instead of defaulting back to the initial row count of 3.

I tried adding  xfa.layout.relayout(); to the rest button script to no avail.

I presume need to use a script to trigger the row count (something count == 3)...I just don't know what script to use.

Please advise.

Thanks.