Enum: TextValidationType¶
Validation rules for text fields constraining the input format.
URI: [redcap_dd:TextValidationType](https://w3id.org/linkml/redcap-data-dictionary/TextValidationType)
## Permissible Values
| Value | Meaning | Description |
| --- | --- | --- |
| date_ymd | None | Date in YYYY-MM-DD format |
| date_mdy | None | Date in MM-DD-YYYY format |
| date_dmy | None | Date in DD-MM-YYYY format |
| datetime_ymd | None | Datetime in YYYY-MM-DD HH:MM format |
| datetime_mdy | None | Datetime in MM-DD-YYYY HH:MM format |
| datetime_dmy | None | Datetime in DD-MM-YYYY HH:MM format |
| datetime_seconds_ymd | None | Datetime with seconds in YYYY-MM-DD HH:MM:SS format |
| datetime_seconds_mdy | None | Datetime with seconds in MM-DD-YYYY HH:MM:SS format |
| datetime_seconds_dmy | None | Datetime with seconds in DD-MM-YYYY HH:MM:SS format |
| time | None | Time in HH:MM format |
| time_mm_ss | None | Time in MM:SS format |
| integer | None | Whole number (no decimals) |
| number | None | Decimal number |
| number_1dp | None | Number with 1 decimal place |
| number_2dp | None | Number with 2 decimal places |
| number_3dp | None | Number with 3 decimal places |
| number_4dp | None | Number with 4 decimal places |
| number_comma_decimal | None | Decimal number using a comma as the decimal separator (e |
| number_1dp_comma_decimal | None | Number with 1 decimal place, comma decimal separator |
| number_2dp_comma_decimal | None | Number with 2 decimal places, comma decimal separator |
| phone | None | Phone number format |
| email | None | Email address format |
| zipcode | None | US ZIP code format |
| alpha_only | None | Letters only (no numbers or special characters) |
## Slots
| Name | Description |
| --- | --- |
| [text_validation_type_or_show_slider_number](text_validation_type_or_show_slider_number.md) | For text fields: the validation type constraining input format |
## Identifier and Mapping Information
### Schema Source
* from schema: https://w3id.org/linkml/redcap-data-dictionary
## LinkML Source
name: TextValidationType
description: Validation rules for text fields constraining the input format.
from_schema: https://w3id.org/linkml/redcap-data-dictionary
rank: 1000
permissible_values:
date_ymd:
text: date_ymd
description: Date in YYYY-MM-DD format.
date_mdy:
text: date_mdy
description: Date in MM-DD-YYYY format.
date_dmy:
text: date_dmy
description: Date in DD-MM-YYYY format.
datetime_ymd:
text: datetime_ymd
description: Datetime in YYYY-MM-DD HH:MM format.
datetime_mdy:
text: datetime_mdy
description: Datetime in MM-DD-YYYY HH:MM format.
datetime_dmy:
text: datetime_dmy
description: Datetime in DD-MM-YYYY HH:MM format.
datetime_seconds_ymd:
text: datetime_seconds_ymd
description: Datetime with seconds in YYYY-MM-DD HH:MM:SS format.
datetime_seconds_mdy:
text: datetime_seconds_mdy
description: Datetime with seconds in MM-DD-YYYY HH:MM:SS format.
datetime_seconds_dmy:
text: datetime_seconds_dmy
description: Datetime with seconds in DD-MM-YYYY HH:MM:SS format.
time:
text: time
description: Time in HH:MM format.
time_mm_ss:
text: time_mm_ss
description: Time in MM:SS format.
integer:
text: integer
description: Whole number (no decimals).
number:
text: number
description: Decimal number.
number_1dp:
text: number_1dp
description: Number with 1 decimal place.
number_2dp:
text: number_2dp
description: Number with 2 decimal places.
number_3dp:
text: number_3dp
description: Number with 3 decimal places.
number_4dp:
text: number_4dp
description: Number with 4 decimal places.
number_comma_decimal:
text: number_comma_decimal
description: Decimal number using a comma as the decimal separator (e.g. de_DE).
number_1dp_comma_decimal:
text: number_1dp_comma_decimal
description: Number with 1 decimal place, comma decimal separator.
number_2dp_comma_decimal:
text: number_2dp_comma_decimal
description: Number with 2 decimal places, comma decimal separator.
phone:
text: phone
description: Phone number format.
email:
text: email
description: Email address format.
zipcode:
text: zipcode
description: US ZIP code format.
alpha_only:
text: alpha_only
description: Letters only (no numbers or special characters).