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

Hi,

Some observations,

(1) I think it should be => " if (this.getField("L_Opened").value != "Yes"){ ....".

(2) The value of field "L_Opened" can possibly be cached too, and that will defeat the approach.

(3) Sometime the "resetForm" still won't clear the cached contents at the document opening when it happens too fast.


Jim Su [EMAIL PROTECTED] EFOVIEW.com

###






From: "Nicholas Jon" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Re: [PDF-Forms] Multiple Page Forms
Date: Thu, 25 Sep 2003 10:29:29 -0700 (Pacific Daylight Time)

Okay gang, let's tackle one issue at a time here.

The first issue is a common one in Acrobat, that being trying to keep data
private and NOT having the next user (on the same computer) see the previous
users data.


There is a Simple solution to this:
Add the below javascript (js) to the page open "action".

if (this.getField("L_Opened").value == "Yes"){
    this.resetForm();
    this.getField("L_Opened").value = "Yes";
}

You will also need to add a hidden field with called "L_Opened" and set the
default value to "No".

When the page is first opened, it will check to see the value of the
L_Opened field, if its NOT "Yes" then the form will be reset, once its reset
it also changes the value to "Yes" and then when you come back to that page
it will not reset the entire form again.


~nicholas

~~~~~~~~~~~~~~~~~~~~~~~~~
Nicholas Jon
Chief Technical Officer
We Do That! Technologies
Long Beach, Ca
Phone 562.366.2608 PDT
www.WeDoThatTechnologies.com
~~~~~~~~~~~~~~~~~~~~~~~~~

_________________________________________________________________
Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com



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



Reply via email to