Menu

How To Print A Form Before Submitting

Help
2009-05-28
2013-06-03
  • Max Balandin

    Max Balandin - 2009-05-28

    The users  want the ability to print their input before clicking on the "submit" button. window.print javascript works, but the result is too long - about 4 pages.
    I would like a function, wherein only the form input text is printed (without having to print the sidebar,menu etc etc) .
    Is it possible? Please, could you point me some source where I can find a solution.

    Thanks in advance.

     
    • TNTEverett

      TNTEverett - 2009-05-28

      Why not just "File/Print" from the web browser?
      The problem you have is that the data has not been captured yet by submitting the form.  There is no easy way to get the data to reformat it except using something like javascript.  Unfortunately this is probably going to be custom scripting which is not included in phpFormgenerator.  If you can even find something like this on the web it my also be something that is not generic enough to just include in your form page. 

       
    • Max Balandin

      Max Balandin - 2009-05-28

      Yep, I understand that there is no easy solution. :( That's why I was asking.

      Currently, I simply modified confirmation file with <?php  echo $_REQUEST['field_##'];?> and window.print javascript link. At least it's better than nothing.

      Thanks a lot.

       

Log in to post a comment.