To repro, on an XFA-enabled build:
1. Open the attached imm5257e_debug_oneofchild.qpdf.
2. Press the Validate button.
Expected: No JS error messages. Validation fails because the document is not filled. Empty or invalid fields are highlighted.
Actual: Some empty or invalid fields are highlighted. In debug, a message saying
"JS Error: TypeError: Cannot read property 'isNull' of undefined
Line 770: if (oField.isNull) {
"
|
Deleted:
imm5257e_debug_oneofchild.qpdf
2.1 MB
|
|
imm5257e_debug_oneofchild.qpdf
2.1 MB
Download
|
Comment 1 by hnakashima@chromium.org
, Aug 23This is a namespace issue. The relevant parts: <script contentType="application/x-javascript" name="validateForm"> function validateCompletedForm() { [...] validateEmail(); [...] } function validateEmail() { // Let's call this "validateEmail_1" [...] } </script> <script contentType="application/x-javascript" name="val"> function validateEmail(oField) { // Let's call this "validateEmail_2" [...] } </script> The call to validateEmail inside validateCompletedForm should be going to validateEmail_1, but it is going to validateEmail_2. validateEmail_2 should only be referenceable as "val.validateEmail".