Expand my Community achievements bar.

Help Me! -- Reset Subforms except one

Avatar

Former Community Member
I have a dynamic pdf fillable form with 4 subforms. I need to reset all fields within the 3 subforms but not the last one. I can do it by individual fields but it is alot per subform.



The reset button is in a subform by itself and below it are the 4 subforms. I have tried different variations to make it work..



----- form1.page1subformflow.header.ResetButton1::click - (JavaScript, client) ---------------------



xfa.host.resetData("topsubform"); this will not work, it clears the whole form. If I put in the full SOMexpression it still will not work.



Please help!



Thanks
3 Replies

Avatar

Former Community Member
I figured it OUT...now that's scary!!! It was too simple!

Avatar

Former Community Member
OK..I'll try...



The reset button was put on the outside of page1 which includes 4 subform



the reset button

----- form1.header.ResetButton1::click - (JavaScript, client) --------



xfa.host.resetData("form1.page1subformflow.topsubform,form1.page1subformflow.middlesubform,form1.page1subformflow.bottomsub");