Formatting field values

Next, you will format field values so that they appear correctly after the user types them. For instance, in the form design, you need a dollar sign to appear in fields that represent money, and you need parentheses around area codes of phone numbers.

You can choose from a list of predefined display patterns or you can create a custom pattern. In this case, you will create a custom pattern using the numeric symbols 9 and z, as well as the currency symbol ($) and the left and right parenthetic characters (). In our example, given the input 1234567.98, the custom display pattern ($z,zzz,zz9.99)will display $1,234,567.89. For more information about patterns, see LiveCycle Designer ES Help, which is accessible from Workbench ES.

To format the display and edit values:

  1. In the Hierarchy palette, select Mortgage and, in the Object palette, perform the following tasks:
  2. In the Hierarchy palette, select PropertyPrice, and then hold down the Control key and select DownPayment.
  3. In the Object palette, perform the following tasks:
  4. In the Hierarchy palette, select PhoneNumber and, in the Object palette, perform the following tasks:

You have formatted the fields in your form design so that fields are displayed with a dollar sign that represent monetary amounts and parentheses surround area codes of phone numbers.


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/wb_help/00000440.html