Skip to main content
Inspiring
July 2, 2023
Answered

Setting conditionally 'hide/show' fields overriding 'Visible but not printable' setting

  • July 2, 2023
  • 1 reply
  • 785 views

I have a form with a couple of fields I've set to conditionally show/hide with an if/else argument. Some of these fields I've also set to 'Visible but not printable'. These fields, when conditionally visible, continue to print. Any way to overcome this by keeping the field's conditional functionality but also not printing? Thank you in advance!- kemper

This topic has been closed for replies.
Correct answer try67

In your code you need to change their display property to display.noPrint instead of display.visible .

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
July 2, 2023

In your code you need to change their display property to display.noPrint instead of display.visible .

Inspiring
July 2, 2023

Thank you Try67 for your response! I'm unsure where to make your suggested change. I have a radio button field, when option 2 selected, conditionally displays several fields that I have set to 'Visible but not printable'. If I want to continue to be able to hide/show these fields with the radio button selection, but not have them print regardless of whether they're conditionally 'visible' at form submission, would I exchange the display.visible or display.hidden with display.noprint in the javascript mouse up action of the radio button? Would I lose the capability to conditionally display/hide the target fields? Thank you again Try67!- kemper

try67
Community Expert
Community Expert
July 2, 2023

Post your current code, please.