Dating tools by patern
Depending on the requirements of your situation, you can specify one or more of the following patterns to control how field values, such as text fields, numeric fields, and date/time fields are formatted at run time: The formatting options that you choose will depend on the purpose of your form.
For example, if you are designing an interactive form, for each field you should define an edit pattern to process user input and a validation pattern to validate the input.
A default date/time value must conform to the short format for the locale specified for the date/time field.
However, by default, Designer displays the default value in the medium locale format at both design time and run time. The formatted value also appears in the medium format if you view the form in the Preview PDF tab.
You would only define a data pattern if the fields are bound to a data source.
Keep in mind that if you specify only an Edit pattern for a Numeric Field or Decimal fields object, form fillers can still enter alphabetic characters in the field.
If you are creating a form to capture data, you can specify how data should be formatted.
If users will be entering data that does not match the Designer defaults, you must specify an edit pattern.
You could define a text field with the following edit patterns: text|text for credit cards or text|text for a US social security number In both cases, the user may enter the number with hyphen(-), space ( ), or just the 16 or 9 digit number.
The canonical, or simplest form of the number is the 16 or 9 digit number.
You may also choose to add the following validation pattern: text or text In this case, only the number is stored and the validation checks for the correct number of digits.
However, in this case, it might be more useful to specify a validation script rather than a pattern.