AcroPDF form-> button OnFocus event for 2nd click

Community Beginner ,
Feb 15, 2018

Copy link to clipboard

Copied

In an Acrobat PDF form, I can assign an OnFocusEvent to show some other field if a user pushes on a button in form.

I simply add it to button properties>action>on focus>run a js

the Javascript event used is as in following:

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

But, is it possible to assign an event for a second click for showing some other fields?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

147

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

AcroPDF form-> button OnFocus event for 2nd click

Community Beginner ,
Feb 15, 2018

Copy link to clipboard

Copied

In an Acrobat PDF form, I can assign an OnFocusEvent to show some other field if a user pushes on a button in form.

I simply add it to button properties>action>on focus>run a js

the Javascript event used is as in following:

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

But, is it possible to assign an event for a second click for showing some other fields?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

148

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
Feb 15, 2018 0
Adobe Community Professional ,
Feb 15, 2018

Copy link to clipboard

Copied

You can remember the first click in a hidden form field.

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...
Feb 15, 2018 0
Community Beginner ,
Feb 15, 2018

Copy link to clipboard

Copied

Forgive my ignorance but how?

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...
Feb 15, 2018 0
Adobe Community Professional ,
Feb 15, 2018

Copy link to clipboard

Copied

At the first click change the value of the text field. At every click check the value of the text field.

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...
Feb 15, 2018 0