Articles on: Component settings

How to set validation phone number input fields

To set phone number validation:

Validation helps ensure that the user has entered the number in the correct format (e.g., including country code, area code, actual number, etc.) and identifies typos or incorrectly entered digits so that the user can correct them.





Hit "Edit component" button

Choose "Call to action form" section in "Content" tab

Click the button next to "Phone number" field



In the opened window add a mask in "Mask" field



Rules for mask:

0 - any digit
a - any letter
* - any char
{} - fixed part
[] - optional

Examples:
+{49} 00 000 000
+ 000 00 000 00 00
#000000
00-00-00


Save changes

Updated on: 23/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!