I'm trying to modify an existing invoice template using LiveCycle Designer 8.0. The template has a row that I use to select an item. When viewing in LC Designer, I see just one row (has "+" and "-" boxes), but when I view it in Acrobat there are 7 rows, which forces 2 pages. I can delete one of the rows by clicking "-". However, even after saving after the correction, the 7th row appears the next time I open the file. Is there a setting somewhere so I can limit the number of rows?
I also am using Acrobat Pro 9.0 by the way.
Thanks for your help!
Set Min to 1 and Max to something else.
To delete a single row you should put the "- button" to the first row with a JS.
Every new row that have been created will have this button and by clicking on it you delete always the current one only.
// Invoke the Instance Manager to remove the current instance of the Row subform.
RowName.removeInstance(this.parent.index);
// Invoke the recalculate method to update the form calculations.
xfa.form.recalculate(1);To add a rows use a "+ button" that you put into the headline of your template (not into the row).
Every click adds a new row at the bottom of your template.
// Invoke the Instance Manager to add one instance of the Row subform.
Template.RowName.addInstance(1);
//Invoke the recalculate method to include the field values from the added row in calculations.
xfa.form.recalculate(1);
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs