Skip to main content
gamzes93533812
Known Participant
October 23, 2017
Answered

if checkbox is checked display image field

  • October 23, 2017
  • 1 reply
  • 2808 views

I am creating a pdf form in which user selects the checkbox (or it can be radiobutton) (eg. field name:CheckBox1), I would like the image upload field (eg. fieldname: Image1) to be visible otherwise invisible. Is it possible?

This topic has been closed for replies.
Correct answer try67

A check-box is better, as a radio-button field can't be "un-selected" by clicking it.

Use this code as the field's Mouse Up event:

this.getField("Image1").display = (event.target.value=="Off") ? display.hidden : display.visible;

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
October 23, 2017

A check-box is better, as a radio-button field can't be "un-selected" by clicking it.

Use this code as the field's Mouse Up event:

this.getField("Image1").display = (event.target.value=="Off") ? display.hidden : display.visible;

gamzes93533812
Known Participant
October 24, 2017

Thank you works perfect. try67