Sounds like you’re still using the native Glide form. As I mentioned, you’d need to use a Custom Form.
Essentially:
- Your phone number input would be written to a User Specific Column
- You then use the yes-code column to check the length of the input
- And then you use that result to control the user flow. There are a few different ways to do that. Personally, I like to keep as much logic as possible in my Glide tables, so I’d do something like:
- If-then-else column: If length is greater than X then blank, else
true
(where X is the max allowed length) - Then in my custom form, I’d have a submit button with a custom action attached. That action would have two branches:
- If “if-then-else column” is
true
, then do the other actions; Add Row, etc - Else Show Notification “Input too long” (or whatever)
- If “if-then-else column” is
You can also have warnings that appear that before the Submit button is tapped (and there is an example of that in my custom form demo).