-
1. Re: Unique Numbering/Add Subforms
paulk07 Nov 20, 2009 11:44 AM (in response to meem23)Wow. I'm no programmer but I've been researching this. With no responses, there maybe no solution. There is a script to count the # of instances of adding a subform:
BodyPage1.RepeatingSubform.instanceManager.count
Also a script to add page numbers:
this.rawValue = xfa.layout.page(this);
But I don't think that will serve your purpose. I'm playing with these to see if it can work.
-
2. Re: Unique Numbering/Add Subforms
meem23 Nov 20, 2009 11:56 AM (in response to paulk07)I found a script that worked with the Quantity field (see below), however, I'm still stumped on how to do the unique numbering.
var numField = this.rawValue;
var count = xfa.form.SF0273.Ticket.Page1.Form1.all.length
var t;
var r=0;
if(count > 1){
for(t = 0; t < count-1; t++){
xfa.form.SF0273.Ticket.Page1.Form1.instanceManager.removeInstance(1);
}
}
for(t = 0; t<=numField -2; t++){
xfa.form.SF0273.Ticket.Page1.Form1.instanceManager.addInstance(1);
}
Thanks for your response and help.
-
ticket2.pdf 142.1 K
-
-
3. Re: Unique Numbering/Add Subforms
paulk07 Nov 26, 2009 9:37 AM (in response to meem23)I haven't given up. Posted this elsewhere in hopes of a solution. I'm
thinking it can be done.

