We have an enquiry form in a WP website. The form is builded with WP Quform plugin.
More details about the plugin: [login to view URL] (I can provide you the plugin)
I have an offer request form created with Quform, with several steps, in the first step I have a field in which the customer enters his phone number and we want that after entering the phone number to appear a button "Validate number by SMS " and a new field to enter the code received by sms.
There isn’t anything built into the Quform plugin to do this, so it will require custom development.
Some infos from the Quform devs: [login to view URL]
I can see it being possible if you add field for their mobile number and a button to the form e.g. “Send SMS verification”. With custom JS you send an Ajax request to a PHP handler within WP that will generate a random number and use a PHP to SMS service like Twilio to send the SMS, also save this random number to session. Then once they enter the verification code in the form you can create a custom validator to check that the submitted value matches the number saved in the session.
Here you can find some documentation: [login to view URL]
I consider the project done when I see a working demo.
You must create yourself a Twilio developer account to use your own secret-keys.
I can provide you the plugin and an exemple form created by me so that you can import and make some tests on it.