Skip to main content
September 10, 2008
Question

Help "Clear Form" PDF

  • September 10, 2008
  • 1 reply
  • 651 views
Hi,

I created an PDF form to post at the web, but for some reason when I finish to fill the field and close it, all my info still there. So what I would like is to make the PDF form clear/reset after the user close the form. Any help will be appreciated.

Thank you in advance.

M
    This topic has been closed for replies.

    1 reply

    September 18, 2008
    You can put this
    xfa.host.resetData();

    either in the PreSave event or the docClose event (I prefer the preSave as I do not want any form info saved ever)

    So, in the script Editor, my entry looks like this:

    ----- topmostSubform::preSave - (JavaScript, client) -----------------------------------------------

    xfa.host.resetData();