6.2.2 Add / Modify Validations
All the validation available in the application are maintained in
<CHANNEL_ROOT_PATH>/framework/js/base-models/validations/obapi-locale.js.
Implementer can override and add new validations in the application
without changing this file. An extension hook is given at :
For OBAPI 18.1 at
<CHANNEL_ROOT_PATH>/extensions/validations/obapi-locale.js
From OBAPI 18.2 onwards
<CHANNEL_ROOT_PATH>extensions\override\obapi-locale.js
In this file Implementer can add or override validations.
For Example: If you need to change the pattern which validate Mobile Number. Add updated pattern in this file as below.
Parent topic: Component Extensibility