Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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