PDA

View Full Version : Required Field Validation and Print



dmwhipp
05-30-2007, 08:45 PM
1) Script Title: Required Field(s) Validation

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/requiredcheck.htm

3) Describe problem: I have a test page with this form here:
http://www.floridacompact.org/~floridac/irsl/formonly2.html

We would like to add a "Print This Page" script directly above the Submit Form button with text along the lines of "Before clicking Submit, please print a copy of this completed form for your records."

I tried the cross browser print page javascript here at DD, but when I add that, the required field validation ceases to work and, more importantly, the Submit Form no longer works.

Any ideas on how to work this?

Thanks,
Deborah

dmwhipp
05-31-2007, 02:26 PM
Found that by putting the javascript in the document heading the Print works.
Deborah