From your example I figured this out. Works great. However, not quite
what I am looking for. Example: I have a form with 100 fields. I want to
be able to clear (reset) 98 of them, while leaving the other 2
untouched. Can we modify this script, xfa.host.resetData() to exclude
the 2 fields, rather than modifing it to include the other 98? What I am
looking at here is the time factor in creating the custom button.