Hi, I have a button with this on the click event:
xfa.host.resetData();
However, there's one field that related to form mechanics and not the user interface that calculates a number of days. I want that calculation to remain after resetting all form fields. How can I most efficiently do this?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
One workaround is to declare a variable with the value of the particular field. Then reset the form. Then reassign the particular field with the variable:
var vField = TextField1.rawValue;
xfa.host.resetData();
TextField1.rawValue = vField;
Hope that helps,
Niall
Views
Replies
Total Likes
I'm guessing that a for loop will do the trick. For any field that is "open", reset. My Calcuated field is "readOnly". I'll implement this and post my results.
Edit: actually, since my calculated field is on its own page (no user input there) I'll make my loop apply for any field not on that page.
Views
Replies
Total Likes
Hi,
One workaround is to declare a variable with the value of the particular field. Then reset the form. Then reassign the particular field with the variable:
var vField = TextField1.rawValue;
xfa.host.resetData();
TextField1.rawValue = vField;
Hope that helps,
Niall
Views
Replies
Total Likes
That worked perfectly, and was much simpler than the solution I was envisioning. Thanks!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies