FP forms

J

Jack G

I'm new to FP forms. Is there a way to set up a "button" to allow people to
PRINT the form either before SUBMITTING or after being sent to the
confirmation page?
 
A

Andrew Murray

Jack G said:
I'm new to FP forms. Is there a way to set up a "button" to allow people
to
PRINT the form either before SUBMITTING or after being sent to the
confirmation page?

The user could just click the print button on their browser. A simpler idea
is to put a reminder on the confirmation page "Press Ctrl+P to print this
page for your records". This would be neater, since printing the page
before submitting will print the form elements and not look as neat.

To put in link or button to print the page (I'm sure this is an "IE Only"
thing, so it may not work in other browsers). I think the code is as below
(other members may correct me on this)

<a href="#" onclick="print.window();">Print Page</a> OR <input type="button"
value="Print Page" name="print onclick="print.window();">

For some browsers I believe you need to enclose the above line withinin
<form> and </form> tags (Firefox for instance), and use "OnSubmit" instead
of "OnClick". In IE, the stand alone line works. Again, other members might
correct me on this code here.

You might need to experiment a bit.

Hope this helps.
Andrew
 
J

Jack G

Thanks. . .the "reminder" suggestion will probably be the best bet for me.
Most of the rest of your suggestion went over my head pretty quickly!!
Another question:
When the user presses <ENTER> the form submits autiomatically (even though
it is incomplete). Is there a simple way to set it where the user must click
 
R

Ronx

Pressing enter will always submit the form (except when the field in
focus is a text area).
You can use JavaScript to capture keystrokes and filter out the chr(13)
keystrokes, or make the last field on the form a required field (use
FrontPage validation in Field Properties for this). The form will not
submit unless the required field is completed. Both methods will fail
if the browser does not support JavaScript.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top