cancel
Showing results for 
Search instead for 
Did you mean: 

Text Field with only digits

barca23
Explorer
0 Kudos

Hello,

I'm struggling with fields formatting and editing.

How could i prevent that an user input alphabetic characters into a text field ?

Example:

Text Field 1 must only have 7 digit

EX: 1234567 --> OK

AB34567 --> NOK

I have try in preview mode using Edit Pattern(9999999) but it doesn't work.

Could you please give me a hint?

Thx in advance,

Pelaez Lopez Philippe

Accepted Solutions (0)

Answers (1)

Answers (1)

dieter_fischer
Explorer
0 Kudos

Hi,

try a "Numeric Textfield".

Best regards,

Dieter

barca23
Explorer
0 Kudos

Hello Dieter,

Do you know how to limit the length of a numeric field to 7 digit without using coding?

Pelaez Lopez Philippe

Former Member
0 Kudos

Object pallette -> limit length

dieter_fischer
Explorer
0 Kudos

Hi,

insert a "Decimal Field" into the layout and set following parameters in the object pallette:

<i><b>Display Pattern:</b> 9999999 (->seven digits)

<b>Limit Leading Digits Max:</b> 7

<b>Limit Trailing Digits Max:</b> 0

</i>

Regards,

Dieter

barca23
Explorer
0 Kudos

Thank you for the answers, but i don't have those options in my adobe livecycle designer object menu.

Which version of livecycle are you using?

Mine is version 7.0.

Pelaez Lopez Philippe,

dieter_fischer
Explorer
0 Kudos

Hi,

my version is 7.1. You should update the Lifecycle Designer to 7.1.

Do you really use the "<b>Decimal Field</b>"?

I believe the settings are in 7.0 available, too. In the "<b><u>Numeric </u>Field</b>" are the parameters not available.

Regards,

Dieter