Print Page | Close Window

Adobe triggers not working correctly

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: [Commercial] Adobe Acrobat
Forum Description: Discussion forum for all versions of Adobe Acrobat and Adobe Reader.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=2179
Printed Date: 23 Apr 2019 at 5:36pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Adobe triggers not working correctly
Posted By: nevyoung
Subject: Adobe triggers not working correctly
Date Posted: 09 Jun 2017 at 10:20am
Hi - am new to this forum - seems the appropriate place to ask my question

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
 



Replies:
Posted By: nevyoung
Date Posted: 09 Jun 2017 at 2:14pm
It is working use 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.


Posted By: gkaiseril
Date Posted: 09 Jun 2017 at 7:01pm
I usually use the Mouse Down action as this is the Windows default action for mouse selection. One cancels the action by moving the mouse out of the field.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net