My form starts with a header sub form with check boxes. The user checks whatever box they need and its cooresponding subform appears. Works great, right? The problem comes when it comes to resetting the fields. I hit the reset button and all of the data is cleared, HOWEVER the hidden fields are still visible? How do I reset it it ALL to look exactly like it is when you first open it? Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
You will need to explicitly reset the values of hidden fields. Go to the click event of the reset button and set the hidden fields to null. For example,
// form1.page1.ResetButton1::click - (JavaScript, client)
xfa.host.resetData();
TextField1.rawValue = null;
Steve
Views
Replies
Total Likes
You will need to explicitly reset the values of hidden fields. Go to the click event of the reset button and set the hidden fields to null. For example,
// form1.page1.ResetButton1::click - (JavaScript, client)
xfa.host.resetData();
TextField1.rawValue = null;
Steve
Views
Replies
Total Likes
Try setting the visible property to the fields you don't want to invisible:
fieldToHide.presence = "Invisible"
Awesome! They both worked for different fields!!!!! Thanks so much!
Views
Replies
Total Likes