Skip to main content
Known Participant
September 26, 2013
Question

Clearing form fields in a PDF

  • September 26, 2013
  • 1 reply
  • 756 views

I am using Microtype's TimeSavers and SP Form assistant to create forms and calculators in my FrameMaker documents. Is there a way to add an extendscript that will reset/clear the fields when the PDF is opened each time? It is going to be part of a book PDF on a server, so it's going to be accessed by many people. I need any fields to be cleared/reset on open so that each time it will be cleared for the person opening the PDF.

Thanks, Gary

This topic has been closed for replies.

1 reply

Arnis Gubins
Inspiring
September 27, 2013

Gary,

I think that you'll have to do this on the Acrobat side by embedding a javascript routine in your form(s).

There's an overview tutorial at AcrobatUsers on using Javascript with Forms, see: http://acrobatusers.com/tutorials/using-acrobat-javascript-with-forms

IIRC, you'll need to create a "Document Level Script" (see: http://acrobatusers.com/tutorials/js_document_scripts) that contains:

// reset the form

  this.resetForm();

For more PDF scripting tips, check out Thom Parker's PDF scripting site: http://www.pdfscripting.com/public/main.cfm