This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Print button before submitting?


  1. jeffsobczak
    Member

    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 16 years ago #
  2. toloko
    Member

    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 16 years ago #
  3. yuniar

    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.


    MachForm Founder

    Posted 16 years ago #
  4. AMurray
    Pro Member

    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 15 years ago #
  5. teamwebb2008
    Member

    Excellent. Works for me.

    Posted 15 years ago #
  6. teamwebb2008
    Member

    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 15 years ago #

RSS feed for this topic

Reply