Display and email generated PDF
Hi, I've got a form that an end user is completing in the browser. I want them to click the "submit" button, have a PDF get generated and displayed to the end user for printing and have a message replace the form the end user was on.
The form action is to another page (requestp.cfm) where a success message is suppose to be displayed in the browser and then calls a third page (makefile.cfm) that actually generates and displays the PDF. I know the cfcontent page causes other code to be ignored but I was hoping that by calling the pdf generation in a third file after all my HTML code that it would work as desired. Instead, the PDF opens in a new spawned window and the original form remains in the main browser window.
The requestp.cfm is:
<p>Success message here</p>
<cf_makefile id=#id#>
And the makefile.cfm ends with
<cfcontent variable="#test#" type="application/pdf" reset="No">
which I guess halts all processing and therefore never returns control to requestp.cfm, right?
Any suggestions on how to accomplish what we're looking for? So far my only other idea is for requestp.cfm to have a "Click here to print your request" link which seems lame.
TIA,
Kiyomi
