This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
Print on Confirm Page the Form
Started 11 years ago by semaf | 1 post |
-
Hey Guys,
I found a way to Print the Form in confirm Page with a JavaScript. Check here: http://www.808.dk/?code-javascript-print
I was trying to add the JavaScript directly into the file view-functions.php
$entry_data = '<script type="text/javascript">
var win=null;
function printIt(printThis)
{
win = window.open();
self.focus();
win.document.open();
win.document.write('<'+'html'+'><'+'head'+'><'+'style'+'>');
win.document.write('body, td { font-family: Verdana; font-size: 10pt;}');
win.document.write('<'+'/'+'style'+'><'+'/'+'head'+'><'+'body'+'>');
win.document.write(printThis);
win.document.write('<'+'/'+'body'+'><'+'/'+'html'+'>');
win.document.close();
win.print();
win.close();
}
</script>
$entry_data .= '."\n";
The Page keeps blank. Adding the script into a JS File did not solve the Problem. Maybe somebody can work with me together to have this Features.
regards
semafPosted 11 years ago #
Reply
You must log in to post.