LarryEitel
Posts: 10
|
Posted: 04/18/2004, 11:32 AM |
|
Is it possible and if so how to trap keystrokes into a text input field and convert to uppercase.
I thought Format in design view would work. Docs don't give any examples that I can find.
Thanks! :)
|
|
|
peterr
Posts: 5971
|
Posted: 04/18/2004, 1:17 PM |
|
It is not possible to trap keystrokes via the Format since the formatting happens on the server, while "keystrokes" happen on the client. You would rather use JavaScript for this. If this is what you need then you can use the standard JavaScript for this. Just use Google to find the examples (no need to be CCS-specific).
As an idea, you could change the "applyMask" function in "functions.js" that CCS generates when you use the "Input Mask" property of the "Validate Entry" action. You can see it implenmented in the "Input Mask" example in CCS Example Pack, also at http://examples.codecharge.com/ExamplePack/InputMask/InputMask.php
On another hand, if you want to convert the text to upper case on the server (after users submit the value) then you would use the regular functions that do this in the programming language that you are using.
In both cases you can use Google to find such functions - any standard functions with work in CCS therefore there is no need to document them on our end.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|