Does anyone know if there's a configurable input component for screen flow that can be set to only accept numbers in a format like so: XX-XXXXX-XXXXXXX? I'm trying to collect some school identification data and the ID numbers are always two digits, a dash, five digits, a dash, and then seven digits.
Thanks,
Jeff.
#Flow #Screen Flow
Ajaypreet Singh Saini (Grantbook) Forum Ambassador
Hey @Jeff Illingworth, as Vuk mentioned, you can achieve this using a REGEX formula. You have to create a validation on this input component on the screen.
Let's say the name of the input field is "Identification Number" and API name is "Identification_Number" then your validation formula will be below:
REGEX({!Identification_Number}, '^[0-9]{2}-[0-9]{5}-[0-9]{7}$')
Where, {!Identification_Number} is the actual API name of your text input component's output variable.
Replace this with your actual input field.