FWIW, I have this workaround that uses a combination of regex (generated with the help of ChatGPT) and Glide text hints to inform the user what a valid format should look like:
-
[Data Editor] Create a column in the Customers data sheet, e.g.
Phone Number Valid
, of this type: Other ➝ Experimental ➝ Text ➝ Check Text Matches. Set the column to your regex pattern, e.g^\+(?:[0-9] ?){6,14}[0-9](?: ?[0-9]){0,10}$
-
[Layout] Create a text hint component to display the error/warning message, and tie its visibility condition to the value of the column from step 1
Some potential downsides of this workaround:
- It’s difficult to come up with a catch-all regex pattern, since international number formats vary by country/region. However, if the expected values are restricted to a particular region, then it’s easier to apply a stricter regex
- There’s seemingly no way (?) to disable the “Submit” button on the standard Glide form when the validation fails. Most of the related questions I came across are about custom buttons (but ofc, I stand guided):