newText.match not working properly



I have a dynamic form that uses extensive Javascript.  It works great when I open it in Adobe Reader 11 but when I open it with Adobe Reader 10.01 the following code in a text field change event does not execute correctly:

if (xfa.event.newText.match(/[^0-9-:;,]/))

    xfa.event.change = "";


    if (xfa.event.newText.length > 0)

        xfa.resolveNode("this.ui.#textEdit.border.fill.color").value = "255,255,255";

any ideas?

I have also noticed that the toUpperCase() function is not working either in version 10.  Oddly, I tested it on the Linux Reader version 9.5 and it worked fine.

Message was edited by: Paul Dokken

Accepted Solutions (0)

Answers (0)