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

ivanoff
ivanoff
Offline

Badges

Badges
5

Accepted Solutions

Accepted Solutions
1

Likes Received

Likes Received
0

Posts & Comments

Posts & Comments
6

Discussions

Discussions
0

Questions

Questions
2

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by ivanoff
Customize the badges you want to showcase on your profile
Re: Writing text in upper case. - Adobe LiveCycle 21-03-2014
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,...

Views

687

Likes

0

Replies

0
Re: Help with realization of a code by "change" event - Adobe LiveCycle 20-03-2014
Thu, 20 Mar 2014 09:19:51 -0700 от Robert Gagnon Ranger :>Re: Help with realization of a code by "change" event created by Robert Gagnon Ranger in LiveCycle Forms - View the full discussion

Views

261

Likes

0

Replies

0
Re: Help with realization of a code by "change" event - Adobe LiveCycle 20-03-2014
I need something like these: toUpperCase 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 = "";} 9.0.0.2.20120627.2.874785 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 "";}} Here only the first character of all words are written in upper case, and we need only the first three words.

Views

260

Likes

0

Replies

0
Re: Help with realization of a code by "change" event - Adobe LiveCycle 20-03-2014
Текстовое поле var str = rawValue;var FIO = str.split (' ');var a = FIO.lengthswitch (a) { case 2:{ FIO [0] = FIO [0].charAt (0).toUpperCase () + FIO [0].substr (1); FIO [1] = FIO [1].charAt (0).toUpperCase () + FIO [1].substr (1); rawValue = FIO.join (' '); break; } case 3:{ FIO [0] = FIO [0].charAt (0).toUpperCase () + FIO [0].substr (1); FIO [1] = FIO [1].charAt (0).toUpperCase () + FIO [1].substr (1); FIO [2] = FIO [2].charAt (0).toUpperCase () + FIO [2].substr (1); rawValue = FIO.join (' '); break;} case 4:{ FIO [0] = FIO [0].charAt (0).toUpperCase () + FIO [0].substr (1); FIO [1] = FIO [1].charAt (0).toUpperCase () + FIO [1].substr (1); FIO [2] = FIO [2].charAt (0).toUpperCase () + FIO [2].substr (1); FIO [3] = FIO [3].charAt (0) + FIO [3].substr (1); rawValue = FIO.join (' '); break;} default: rawValue = str; }

Views

254

Likes

0

Replies

0
Help with realization of a code by "change" event - Adobe LiveCycle 20-03-2014
The form is developed in Live Cycle 9There is the following code:var str = rawValue;var FIO = str.split (' ');var a = FIO.lengthswitch (a) { case 2:{ FIO [0] = FIO [0].charAt (0).toUpperCase () + FIO [0].substr (1); FIO [1] = FIO [1].charAt (0).toUpperCase () + FIO [1].substr (1); rawValue = FIO.join (' '); break; } case 3:{ FIO [0] = FIO [0].charAt (0).toUpperCase () + FIO [0].substr (1); FIO [1] = FIO [1].charAt (0).toUpperCase () + FIO [1].substr (1); FIO [2] = FIO [2].charAt (0).toUpperCase ...

Views

889

Likes

0

Replies

5
Writing text in upper case. - Adobe LiveCycle 19-03-2014
Форма разработана в LiveCycle 9. Поле используется для ввода текста в нижнем регистре. Необходимо, чтобы во время ввода текста ("изменить" событие) в первых букв слов появляются в верхнем регистре. Написано следующий код: < событие деятельность = " изменение " имя = " event__change "> < сценарий CONTENTTYPE = " применение / х-JavaScript ">если (xfa.event.newText.length> xfa.event.prevText.length && xfa.event.change.length == 1){xfa.event.change = xfa.form.topmostSubform.variables.Validation.Verc...

Views

1.1K

Likes

0

Replies

2