Printout question

  • Steven
    Asked on July 24, 2017 at 5:52 AM

     

    Please can you help me?

    How can I hide address sub labels from printer?

    So I don’t printout Street Address, Street Address1 etc.

  • liyam
    Replied on July 24, 2017 at 10:38 AM

    This code shall allow you to show the sub labels on the browser when viewed, but upon printing, it shall not appear:

    @media print {
     #sublabel_3_addr_line1, #sublabel_3_addr_line2, #sublabel_3_city, #sublabel_3_state, #sublabel_3_postal {
      display:none;
     }
    }

    If you need to know how to inject/insert CSS codes into your form, please follow this guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    If you have questions or if you need assistance, please let us know.

    Thanks.

  • steveevan
    Replied on July 25, 2017 at 5:43 AM
    Sorry I've copied and pasted this code into the CSS panel, but it hasn't worked
    ________________________________
    ...
  • liyam
    Replied on July 25, 2017 at 7:03 AM

    Thanks for your reply, Steven. I suppose you are working on a different form. The ID of the code may be different compared to the one which I suggested that you add. Just to make sure, can you share with us the link to the form which you are working on?

    Thanks.

  • steveevan
    Replied on July 25, 2017 at 8:43 AM

    Thanks for this.
    The form address is: https://eu.jotform.com/build/71153604770351
    ________________________________
    ...
  • liyam
    Replied on July 25, 2017 at 10:45 AM

    Thank you, Steven.

    Here is the correct code:

    @media print {
     #sublabel_4_addr_line1, #sublabel_4_addr_line2, #sublabel_4_city, #sublabel_4_state, #sublabel_4_postal {
      display:none;
     }
    }

    Please get back to us if you have additional questions.

    Thanks.