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

AcroPDF form-> button OnFocus event for 2nd click

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

554

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
community guidelines
Community Expert ,
Feb 15, 2018 Feb 15, 2018

Copy link to clipboard

Copied

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

Votes

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
community guidelines
Explorer ,
Feb 15, 2018 Feb 15, 2018

Copy link to clipboard

Copied

Forgive my ignorance but how?

Votes

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
community guidelines
Community Expert ,
Feb 15, 2018 Feb 15, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines