since ‎17-05-2018
‎10-12-2019
michael20041960
Level 1
Force Text Field to Upper and Lower Case
Avatar

michael20041960

michael20041960
- Adobe Analytics
I have read a lot of post regarding forcing text in a text field to upper case and the first letter in the field to upper case and the rest to lower case. I have been able to get these to work:-All uppercase........ if (event.change.length > 0) {event.change = event.change.toUpperCase() }First Letter upper then the rest of text to lower........... event.value = event.value.substring(0,1).toUpperCase() + event.value.substring(1).toLowerCase();I would like a simple script that would change all wor...

Views

144

Likes

0

Replies

0