Explore all formatting options for Bundled Fields
You can define the formatting and validators for Text fields with following formats:
By default, the None option is selected.
Choose the subfield and click More > Format and validation.
In the new window you’ll be able to select one of the formats and set it up:
Currency
Number | Format | String |
---|---|---|
1000.234 | $0,0.00, | $1,000.23 |
1000.2, | $0,0[.]00 | $,1,000.20 |
1001, | $ 0,0[.]00, | $ 1,001 |
100.55 | 0.0 PLN, | 100.6 PLN |
Percentages
Number | Format | String |
---|---|---|
1 | 0% | 100% |
0.974878234 | 0.000% | 97.488% |
-0.43 | 0 % | -43 % |
1 | 0 | 1% |
0.64 | 0.00 | 0.64% |
Number
Number | Format | String |
---|---|---|
10000 | 0,0.0000 | 10,000.0000 |
10000.23 | 0,0 | 10,000 |
10000.1234 | 0.000 | 10000.123 |
100.1234 | 00000 | 00100 |
1000.1234 | 000000,0 | 001,000 |
10 | 000.00 | 010.00 |
10000.1234 | 0[.]00000 | 10000.12340 |
-10000 | (0,0.0000) | (10,000.0000) |
To define formatting, you can also select locales from the list in the Advanced section. This list contains all languages supported by numeral.js. English (United States) [en] is set by default.
If the value entered on the form does not match the format, the user will see a warning and the creation of the request will be blocked until they enter the correct value.
Select RegExp option if you want to use Regex. Regular Expressions aka Regex are expressions that define a search pattern. They are widely used for validation purposes, like email validation, url validation, phone number validation and so on.
Commonly used regex
Alphanumeric Characters
^[a-zA-Z0-9]*$
^[a-zA-Z0-9 ]*$
^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$
^([a-z0-9_\.\+-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$
Password Strength
(?=(.*[0-9]))((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.{8,}$
URL
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)
(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)
Phone Number
^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$
Credit Card Numbers
^3[47][0-9]{13}$
^3(?:0[0-5]|[68][0-9])[0-9]{11}$
^(?:2131|1800|35\d{3})\d{11}$
^9[0-9]{15}$
^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$
^5[1-5][0-9]{14}$
^(62[0-9]{14,17})$
^4[0-9]{12}(?:[0-9]{3})?$
^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14})$
Select the Mask option if you want to help the user to provide data in a specific format (such as a credit card number, zip code, phone number). Here are the default format characters:
For example:
99999-9999
+4\9 99 999 99
Put your example to Test input to check if it works correctly. The result will be shown in the last column.
Click Apply.
A configuration for the Text field is set up.
If you can’t find the answer you need in our documentation, raise a support request. Include as much information as possible to help our support team resolve your issue faster