- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi Nicola,
It would be the same basic approach - click event of reset button:
// General reset
xfa.host.resetData();
// Hide subform
page1.Subform2.presence = "hidden";
The trick is to make sure that your relative reference from the reset button to the subform is correct. Check out this example here about referencing objects, if you are having difficulty: http://assure.ly/kUP02y.
It all depends on how you are naming your pages and subforms AND if there are multiple subforms with the same name.
Hope that helps,
Niall