Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

newText.match not working properly

Avatar

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 = "";

else

    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