You are here: Reference > Standard rules > Edit Input rules

Standard Edit Input rules

The Pega Platform contains a few standard edit input rules, including these:

Name

Description

DateTime-Calendar

Converts a user input date in the format 01/06/01 12:15 EST into the internal format for a DateTime Type, such as 20010611T171537.000 GMT (as Eastern Standard Time is +5 hours from Coordinated Universal Time). If the user doesn't include a time zone, the system assumes the time zone of the user's current locale setting.

GetStandardValue

Used for a Single Value property of type Text that has Table Type set to Prompt List on the General tab of the Property form. This Edit Input rule converts the user input from values specified in the left column of the Prompt List array (the standard values) to the corresponding list in the right column of the array.

This type of table can be used to support localization, to link English names for colors ("black", "brown", "red" ...) to Italian names for colors ("nero", "marrone", "rosso" ...). A selection list, presented by the GetLocalizedValue control rule, allows a user to select "rosso." The GetStandardValue rule converts "rosso" to "red" and stores "red" in the property value.

EncryptText
PropertyValue

Used in list view and summary view rules, when a property of type TextEncrypted is used as a selection criteria. See Property rules — Implementing and using the TextEncrypted Type.

PartialDate

Allows users to input a date with a minimum of keystrokes, and converts the input to the standard internal form YYYYMMDD based on the context of the current date.

Processing assumes that the entered date is today or a past date. For example, for users with a United States English locale (en-US) providing input on March 15, 2004:

User input

Converted to

1 20040304 or March 1, 2004
30 20040130 or January 30, 2004, the first date before today that ends in 30.
1/2 20040102 or January 2, 2004
04/01 20030401 or April 1, 2003
1JAN 20040101

Processing is sensitive to the locale setting in the user workstation; workers in some locales enter the day before the month, so 1/2 becomes February 1, 2004.

Conversion of three-character month names to numbers is based on twelve standard field value rules. To support other spellings or other languages in partial date input, create similar field value rules using the target spelling or language.

pxFilterRichText

Strips off HTML markup in the value that might represent a cross-site scripting security issue, while leaving harmless legitimate markup such as <b> and <h3>. Useful for text fields that are entered using the standard RichTextEditor control. See Property form — Completing the Advanced tab.

Use the Records Explorer to see a complete list of the edit input rules available to you.

About Edit Input rules
Standard rules index