Memberstack
Pricing
API
Login
Build for free
Memberstack
Pricing
API
Login
Build for free
Memberstack
Pricing
API
Login
Build for free
Blog/Memberscripts/How to Verify User Phone Numbers via WhatsApp Before Form Submission
Memberscripts

How to Verify User Phone Numbers via WhatsApp Before Form Submission

How to use Memberscript #152 to verify user phone numbers via WhatsApp before form submission

Ovidiu·Contributor
|
3 min read

How to Verify User Phone Numbers via WhatsApp Before Form Submission

https://www.memberstack.com/scripts/otp-verification-via-whatsapp

Cloneable:

https://webflow.com/made-in-webflow/website/otp-verification-via-whatsapp

Why/Use Cases –

  • Lead qualifications
  • Secure account submissions

Collecting phone numbers through forms is common, but verifying that those numbers are real can be challenging. With this script, you can require users to confirm their phone number through a one-time password (OTP) sent via WhatsApp before submitting a form on your Webflow site.

By verifying numbers in real time, you reduce spam submissions and ensure the contact information you receive is legitimate. Since many users already rely on WhatsApp daily, the verification process feels familiar and convenient while adding a meaningful layer of security.

In this guide, we’ll walk through how to implement the script step by step, so you can add WhatsApp-based OTP verification to your forms.

How to verify user phone numbers via WhatsApp before a form submission on Webflow

In order to set this up, we’re going to use MemberScript #152 – OTP Verification via WhatsApp in Webflow. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.

Setting it up

The first thing you’ll need to do is set up an account on whatsauth.com.

Once you’re in, create an app and click on Try it once it’s finished. Look at the page URL and copy your API key, we’re going to need this later.

Now go to your form, click on the field where users are supposed to enter their phone numbers and add the attributes:

  • data-ms-code=”phone-number”
  • data-ms-member=”phone-number”

You can add additional attributes if you want to change how the verification component looks and feels:

  • data-ms-placeholder=”Click to validate phone number”
  • data-ms-primary-color=”#2D62FF”
  • data-ms-secondary-color=”#27AE60”
  • data-ms-btn-text=”Verify via WhatsApp”

Making it work

Now that you’ve set everything up, you just need to add the MemberScript #152 custom code to your page, before the closing body tag. Replace the existing API key in the custom code with the one you copied earlier.

Unless there’s a reason that you want the code sitewide, it would probably be best to use the code on just the pages where it would be relevant.

Don’t forget to also add the code for WhatsApp authentication from whatsauth.com to your site’s header.

Conclusion

That’s all you have to do to verify user phone numbers via WhatsApp before they submit a form on Webflow.

WhatsApp OTP verification helps ensure that the phone numbers collected through your forms are genuine and reachable. This improves lead quality, reduces spam, and adds an extra level of trust to your submission process.

With this script in place, your Webflow forms become more secure and reliable, helping you collect verified contact details while maintaining a smooth user experience.

If you want to use our demo project to get you started, just click the button below to add it to your project.

Button – Get cloneable

Written by

Ovidiu

Contributor

Share

Explore Memberstack

  • All Features
  • Customer Showcase
  • Templates
  • Find Experts
  • Pricing
  • Help Center

Related Articles

Memberscripts

How to Launch an On-Boarding Tour When a Member Logs In

How to implement MemberScript #151 – Onboarding Tour for New Members for your site/app

Ovidiu

Memberscripts

How to Highlight Key Features for New Members Using a Guided Tour

How to use Memberscript #151 to highlight key features for new members using a guided tour on a Webflow site.

Ovidiu

Memberscripts

How to Welcome Members with a First-Time Login Product Tour

How to add the MemberScript #151 to welcome new members with a product tour the first time they log into your Webflow site.

Ovidiu

Product

  • Full Feature List
  • User Accounts
  • Gated Content
  • Secure Payments
  • API & Integrations
  • Data Tables
  • Memberstack & Webflow
  • Memberstack & Claude Code
  • Memberstack & WordPress
  • Create a new account
  • 2.0 Log in
  • 1.0 Log in
  • Pricing

Learn about Memberstack

  • Showcase
  • Testimonials
  • Why Memberstack
  • Memberstack vs Outseta
  • Memberstack vs Memberspace
  • Memberstack vs Webflow Memberships

Company

  • About
  • Careers
  • Changelog
  • Partnerships(email)
  • Contact Us(email)
  • X
  • LinkedIn
  • "Do Not Sell My Data" Promise

Resources

  • Vibe Coding
  • Templates
  • Components
  • MemberScripts
  • Data Attributes
  • Find Experts
  • Hiring Guide
  • Webflow Slack Community
  • WordPress Slack Community
  • Support Forum
  • Help Center
  • Blog
  • llms.txt (for AI)
  • llms-full.txt (for AI)
AICPA
SOC

SOC 2 TYPE 1

CERTIFIED

GDPR

COMPLIANT

CCPA

COMPLIANT

Privacy PolicyTerms of ServiceCookie PolicySecurity Policy

© Memberstack Inc. 2018 - 2025. All rights reserved.

Memberstack - The no-code membership platform for any website | Product Hunt