Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

newText.match not working properly


Level 2

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

0 Replies