View Full Version : Submit button perform 2 function

11-14-2008, 04:29 PM
Is there a way to have the submit button, when clicked, send the info, redirect to a new page and open a pdf file? Right now I have it so it send the form data and then redirects to a new page but I would like it to pop up a pdf file for them to print.


11-14-2008, 06:03 PM
If the new page is a specific page they only see if the form is successfully sent, you can just add the open new window function to that page.
<body onLoad="open new page with JS thingy in here">

11-14-2008, 07:26 PM

id do it that way

11-14-2008, 07:34 PM
not sure I follow:

It is a page they can only get to by completing the form. So, on the page that the form redirects to add this code to the body:

<body onLoad="http://fakesite.com/documents/fakedoc.pdf">

Am I understanding that? I have a feeling I'm not.

11-14-2008, 08:23 PM
You have to add a javascript function in there, that will open a new window.
DW has the openbrowserwindow or what it was called. Look in the behaviors panel.

11-14-2008, 08:25 PM
cool, I'll give it a shot - Thanks