Expand my Community achievements bar.

Reset Content in a Hidden Subform

Avatar

Level 1

I am creating a document with several subforms.  When a radio button is selected, one of the subforms is visible and the rest are hidden.


I am trying to figure out how I can reset the fields of a subform when it is switched from visible to back to hidden. If possible, I do not want to reset the whole document.


Is there a way to do this?


Thanks.

2 Replies

Avatar

Level 10

You can add the resetData() method to the script that hides your subforms.

Example:


xfa.host.resetData(xfa.form.form1.page1.subform2.somExpression)