Sending a completed web form builder...

User 2159470 Photo


Registered User
10 posts

I have several web forms up and running and I would like to send the filled out forms information to a printer instead of an email address. Case in point, a maintenance required form needs to be sent to the printer in the maintenance area as a repair ticket not to an email since they do not have a computer in the area only a Wi-Fi connected printer. The filled out form prints out and the maintenance worker takes is as a maintenance ticket to do the repair work.
User 2159470 Photo


Registered User
10 posts

Is that possible?
User 187934 Photo


Senior Advisor
20,271 posts

It could be a simple as this. Replace the submit button with a print one.
<a href="nojavascript...window.print()"><img src="images/print.jpg" alt="print this page" id="print-button" /></a>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2159470 Photo


Registered User
10 posts

OK I added the code to the html page created by WFB (figured quick and simple) where the submit button code is stored and it added a "Print This page" link but that is not what I am trying to do. What I want to do is have the person who is filling out the form click on "Submit" and in addition to sending the completed form to email address(s) like the ones you add in "Confirm" and "Notifications" under the "Settings" tab have the completed form also route to a designated printer (IP address) that prints out the submitted form information.

I am thinking that some line of code might be needed in the PHP file associated with the from. I don't think it would go in the HTML code since looking it over that seems to be more of a capture tool then a posting or routing tool. But the form.cfg.php sure looks like it controls where the filled in information/emails go (confirmation to the person who filled out the form and to a designated recipient email address) so adding a line of code in the form.cfg.php file that routes the filled out information to "printer IP 192.12.234.45" in addition to the emails address is the way to go.

What do you think?



User 187934 Photo


Senior Advisor
20,271 posts

Try putting this in the confirmation page.
<script>
window.onload = function() { window.print(); }
</script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2159470 Photo


Registered User
10 posts

Sorry been playing with your responsive email program, pretty cool!
OK when you say "Try putting this in the confirmation page" are you referring to WFB - Settings - Confirm page tab - Confirmation message (the code in there)?
User 187934 Photo


Senior Advisor
20,271 posts

John Silling wrote:

OK when you say "Try putting this in the confirmation page" are you referring to WFB - Settings - Confirm page tab - Confirmation message (the code in there)?

Yes.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.