{
“type”: “TextInput”,
“required”: true,
“label”: “National ID Number”,
“name”: “national_id”,
“input-type”: “text”,
“min-chars”: 14,
“max-chars”:15,
“helper-text”: “eg. 70-123456-C-78”
},
On my personal details screen, i’m taking user ID from the textInput, however i want to validate the input I get using this pattern “^(?i)d{2}-d{5,7}-[A-Za-z]-d{2}$”. How can I do it?
I tried using pattern but im getting the error “property pattern is not allowed”
Bundex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.