Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

if checkbox is checked display image field

Explorer ,
Oct 23, 2017 Oct 23, 2017

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?

TOPICS
PDF forms
2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Oct 23, 2017 Oct 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;

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 23, 2017 Oct 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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 24, 2017 Oct 24, 2017
LATEST

Thank you works perfect. try67​

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines