Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Adding validations to identifiers

Updated on January 18, 2021

Ensure that identifier fields contain correct data by adding validation to the data that users enter, for example, passport numbers.

  1. In the Dev Studio Explorer panel, click App. In the search field, enter the name of the class of the identifier for which you want to add validation. For example, PegaPS-Data-Identifier-Passport.

  2. Right-click the class and create a property for the information that you want to validate, for example, PassportNumber.

    For more information about creating properties, see Properties - Completing the Create, Save As, or Specialization form.

  3. In the Advanced tab of the new property, fill the Validation section.

    For more information about validation fields, see Property form - Completing the Advanced tab.

  4. In the Dev Studio Explorer panel, click PassportUser InterfaceSectionIDNumber.

  5. Right-click the IDNumber property that the section contains and then click Delete.

  6. Drag and drop the new property into the section and save the section.

  7. Enable retrieval of the new property from the database by performing the following actions:

    1. In the current class, create a data transform rule. Use the pySetFieldDefaults data transform rule in the PegaPS-Data-Identifier-SSN class as a model.

    2. On the Definition tab, click Add a row.

    3. In the Target column, enter the new property.

    4. In the Source column, enter IDNumber.

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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