Hello, we would like to implement a phone number validation on one of our contact form.
The ideal solution for us would be a using OTP system (like the one from Twilio). As per my understanding it will require an API.
According to TypeForm help support, there is no native solution
We are looking for the best manner to implement this verification via API or any other way, does anyone know any example of something similar done on a form ? Or have any advices ?
Thanks in advance
Best answer by picsoung
Hi @Damien
As @Liz mentioned, the flow of a form can’t be interrupted to make an external API call between questions.
So the only moment you can do this verification would be when the form is submitted.
As a workaround for now, I would suggest to break your flow into two forms. One first form just asking for form number. This form redirects to an OTP validation UI of your own. When this forms is submitted it triggers a webhook to call Twilio OTP API.
If the OTP validation works, you can redirect the user to the second part of the form, passing the phone number as a hidden field.