Skip to main content
kellyw6962
Participating Frequently
April 10, 2019
Question

Clear Form After Sumbmission

  • April 10, 2019
  • 1 reply
  • 1646 views

I have a form that I would like people to fill out and click the submit button, which emails the form to me, but I want the form to clear after clicking the submit button.  Is there a way to clear a form after submission?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 10, 2019

You can do it using a script, like this:

this.submitForm({cURL: "mailto:me@server.com", cSubmitAs: "PDF"});

this.resetForm();

Thom Parker
Community Expert
Community Expert
April 10, 2019

Or you can do it without a script,  by just adding a Reset Action after the Submit Action.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
April 10, 2019

True, but then the order in which the actions are executed is not guaranteed. I've seen cases in which the second action got executed before the first one, which you don't want if you're submitting a form and you want it to keep its data in tact...