How Validate phone custom field with regular expression.

I need to validate the custom fields of the phone that should only store number and 9 digits.

Hello Ananias ,

You can use the Regex_Search Action from Outsystems.

With that action you can validate a string against a Regex Pattern, in your case you can try this pattern : 

[0-9]{9} /gm

Wich will only select numbers,  from 0 to 9, for 9 characters. 

If you need to play around with your Regex you can check out Regex 101.

Hope it helps! 

Paulo Rosário

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.