Form is developed in LiveCycle 9. Field is used to input text in lower
case. It is necessary that during text input ("change" event)in the
first letters of the words appear in uppercase. Written the following
code: if (xfa.event.newText.length >
xfa.event.prevText.length && xfa.event.change.length
==1){xfa.event.change =
xfa.form.topmostSubform.variables.Validation.VerchReg(xfa.event.change);}else{xfa.event.change
= "";} var
first=true;function VerchReg(newsymbol){var re = /[А-Яа-я-"
"]/;//Вводятся только кириллица - и пробелif (re.test(newsymbol)){if
(newsymbol==" "){ first=true; return newsymbol;}if
(first){first=false;return newsymbol.toUpperCase();}else{return
newsymbol;}}else{return "";}}} Problem: when the form is first opened when entering text
in lower case (for example: Voronezh, Vologda, Russia, Moscow, all works
well and get the result of the Vologda Voronezh Moscow), however, if the
erase all printed, and begin again to enter in lower case Voronezh,
Vologda,...