Skip to main content

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

How to add automatic field formatting to input fields

Suggest edit Updated on September 25, 2019

Summary

You can make a property value automatically format when focus leaves an input field, by using edit validate rules. In V5.4SP2, seven formats for properties are supported:

  • Date
  • Social Security Number (SSN)
  • Tax-Payer Identification Number (TIN)
  • US Zip Code
  • US Extended Zip Code (Zip + 4)
  • US Phone Number
  • International Phone Number

 

Suggested Approach

To make a property automatically format:

  1. Open the property rule you want to be automatically formatted.
  2. On the Definition tab of the property rule form, under the Input Processing section, enter the appropriate edit validation rule in the validate field.

zzz

  1. When entering data, it display exactly as you type it. The input only changes format when you exit the field.

For example, if you enter an SSN such as:

zzz

When the user causes focus to leave the input field on the form, Process Commander automatically reformats the input to appear as:

zzz

  1. The following standard edit validation rules are available in V5.4SP2 for automatically formatting an input field:
    • Datemmddyyyy
    • SSN — Social Security Number
    • TIN — Taxpaer Identification Number
    • USZipCode
    • USZipCodeExtended
    • USPhone
    • InternationalPhone
Did you find this content helpful? YesNo

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us