Highlighted

Reset Instances with Reset button

Avatar

23-12-2008

How I'll reset repeating fields(instances) with a Reset button?

If I have add repeating fields(instances)regular Reset button deletes all entered data, but does not work for the repeating fields!

Thanks

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

05-01-2009

The reset button is supposed to restore the form to its original state. If you have added repeating fields then they were not there at the beginning ...so it is doing what it is supposed to do.
Highlighted

Avatar

Avatar

yoyo112673

Avatar

yoyo112673

yoyo112673

26-08-2010

Hi Pguerett, is there a way to hide back the forms/objects that were intially hidden and were displayed using a check box once the reset button is cliked on? For instance, if I have a form that has check box that displays certain hidden fields or subforms when checked, the reset button does clear the check box but does not hide back the displayed items....

Thank you for your help!!!

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

27-08-2010

If you enter the command xfa.host.resetData() that should restore all fields back to their original state. You can pass into the command only the objects that you want to reset if you want to only reset a select few.

Paul