I'm trying to validate a TextInput field on my whatsapp flow but i'm failing. How can I do it?
03:55 28 Jul 2024
{
   "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"

whatsapp whatsapp-flows