Configure inline validation for string fields
Configure guidance text to display in string fields with format requirements such as account ID, SSN, or SIN. Use regular expression inline validation to display an error message if the input doesn't meet format requirements.
Avant de commencer
Role required: admin
Pourquoi et quand exécuter cette tâche
Guidance text helps you enter data correctly into string fields with format requirements such as account ID, SSN, or SIN. Inline validation uses a regular expression (regex) pattern to enforce format requirements. If the input doesn't match the required format, an error message displays.
The process for configuring string fields with guidance text and inline validation requires two steps:
- Create a regex pattern for a required input format.
- Map the regex pattern and add guidance text to a string field.
Procédure
-
Create a regex pattern for a required input format.
-
Map the regex pattern and add guidance text to a string field.