menu

Text Line

A Text Line is a form field that allows users to enter single line text values. It is typically used for entering things like names, addresses, and phone numbers.

In addition to the standard properties, this field has two more options - input mask and validation regex.

Input Mask:

An input mask is a way to format the text that is entered into a text field.
This can be useful for ensuring that the user enters the data in the correct format. 

For example:
To force users to enter their credit card number in the format XXXX-XXXX-XXXX-XXXX.
Enter the input mask as ^(\d{4})-(\d{4})-(\d{4})-(\d{4})$

Validation Regex

Validation Regex can be used to ensure that the data is in the correct format and that it meets certain criteria. 

For example:
Use validation regex to ensure that the user enters a valid email address.
Enter regex as ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$

Additionally, here are some resources you can refer to when creating regular expressions.

Frequently Used Regular Expressions

https://regex101.com/


InfoLobby © 2024 Globi Web Solutions