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.

Text{99999}

Avatar

Former Community Member

What is text{99999} in the validation pattern good for if it still allows alpha characters to be entered? Shouldn't Adobe address this issue with a fix? And shouldn't you go back to the field with the error before moving to the next field? Livecycle just says correct the issue, but moves to the next field.

1 Reply

Avatar

Former Community Member

The 9999 indicates that a numeric integer is expected at that location. In text fields you may choose to have a number as part of a string (Postal codes from certain countries have letters and numbers). There are 4 areas where you can apply a pattern to a field:

Display - the pattern is pplied to what the user sees on the screen

Edit - Describes the pattern of what the user is allowed to enter into the field

Data - the format of the data that is stored in teh data dom and ultimately submitted

Validate - the format of that validation that is applied to the field

If you only use a display pattern it will not stop you from entering any chars into the field and will try and apply the pattern after you leave the field.

The validation of a field works in this way .....once you leave the field the validation is fired and the user is warned if the validation returns false. This does not stop the user from entering information into other fields. This allows the user to save the form and come back to it later if they so choose. It is only when the form is submitted that teh validations are enfored and must return true. If you want to enforce the validation at the time that the user fills the field you can write your own validation code on teh exit event oand if it fails put up your own message and return the cursor to the same field.

Hope that helps

Paul