Appnitro Software Forums » MachForm

Print button before submitting?

(6 posts)
  • Started 2 years ago by jeffsobczak
  • Latest reply from teamwebb2008

  1. I have created a registration form and would like to allow the user to print the form before they submit it. After they hit the submit button the info is gone (yes I know it is emailed to me and I can retrieve it but they need to mail it in with their payment)

    Posted 2 years ago #
  2. I found this solution provided by yuniar, but I can't make it work.

    <script type="text/javascript">
    function zPrint(oTgt)
    {
    oTgt.focus();
    oTgt.print();
    }
    </script>

    <body>
    <iframe name="myFrame" id="myFrame" width="600" height="400"
    src="http://www.example.com/frame.html"></iframe>
    <input type="button" value="Print IFRAME" onclick="zPrint(myFrame);" />
    </body>

    Do I add this as a second iframe or place the iframe contents inside the machform iframe?
    Do I add name="myFrame" id="myFrame" to the machform iframe?
    Do I replace "http://www.example.com/frame.html" with "http://mysite.com/machform/embed.php?id=6" (the number of my form)?

    Posted 2 years ago #
  3. Sorry folks, MachForm wasn't designed to have this feature.
    I can only suggest to turn on form reviewing option, so that your user can print it from there.

    Posted 2 years ago #
  4. I have a couple of suggestions to overcome this problem:

    1) As Yuniar has said enable the Review option and users can print that page.

    2) Additionally, to make it easier for the user, add an instruction to print the page of information by adding a comment to the form page using a Section Break and something like: "Once you press CONTINUE, please review the information and make any changes and print a copy for your records.

    Posted 2 years ago #
  5. Excellent. Works for me.

    Posted 1 year ago #
  6. This is what I put in my bottom section or if unable to do so, I put it in my submission box: Once you press CONTINUE, please review the information and make any changes and print a copy for your records (using your browser's print button).

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.