PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________

Reset fieldsThe usual way is to use the Reset Form facility. Field
Properties - Actions tab - Mouse up - Add - Action....select Reset Form.

Regards

Andrew
----- Original Message ----- 
From: Marston, David
To: Pdf-Forms (E-mail)
Sent: Monday, March 22, 2004 12:02 PM
Subject: [PDF-Forms] Reset fields


Hi,
I am trying to find a way to clear all fields when a document closes. I
would like to do it on an exit button which closes the document and at the
same time clears any fields where data has been entered.
I've tried the following using a document level javascript clear fields
function - which I call on a button mouse up.
function ClearFields ( )
{
var a = this.getField("Customer Name")
a.value = ""
var b = this.getField("Salesperson Name")
b.value = ""
var c = this.getField("Location")
c.value = ""
I've called this from the mousedown, and the menu item "exit" on the mouse
up. But 1. I get the do I want to save changes dialogue box (which I would
rather not have) and the clear fields doesn't work!!!
What's the best way to achieve this?
Thanks, David.



To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html

Reply via email to