Problems of JavaScript when delivery to the customer using Acrobat Reader XI

I am working on a form for a client that takes an array of values for radio button, apply a weighted percentage and create a partition for each row in the table. The score is then harvested at the end of each of the two tables. In the end, these two scores get on average in the last line on page two and one result 'Action A complete' or 'Complète Action B' appears in a field of text next to the partition. The whole thing works beautifully after several revisions. Or rather, it works beautifully in the drive of DC and DC Pro. When I send to the customer who uses reader XI, the last line (if/script, then the average of the two scores and action of text) must not be calculated. Any help would be appreciated. It is all confidential activities of a client so I cannot view the actual file, but can share snippets of code for java.

None of these scripts should work in Acrobat or reader, because they contain several syntax errors.

First, you use an invalid operator, namely "=>". You should use ' > = '.

In addition, you have 2 other errors that I can spot. In the second script you use the property valueAsString but then you treat what she returns (the variable 'q') as a number. Is not IT a string. So what you should do is converting it to a certain number, like this:

var q = Number (this.getField("AScore").valueAsString);

And in the first script you use a variable which you ever reported ("n").

If solve you these problems, it should work in Acrobat and Reader.

Tags: Acrobat

Similar Questions

Maybe you are looking for