PDA

View Full Version : Javascript in form does not seem to work


berend
September 19th, 2006, 01:39 AM
Hello,

I have downloaded and installed version 2.0 today, to see if it may replace adobe/cutepdf form filler. Unfortunately, I could not get the javascript feature to work which is important for the type of forms that our customers use.

When I open a form containing javascript, it told me to download the optional javascript plugin, so far so good. After that I also got Foxit_JS_ExObjects.dll and js.dll in C:\Program Files\Foxit Software\Foxit Reader, both dated today.

However, both test forms I tried failed.

Test 1: http://www.berend.com/download/javascriptdemo.pdf
http://tweakers.net/ext/f/c9681d35009ac6c624c9a86d467380af/full.png
This is a fairly simple demo form that is intended to test field recalculation capabilities of the form filler.

Problems found:
- default value in first edit field is not initialised
- checkbox and push button should alter value in second edit field, doesn't happen
- new value entered in first edit field should alter value of second edit field when field is left, doesn't happen

Test 2: http://www.berend.com/download/errormsg.pdf
http://tweakers.net/ext/f/785f45bbfe966a48bb3057837c065066/full.png
This is a more complex "real world example" form, that intends to demonstrate that a complex form (building permit application) could be entered as pdf instead of as paper form.

In the screenshot you see a checkbox on the first page of the form. When this box is checked, it should enter a value in one of the date fields (see blue arrow in Adobe Acrobat screenshot). In foxit reader this doesn't happen and an error message [The method "printd" defines in "util" runs failed, Position:line 31,] appears.

apron
September 19th, 2006, 02:03 AM
HI
It is XFA form that the first file(created by Adobe Designer) contains, and now foxit reader does not support it.
We will add this feature later.

The second problem is really a bug!
we will fix it asap!

Thank you!^_^

berend
September 19th, 2006, 02:21 AM
Thanks for your fast reply! :)