Separate Country Code and Restrict Phone Number to 9 Digits in Contacts Section
In the Contacts section of Creatio, I need to separate the Country Code and Phone Number fields. Additionally, the phone number should be restricted to 9 digits.
Is it possible to achieve this using the standard communication options in Creatio, or will I need to customize it?
If customization is required, could anyone advise on how to approach this? Specifically, I'm looking for guidance on using the PhoneInput control or implementing validators to achieve this format.
Like
Hello!
Could you please clarify how you see the implementation — do you want to enter the code and the number separately, or do you want users to be restricted to entering no more than 9 characters?
Alona Dolya,
Hello ,
I want the phone code and phone number to be separate, and the phone number field should allow only 9 digits.
I would like to implement this using the out-of-the-box Add communication → Phone → Mobile phone option in Contact Sections.
Could you please advise if there is any OOTB way to achieve this, or if there are any workarounds/suggestions to implement it?
Hello,
This functionality is not currently available using out-of-the-box tools within communication options, or elsewhere in the system. However, we do have an existing request to add this feature to the no-code toolkit, and we’ll link this community post to that request to help increase its priority.
If you’d like to explore implementing validators through development, you can find examples of how to configure such logic here:
https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/freedom-ui/customize-page-fields/examples/implement-the-field-value-validation