Announcement

Collapse
No announcement yet.

I need a "Print Form Script"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I need a "Print Form Script"

    I am in need of a "print form" script. Can anyone help me?
    I want to add a button to one of my forms giving the customer
    the capability of printing (after they make many selections within
    this form page) . Once they choose "Submit" it of course clears
    out all their selections. So, I want them to print it out first.

    Thank You,
    Debbye

  • #2
    Re: I need a "Print Form Script"

    debbyetex,
    Greetings. I had actually found a couple by doing a google search and had copied them to notepad. I am on vacation now- when I return I will forward it to you. I'm willing got bet that the good people of the BV forum will beat me to it.

    Take care
    Andy
    **You may want to check out hotscripts as I believe that is where I downloaded it from
    PHP- is a blast!

    Comment


    • #3
      Re: I need a "Print Form Script"

      Hi beddyetex
      Try this enter this in Page HTML under Between Head Tag.

      <script>
      // (C) 2000 www.CodeLifter.com
      // http://www.codelifter.com
      // Free for all users, but leave in this header
      function printWindow(){
      bV = parseInt(navigator.appVersion)
      if (bV >= 4) window.print()
      }

      </script>

      Then open a HTML box from tool bar, open and enter this,

      <a href="javascript:printWindow()">Print This Page</a>

      Ok job done

      Comment


      • #4
        Re: I need a &quot;Print Form Script&quot;

        Wow Dude,
        Looks like that script just might work. I applied it like you suggested. I won't be able to test it out until my darn DNS transfer is complete. Sill waiting! Can I insert a nice 'button' that says "Print Form Here" instead of typing in the HTML Box?
        Just thought a button would blend better.

        Thanks so much,
        Debbye

        Comment


        • #5
          Re: I need a &quot;Print Form Script&quot;

          Hi Debbye
          it is possible to use a button, place button of your choice on page using image tool, then carefully place html over button image then preview, this might take several trys, change the text in the html box to what you want to say, <a href="javascript:printWindow()">Print This Page</a>
          if don't like the text colour change in the page properties under background / text,
          ok hope this helps.

          Comment


          • #6
            Re: I need a &quot;Print Form Script&quot;

            Thanks so much Dude!
            That works great.

            Again, thanks for helping me,
            Debbye

            Comment


            • #7
              Re: I need a &quot;Print Form Script&quot;

              No Problem

              Comment


              • #8
                Re: I need a &quot;Print Form Script&quot;

                Or...
                use this code in your html box:
                <FORM>
                <input type="button" class="but" value="print this page" onclick=javascript:printWindow()>
                </FORM>

                or...
                insert any image or whatever you want and on the link field you type javascript:printWindow()
                .
                .
                Nyoman

                Comment


                • #9
                  Re: I need a &quot;Print Form Script&quot;

                  Oh thanks Nyoman! I'll give that one a try too.

                  (Always Learning)
                  Debbye

                  Comment


                  • #10
                    Re: I need a &quot;Print Form Script&quot;

                    Ok, it's (not) working. I tried all the different scripts to no avail.
                    Still is not sending it to the printer.

                    The URL is: http//cateryourparty.com/menu.html

                    Please let me know what I am doing wrong. Printing from the browser won't work because "It's VERY important all the customer's checked boxes print out on the form". This is the whole purpose of "printing"

                    Thanks,
                    Debbye

                    Comment


                    • #11
                      Re: I need a &quot;Print Form Script&quot;

                      Sorry, the link to this page is:

                      http://www.cateryourparty.com/menu.html

                      Comment


                      • #12
                        Re: I need a &quot;Print Form Script&quot;

                        Got the print script to work! Hope this may help others out there having the same problem. The only problem I'm still having is I can't get the "selected menu boxes to print"! I created them as check boxes within the form. "Radio Buttons" won't work (only 1 selection can be made).

                        Having the same problem getting this very important info to come to me with all the other customer's info. I'm getting their name, email address, phone #, questions, & how they were referred - but (not) their food item selections.

                        Help me please, (anyone that may have an idea)
                        Thanks, Debbye

                        Comment


                        • #13
                          Re: I need a &quot;Print Form Script&quot;

                          Hi debbyetex
                          the print worked fine all box's i checked printed.
                          have you named each and everyone of the box's in the form.
                          ie/ French's Mustard 'box should be named french mustard' and so on if you don't the field will not show up when you receive the mail.

                          Comment


                          • #14
                            Re: I need a &quot;Print Form Script&quot;

                            Debbye

                            Radio buttons can work if you leave them singular. Don't tie them to a group.

                            In my mock menu- each is a single radio button with a specific name. I can choose each one in a category (for example - I can choose all the beer selections) and they will all post to my e-mail.

                            Andy
                            PHP- is a blast!

                            Comment


                            • #15
                              Re: I need a &quot;Print Form Script&quot;

                              Duh! I didn't even think about naming each little check box!
                              Problem solved with the email issue.

                              Now for the print issue. When I print (even after naming those darn little check boxes), they are still (not) printing on the page! What's up with that? In case you both didn't know I'm a blonde from Texas!

                              Thanks so so much!
                              Debbye

                              Comment

                              Working...
                              X