image hide/show on checkbox

Community Beginner ,
Oct 23, 2017

Copy link to clipboard

Copied

I am creating a pdf form by using Acrobat, and I would like to associate a checkbox to an image.

In particular, I want to display an image if a user clicks on the corresponding checkbox, and hide the image again when user removes the check.

How can I refer to an image? Is it possible?

I would appreciate any simple js code examples  for achieving this.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Create a button field and set the image as its icon. Then you could simply show/hide the button.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

181

Likes

Translate

Translate

Report

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

image hide/show on checkbox

Community Beginner ,
Oct 23, 2017

Copy link to clipboard

Copied

I am creating a pdf form by using Acrobat, and I would like to associate a checkbox to an image.

In particular, I want to display an image if a user clicks on the corresponding checkbox, and hide the image again when user removes the check.

How can I refer to an image? Is it possible?

I would appreciate any simple js code examples  for achieving this.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Create a button field and set the image as its icon. Then you could simply show/hide the button.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

182

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 23, 2017 0
Most Valuable Participant ,
Oct 23, 2017

Copy link to clipboard

Copied

Create a button field and set the image as its icon. Then you could simply show/hide the button.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 23, 2017 1
Community Beginner ,
Oct 24, 2017

Copy link to clipboard

Copied

try67​ thanks but checkbox does not come with a custom icon, or I misunderstand your explanation.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 24, 2017 0
try67 LATEST
Most Valuable Participant ,
Oct 24, 2017

Copy link to clipboard

Copied

Right. I was talking about a button field, which the check-box will show/hide.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 24, 2017 0