Previous | Next | (P-PDF) Forms & FDF
Topic: Data is being retained
Conf: (P-PDF) Forms & FDF, Msg: 27416
From: Jub
Date: 9/20/2001 10:55 PM
If the field is hidden I do not think that it will ever get the focus, which is why your on focus/on blur event code is not being hit.
You could use a page open action, but I have found this event to be unreliable.
Another approach might be to define a document level javascript which resets the form, and which immediately calls itself.
This way, as the doc level JS's are loaded the form will be reset...
///////////
function ClearForm()
{
this.resetForm();
}
ClearForm();
///////////
This way you could also use this function elswhere on your form if appropriate...
However be aware that if your form is being viewed in a browser I think that if the user navigates BACK or FORWARD to another page and then returns to your form it will reset itself - which might be very annoying!
Hope this helps.
Jub