Initializing the sub-form on the click of a button


i need initialize sub-form on click of button. please let me java scripts or methods achieve same.

rgds,
saravana

hello

i'm not sure if got right, if you're reffering adding new instance of subform, solution be:

an_xfa_traverse_to_desired_dynamic_subform.instancemanager.addinstance(1);
xfa.form.recalculate(1);

and save form dynamic form.

you need button delete unwanted subforms:

an_xfa_traverse_to_desired_dynamic_subform.removeinstance(parseint(this.parent.index));
xfa.form.recalculate(1);

remeber, if want work, delete row button shoould part of dynamic subform.

you use enumaration also, numeric field have put script thisone:

this.rawvalue = this.parent.index+1;

it should work. if have other q please let me know.

-------
livecycle developer
looking job :p


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments