Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Forms
Viewing all articles
Browse latest Browse all 61369

How to reset a subform to it's initial state ?

$
0
0

Hi,

 

I've been searching all over the forum for an answer to my question, but I couldn't find anything...

 

So basically, what I want to do is reset just a part of my form (I even want to reset the duplicated subforms I created).

 

So far, I tried this on a clear button :

 

var newXML = "<?xml version='1.0' encoding='UTF-8'?><form1></form1>"; // form1 is the root node of my form.

xfa.datasets.data.loadXML(newXML,1,1);

 

It resets ALL my form (the value in the fields AND the duplicated subforms).

 

How can I specify to reset only one section of my form ?

 

Thanks alot for you time and help


Viewing all articles
Browse latest Browse all 61369

Trending Articles