I have a form with a table and dropdown list. The number of rows in the table is set to whatever the number value is in the dropdown list. It works fine but when the user selects zero the last row is removed and it is not added back when a non-zero number is selected. I want the user to be able to select zero as an option to show no rows. How do I make it so the rows reappear when a non-zero number is selected.
Here is the code I have in the change event of the dropdown:
var iRows = xfa.event.newText;
TravelPlans.TravelTable.TravelRow1.instanceManager.setInstances(iRows) ;