Need scripting help
Working with Adobe Acrobat 10 Pro. Trying to add following script at document level not to allow spacebar as first character for any text field in the document,
function spacebar()
{
var v = AFMergeChange(event);
if (/^\s/.test(v)) event.rc = false;
}
The function works pefectly. However, this action changes all date fields format from default "dd-mmm-yyyy" to "AFDate_FormatEx("dd-mmm-yyyy");" custom format which I don't want. Apparently non-English Adobe Acrobat does not recognizes "AFDate_FormatEx("dd-mmm-yyyy");" format and date fields become invisible, empty, or non-descriptive text.

How could I prevent the date field format changing from default "dd-mmm-yyyy" to
"AFDate_FormatEx("dd-mmm-yyyy");"
Thanks in advance for any help
