These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

remerge or resetting the form layout

StevenD
Registered: Oct 6 2006
Posts: 368

If I have a form where the user has added more subforms. I want the form to be reset so that the initial number of sub forms that appear when the document is first open go back to that number. In other words when I click the reset button not only do I want all of the data cleared from the fields but the form should be reset to look the blank form did when it was first open.

I thought the 'xfa.form.remerge();' line of code would do this but nothing happens.

StevenD

My Product Information:
LiveCycle Designer, Windows
vd5283
Registered: Apr 10 2011
Posts: 2
Although this post is old, I am having the same issue. Was solution ever found?
StevenD
Registered: Oct 6 2006
Posts: 368
Sad to report that I didn't get this one solved.

StevenD

StevenD
Registered: Oct 6 2006
Posts: 368
Sorry. I take back what I posted previously (last night). I remembered a form that I must have gotten the remerge method to work with. Here is the code I used in a form about 5 years ago that I forgot about (out of sight, out of mind).

var newXML = "<?xml version='1.0' encoding='UTF-8'?>";
xfa.datasets.data.loadXML(newXML,1,1);
xfa.form.remerge();

I must have gotten some help from someone who knows this kind of thing better than I do because I'm not sure what is going on with the first and second lines. I wish I had commented these lines like a good programmer should.

StevenD