How does Pega perform client-side validation
This is the second post in the series about client-side validation in Pega. In the previous post, we've learned about the ValidationError object. In this post we will describe the steps made by the "Submit" button when we click on it. Also, we will introduce the ValidationType objects and the Validation functions . These elements are the building blocks of client-side validation in Pega so we will need to know their role when implementing it. We will study ValidationType objects and validation functions that already exist, so we will not create custom ones, that will be the subject of the next post. Before we start... Let's create the MobilePhone Edit Validate rule with the following definition. // Edit Validate: MobilePhone if (theValue.length() != 9) { theProperty.addMessage("The entered value must be 9 digits long"); return false; } else if ( !(theValue.startsWith("8") || theValue.startsWith("9")) ) { theProperty...