Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Removing and adding back last row in table

$
0
0

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) ;


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>