Forums

Print form vs mail it?

jefferis 26 Jan, 2007
Hi, Newbie here. Trying to create a form that will allow the user to print it either from the browser or via pdf once it is filled out. I don't necessarily want them to be able to mail it. Is there a way to do that?

BTW, if you upgrade JoomlaBoard to the latest beta, they have fixed the Safari menu problem:


Max_admin 26 Jan, 2007
Hi, At the moment no, may be you can get an idea, for example you can use the pdflib to generate a pdf from the submitted results, use the onsubmit code to do this, I was planning to have some feature like this in the next version, I will keep this in mind😉

Thanks,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 28 Jan, 2007
Hi Jeff,

Those icons won't appear by defualt at the top of any component page, just content pages only😉

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
thoms005 10 Aug, 2007
Is there any chance you have added the ability to just print out a filled in form (with no email sent)?

I need to do this and the only thing I can think of (without you providing an easy way to do this) is onSubmit to store all the fields in the database and the write PHP to open a new window (or use the reply page) and read the fields fro the DB and recreate the filled in form. Then the user can use either the Joomla print (if results are in a content item) or the browser print function.

Any suggestion or ideas?

Thanks,
Carol
Max_admin 10 Aug, 2007
Hi Carol,

I can't think of an easy way to achieve this now, I will try to implement a feature to ease this in the next release, are you in bad need for this or it can wait some days ?

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 10 Aug, 2007
Hi Carol,

It's a bit late here now but look for my 'debug' hack in the forum here (posted twice in the last week or two). This shows the e-mail on the 'return page' and could easily be printed out.

Bob

PS I'll look it out in the morning.
thoms005 10 Aug, 2007
I need it in a week or so - not days. Thanks for your quick reply.

Carol
thoms005 10 Aug, 2007
I'm out the door myself. Thanks for the hack pointer. I'll check it out tomorrow.

Carol
GreyHead 10 Aug, 2007
Hi Carol,

This code will do the trick I think. Paste it into the 'On Submit code - after sending email' field on the 'Form Code' tab.
<?php
echo "<h4>E-mail message</h4>
 <div style='border:1px solid black; padding:6px;margin:6px;'>
 <p>From: $fromname [$from]<br />
 To:  ".implode($recipient,', ')."<br />
 Subject: $subject</p>
 $html_message<br /></div>";
?>
It just shows a copy of the e-mail on the form page once you have submitted the form. Very helpful for finding problems (and for test sites with no mailer) but will also let you print a copy of the form results. You may need to set the Form to Send Email but put a dummy address like [email]used@example.com[/email] in the e-mail field.

Bob
koolie 13 Oct, 2008
Hi Grey,

This is exactly what I was looking to do. Well, almost. Is there anyway to get this information to print?

Thanks
This topic is locked and no more replies can be posted.