Validating the currency fields

To validate currency fields, you need to create a rule with actions that delete letters and spaces, and confirm that the field contains a currency value. Then, the rule must be assigned to all of the currency fields in the document hierarchy.

The currency field validation rule that you need to create uses the following actions.

Action Description
DeleteAllAlpha Deletes all of the letters from the field. Use this action to remove the USD suffix that are used by one of the airlines.
DeleteSelectedChars Deletes the specified characters from the field. Use this action to remove any spaces.
IsFieldCurrency Returns True if the field is a number and includes a two-digit decimal amount, returns False otherwise. The action ignores any leading currency symbol (for example, $).