Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to auto capitalize after a period in text field

Avatar

Level 1

Is there a way to make a text field auto capitalize after a period if the user has forgotten. I am currently using LiveCycle Designer ES4

2 Replies

Avatar

Level 8

Try putting the following in the exit event of your text field:


this.rawValue=this.rawValue.replace(/(^\w{1}|\.\s*\w{1})/gi, function(a){return a.toUpperCase();});


Kyle

Avatar

Level 1

Thank You Kyle, this Script does work and I really appreciate it!