The Short text gadget provides an advanced option that allows you to enforce custom formatting. For example, if you wanted to capture a phone number that was formatted like this: 555-555-5555, you could use regular expression such as ^\d{3}-\d{3}-\d{4}$
to enforce the 10 digits and dashes.
The syntax for regular expressions is more advanced, but simple patterns like the one mentioned above are pretty approachable. There are several resources available on the internet to help you understand regular expressions, and while we don't endorse a particular site, we have found that this resource is often helpful for our customers: https://regexone.com/.
A custom error message can also be provided to help users understand the required formatting. For example, a user did not correctly format a phone number as 555-555-555, a customized error message would appear upon the submission of the form to alert them.
For more information, see the following article(s):
Comments
0 comments
Article is closed for comments.