Text validation in AppSheet can be a little challenging.
There’s no RegEx, and you have to nest 26 SUBSTITUTE()'s just to validate for letters only. And you can nest more SUBSTITUTE()'s for numbers and special characters, but not apostrophes.
This sample app uses a different approach;
An EnumList table that stores the list of allowable characters, to be reused for validating multiple columns throughout the app-- or for generating lists for buttons and dropdowns.
Text Validation Sample App
The [List]
is SPLIT()
into a real list, and then subtracted from the user input-- which has been converted to a list of single characters.
This gets around the editor limitation of typing apostrophes in formulas, and cleans up the expressions by referencing the list, instead of listing every item directly in the expression.