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.

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

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?