X
Tap here to go to the mobile version of the site.

Support Forum

Why do "invis" form fields show in "print preview"?

Posted

I have a couple pages with forms that have an input field which has a class="invis". The field does not show up in the browser. However, it DOES show up in the browser's Print Preview function. I had never noticed this before today. And I tried Print Preview in 8 different browsers and all allow the "invisible" field to be seen. Has anyone else noticed this behavior? Could this be a shortcoming of html or could all browsers possibly be at fault? Or could it even be some other entity to blame? Whatever... it certainly defeats the purpose of "invisible" form fields. Could there even be a work-around? Help... anyone?

I have a couple pages with forms that have an input field which has a class="invis". The field does not show up in the browser. However, it DOES show up in the browser's Print Preview function. I had never noticed this before today. And I tried Print Preview in 8 different browsers and all allow the "invisible" field to be seen. Has anyone else noticed this behavior? Could this be a shortcoming of html or could all browsers possibly be at fault? Or could it even be some other entity to blame? Whatever... it certainly defeats the purpose of "invisible" form fields. Could there even be a work-around? Help... anyone?

Additional System Details

Installed Plug-ins

  • VLC media player Web Plugin 2.1.3
  • Shockwave Flash 14.0 r0
  • IE Tab 2 Plug-in for Mozilla/Firefox
  • Google Update
  • Foxit Reader Plug-In For Firefox and Netscape
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Nitro PDF plugin for Firefox and Chrome
  • Windows Activation Technologies Plugin for Mozilla

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0

More Information

guigs2
  • Top 10 Contributor
  • Administrator
  • Moderator
584 solutions 6699 answers

Hi BigAlBat, I do not know, what is the css code that makes it invisible? visibility:none or display:none ?

Might want to file a bug in bugzilla.mozilla.org with an example.

Cheers.

Hi BigAlBat, I do not know, what is the css code that makes it invisible? visibility:none or display:none ? Might want to file a bug in bugzilla.mozilla.org with an example. Cheers.

Question owner

The html code is: <input type="text" name="spamtest" class="invis" maxlength="5" size="5" value="Φ∞Σ±ß"> and the css is: input.invis { display:none; }. Don't know if filing a bug report would help since I observed this behavior in 8 different browsers. But in my opinion(for what it's worth, are you listening Mozilla?) a field defined as display:none should not be visible anywhere other than in an offline html editor. I should add here also that it is visible when you "view source" with any browser. What good is having a "display:none" form field that anyone can see?

The html code is: <input type="text" name="spamtest" class="invis" maxlength="5" size="5" value="Φ∞Σ±ß"> and the css is: input.invis { display:none; }. Don't know if filing a bug report would help since I observed this behavior in 8 different browsers. But in my opinion(for what it's worth, are you listening Mozilla?) a field defined as display:none should not be visible anywhere other than in an offline html editor. I should add here also that it is visible when you "view source" with any browser. What good is having a "display:none" form field that anyone can see?