Skip to main content
June 9, 2017
Answered

Adobe triggers not working correctly

  • June 9, 2017
  • 1 reply
  • 551 views

Hi

I generated an interactive PDF using Phantom. I have a short script to enter the current date when clicking in a field. The triggers can be any of Up, Down, etc but I have used MouseUp.

This works just fine in a Foxit reader. BUT, when opening the form in Adobe Acrobat XI, the action only triggers on the NEXT click after my initial click in the date field, no matter whether this next click is in another field or in open space.

My code is :

var f = this.getField("RecvdByDate");

f.value = util.printd("dd mmm yyyy", new Date());

Thanks in anticipation

This topic has been closed for replies.
Correct answer

It is working using Mouse Down. My testing was probably not careful enough. MouseUp does NOT work as expected but the others do. I wanted MouseUp but MouseDown will do equally well. Must have been late and tired

1 reply

JR Boulay
Community Expert
Community Expert
June 9, 2017

The triggers can be any of Up, Down, etc but I have used MouseUp.

Good point!

You should try to use the mouse down event.

Acrobate du PDF, InDesigner et Photoshopographe
June 9, 2017

Well of course as I said I can use any one of them but it makes no difference which one I use. I have tried them all ........

Correct answer
June 9, 2017

It is working using Mouse Down. My testing was probably not careful enough. MouseUp does NOT work as expected but the others do. I wanted MouseUp but MouseDown will do equally well. Must have been late and tired