1. Set up the page UI
- Create a custom Validators app based on the Records & business processes template. To do this, follow the guide in the user documentation: Create a custom app.
-
Open the Validators form page page in the working area of the Validators app page.
The Validators form page page includes the Name field by default.
- Click
in the action panel of the Freedom UI Designer. After you save the page settings, Creatio opens the source code of the Freedom UI page.
2. Set up the field validation
Configure the business logic in the Client Module Designer. For this example, set up the field validation. Add a validator to the Name field of the Validators form page page.
-
Implement a custom usr.MyValidator validator in the validators schema section.
-
Bind the MyValidator validator to the UsrName model attribute in the viewModelConfig schema section. Specify the "test" value in the invalidName property. If you enter this value, the app will display an error message specified in the message property.
Complete source code of the page schema - Click Save on the Client Module Designer's toolbar.
Outcome of the example
To view the outcome of the example:
- Open the Validators app page and click Run app.
- Click New on the Validators app toolbar.
- Enter "test" in the Name field.
- Click Save on the validator page toolbar.
As a result, the app will not save the test record and display an error notification in a pop-up box.

The app will save a record that has a different name, such as Validator's name, correctly. The record will be displayed in the Validators section list.
