Skip to Content
0
Former Member
Jan 30, 2009 at 12:49 PM

Javascript code error depending on Adobe Reader Version

38 Views

Hi everybody,

I develop a Adobe interactive forms with ALD version 8 on ECC 6.0 system .My forms is only used in offline scenario ( thru e-mail) .My form is set as compatible with Adobe Reader 7.0.5

In the form i got 2 different tables .

The first table , let's call it Tab1 , is define as follow :

Field 1 -> DropDowlist box

Field 2 -> TExt Field

Field 3 -> DropDownlist Box

Field 4 -> DropDownlist Box

Field 5 to 11 -> Text Field.

The second table, let's call TAB2 , is define as follow :

Field 1 -> DropDownlist box

Field 2 -> Text Field

Field 3 -> Dropdownlist box

Field 4 to 10 -> Text Field.

The content of the DropDownlist of Field1 of Tab1 and Tab2 are similar.

When user try to click on Field 5/6/7/8/9/10/11 of Tab1 for populate it, i wrote a javascript code to check if Field3 is populate. If not i set a focus on Filed3 of Tab 3 .

Same check have been written for Tab2 when user try to click on Field 4/5/6/7/8/9/10.

This code works fine with Adobe REader 8.1 but with Adobe Reader 7.0.9 it doesn't work and that's a main issue because it can't be possible to be sure that all user will use adobe Reader 8.1.

Adboe Reader 7.0.9 is a pre-requisite as describe in OSS note 834573.

Does somebody face the same problem and can help me to solve it .

Regards

Ps : Here is the javascript i wrote :

var pos = eval(this.parent.index);

if (xfa.resolveNode("data...ACTIVITY_DETAIL["+pos+"].SOFTWARE").isNull)
{
 xfa.host.setFocus(xfa.resolveNode("data...ACTIVITY_DETAIL["+pos+"].SOFTWARE"));
}

Edited by: Bertrand DESSERTENNE on Jan 30, 2009 5:01 PM

I made a mistake when describing the error, I change the explanation.