Webflow Sprinkles
Published in

Webflow Sprinkles

Phone number validation and formatting in Webflow forms

Photo by Pawel Czerwinski on Unsplash

Sometimes it’s useful to ask your site visitor to enter their phone number into a contact form. To improve the quality of gathered phone numbers, it’s important to validate them before submitting the form. To further limit the number of mistakes, it’s also helpful to format the number while typing, by adding a space every few digits.

TL;DR

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store