Expand my Community achievements bar.

SOLVED

Is there a button to restore the form (dynamic/flowable) to its original state after data clearance?

Avatar

Level 3

I'm working on a dynamic PDF form with conditional actions. For instance, if "First" is selected from the dropdown, Textfield1 appears; if "Second" is chosen, then Textfield2.

0experience_1-1701278511568.png

 

 

I've a "Reset" button that clears all data. However, even though the dropdown shows nothing after a reset, Textfield1/2 still on.

0experience_0-1701278503118.png

 

 

I know we can set the visibility, but my actual form contains a lot of object and, I don't like to add them manually.

 

Is there any function to bring my form back to its original state, where all dependent objects disappear when I hit "Reset"? Or, do I need to write the hardcoded to banish them manually?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Use the below code after resetData()

 

xfa.form.remerge();

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Use the below code after resetData()

 

xfa.form.remerge();