Skip to main content
gamzes93533812
Known Participant
February 15, 2018
Question

AcroPDF form-> button OnFocus event for 2nd click

  • February 15, 2018
  • 1 reply
  • 798 views

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?

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
February 15, 2018

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

gamzes93533812
Known Participant
February 15, 2018

Forgive my ignorance but how?

Bernd Alheit
Community Expert
Community Expert
February 15, 2018

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