I am using the text match plugin to validate a phone number to ensure that it starts with a zero (True).
How do I prevent submission of the form if the result is False?
If you use the native form, you can only create a message/hint. However, to prevent the form from being submitted, you will need custom CSS.
Another alternative is to use a custom form and enforce conditions through a custom action on your submit button.
2 Likes
That is brilliant. I think hint will be OK for now
https://help.twilio.com/articles/360050891214
An alternative for you is using Twilio’s Lookup API.