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.
