-
1. Re: How can I format a form so that all text entered is "all caps"?
try67 Apr 8, 2013 7:06 AM (in response to lmphil)Use a custom validation script with this code:
event.value = event.value.toUpperCase();
-
2. Re: How can I format a form so that all text entered is "all caps"?
lmphil Apr 8, 2013 7:20 AM (in response to try67)Thanks for your post. Is this a global script? Will this automatically convert the text to upper case? Or will it just validate the the text is or is not upper case? Please let me know. Thanks again for your help.
-
3. Re: How can I format a form so that all text entered is "all caps"?
GKaiseril Apr 8, 2013 7:26 AM (in response to lmphil)You can also use a custom keystroke to change each entered key:
// custom key stroke for format of None ;
if(event.willCommit == false) {
// set key entry to upper case when entered;
event.change = event.change.toUpperCase();
} // end willCommit false;
// end custom key stroke;
-
4. Re: How can I format a form so that all text entered is "all caps"?
lmphil Apr 8, 2013 7:34 AM (in response to GKaiseril)THANK YOU!! THANK YOU!! THANK YOU!! That worked!
-
5. Re: How can I format a form so that all text entered is "all caps"?
try67 Apr 8, 2013 7:44 AM (in response to lmphil)Although I suggested to put it in the validation tab it doesn't actually do any validation, it just transforms the value when the user exits the field. It's not a global script in the sense that it will only affect the field where you place it, not all of them...
-
6. Re: How can I format a form so that all text entered is "all caps"?
lmphil Apr 8, 2013 7:45 AM (in response to try67)THANKS! Much appreciated!
-
7. Re: How can I format a form so that all text entered is "all caps"?
GKaiseril Apr 8, 2013 9:20 AM (in response to lmphil)You can use a custom key stroke script like:
// custom keystroke
if(event.willCommit == false) {
if(event.value.length < 1 ) {
// set first characater to caps
event.change = event.change.toUpperCase();
} // end lentgh less than 1;
} // end custom keystroke
And then a custom format or validation script:
// custom format or validation script
if(event.value != "" && event.value.substr(event.value.length -1, 1) != ".") {
event.value = event.value + (".");
} // not null and end last character not ".";
// custom format or validation script



