I've used the Reset Form button from the Object pallette, and it
modified it to give a warning and a chance to cancel if you don't want
to clear the form. But it doesn't matter whether you choose to or not,
it still clears the form.Here's my code:if(xfa.host.messageBox("This
will clear all data from the fields and reset defaults. Are you sure?",
"Clear all form fields",2,2)){
xfa.host.resetData();xfa.form.remerge();}What have I done
wrong?Thanks,Peta