Forums

Print/Download a filled in form as .PDF

inosense 27 Jan, 2008
Please pplz if any1 knows how to U will save me lot of time. How to print/download a form that has been already filled with data as a .pdf file.

Situation: user fills the form and gets an option to print it out/download it as pdf so he can sign it by hand and send it over regular mail service back to us with signature. The downloaded pdf has all the fields he filled in on the web and he only needs to add signature...

Thanks a million!
GreyHead 28 Jan, 2008
Hi inosense,

I'm sure that you can create pdfs in Joomla, I've never had to do it and wouldn't know where to start.

You could create a 'form' in ChronoForms that has no fields - just displays the data, put it into a standard content page with the mambot - then use the standard Joomla PDF button to create a PDF. Not tested but should work OK I think.

Bob
inosense 28 Jan, 2008
Thanks for the reply. I know how to display tables from database. But I know how to display them all not a single users input unfortunately.

Now, I can display in a content page the form with no fields but where will I retrieve the data user inputed from?

For example, can I put a code into "On Submit code - after sending email:" section that can display the entered data in tables and not in fields "only for this user" that submitted the form.

I would like to do it so user can print it out or put in .pdf.

Actually I'm only interested in how to enable user to print the complete and already filled in form and put his signature on it so he can send it over classic mail service...

It is a web design project I'm doing for a "Project management Association" in my country.

And the form is a submission for new members. One part is to have members in a search able database for preview (i got that one) and another part is that future members have to send signed form through regular mail service. So i was thinking if it would be possible for them not to have to fill in the form twice but only once online and then print it out for signing. It does not have to be a pdf.

Any help appreciated. If there is no Croatian language for Chronoform I would be more then happy to translate it as a thank you for your help.

I'm working in Joomla 1.5, Croatian language.

Post edited by: inosense, at: 2008/01/27 21:38<br><br>Post edited by: inosense, at: 2008/01/27 21:38
GreyHead 28 Jan, 2008
Hi inosense,

Here's some brief notes. I can write up a longer version tomorrow maybe.

Create your form 'Input' as you have now and set it to save data to the database.

Create a new form 'Confirm' that looks up the data in the database then shows it in display form only. So if form 'Input' has
Name: <input name='name' value='' /><br />
then the 'Confirm' Form has
<?php
. . . get data for this user from the database . . .
?>
Name: <?php echo $row->name; ?><br />


Create a new content page in Joomla and embed the Confirm form into it using the ChronoForms mambot. It might read
<p>Please read the information from your form below carefully. If it is correct then print out a copy of this page using the print or pdf buttons, sign it and mail it to . . .</p>
<div style="border:1px solid black; padding:6px;">{chronocontact}confirm{/chronocontact}
</div>
<p>Sign here . . .</p>
Bob
bob1138 11 Feb, 2008
I've haven't had much luck with getting the completed forms to print, did you have a more detailed method or a different way of doing it. Thanks for a great addition to the Joomla community.
GreyHead 12 Feb, 2008
Hi bob1138,

Sorry, no better suggestions at present.

Bob
bob1138 12 Feb, 2008
I am able to display the data on a "thank you" page but when print is selected will only print the titles not the data....
GreyHead 12 Feb, 2008
Hi bob1138,

Interesting, I think I've printed pages OK. I'll take a look tomorrow.

Bob
bob1138 12 Feb, 2008
ok so i have a work around on the printing by using a javascript on the "thank you" page but the data is going to the form and not the database this is an example of the code i'm using
<tr><td colspan="10">Category: <?php echo $_POST['category']; ?></td></tr><br />
<tr><td colspan="10">Program Title: <?php echo $_POST['program_title']; ?></td></tr>
how can i get it to both the "thank you" page and the database...

Thanks for looking and responding to the earlier posts<br><br>Post edited by: GreyHead, at: 2008/02/12 15:52
GreyHead 12 Feb, 2008
Hi bob1138,

I'm not clear what you are doing here. If you enter code in the OnSubmit after-email box it will show up on the ThankYou page AND the data should be saved in the database - but do not redirect from the OnSubmit box (if you do then the data save is skipped).

Bob
bob1138 13 Feb, 2008
Thanks got it figured out! I have one last question that I'll post as a new topic
koolie 13 Oct, 2008
Hi Bob,

Could you possibly post what it is that you did? I am having this same problem and have no idea on how to get around it.
This topic is locked and no more replies can be posted.