HobartG Posted April 5 Share Posted April 5 I am searchiing for a means to create a button on a form that will print instead of Submit a completed form. Is there a piece of code I can use or a way to manage that? Thanks Link to comment
tuanphan Posted April 7 Share Posted April 7 You mean replace Submit button with a Print button > When users click it >> Print page? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
HobartG Posted April 7 Author Share Posted April 7 Basically Yes. Maybe not Print page but Print form. I would guess that either might work. I have a contact form that I am looking at giving the user the option to fill out the form and print it as opposed to submitting it. We have User that are reticent to pay online so we have a Contact form they can fill out and make reservations, then pay at the door of the event. I would like to maybe change that to fill out, print and mail with check. That eliminates the having to keep track of who hasn't paid and having to accept cash/checks at the door to our event. If that all makes sense Link to comment
HobartG Posted April 7 Author Share Posted April 7 I have found the code to create a Print page button. But I would prefer a solution that just prints the form if posible <buttononClick="window.print()">Print</button> Link to comment
tuanphan Posted April 10 Share Posted April 10 We can use CSS code to remove some elements from Print Mode, However, if doing this, Whether you click the Print button from the Form, or you intend to print the entire page, it will only display the form only If you still want to continue, let me know, I will give you CSS code Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
HobartG Posted April 10 Author Share Posted April 10 Please, if you're willing to share the code. I'll be happy to try it out We are not prining anythiing else on the site, so it shouldn't affect anything other than this one page and form. Link to comment
tuanphan Posted April 13 Share Posted April 13 On 4/11/2024 at 6:49 AM, HobartG said: Please, if you're willing to share the code. I'll be happy to try it out We are not prining anythiing else on the site, so it shouldn't affect anything other than this one page and form. Can you share link to page where you use form, I can check code to hide all elements except form block in Print mode Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
HobartG Posted April 13 Author Share Posted April 13 The customer has told me that they changed their mind and now no longer wish to print the form. I appreciate you assistance with this though and would still be interested in the code for future reference on other projects. Here is the link to the page. https://nebraskagolfhalloffame.com/mailed-reservations tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment