Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to enter text & numbers into text field?

Avatar

Former Community Member


I am designing a form for our Labor cases, and in the Case# field, which I have established as a (text field), I wish for the user to input the following as example:

2014-DAA-000012

I would like for the dashes to show automatically as does the social security number.  Any takers on this?  Thank you!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

you can use patterns to format you input a little bit.

You need 2 patterns in your text field:

One for displaying ...

text{9999-AAA-999999}

... and one for editing.

text{9999AAA999999}

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

you can use patterns to format you input a little bit.

You need 2 patterns in your text field:

One for displaying ...

text{9999-AAA-999999}

... and one for editing.

text{9999AAA999999}

Avatar

Former Community Member

Thanks!  Provided this input this morning, and all worked fine.  Now if I could just mastermind the ability to automatically capitalize letters.  Thank you again sir/madam for your help.