Validate HTML Inputs w/ Pattern Attribute

Validate HTML Inputs w/ Pattern Attribute

Add a simple pattern and title attribute on any HTML input to only allow a specific value or part of a value to be accepted. This can be used to validate emails from a specific domain like “@example.com” or only accept links that include a specific string. The title attribute allows a custom message appear in a browser default tooltip if the email entered isn’t valid.

Within the pattern attribute we use regex to determine what value match is approved. You can use regex to match just about anything, so this general approach can also be used to match other specific values in any input.

Industries

Creators

Have feedback or a question related to this item? Drop us some feedback!

Curated: 
5.4.23

Similar items

Join us online at Webflow Conf 2025

View item
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Animator for Framer

11.2.22

Gareth Hughes

11.2.22

Webflow Forms: Any CRM, Totally Customized

11.1.22

Kraken

$5/mo
11.1.22

Supply.family

11.1.22

Multi-track Audio Player

11.1.22

30 Seconds of Code

11.1.22

Figma

10.29.22

Design Systems

10.29.22

Covex

10.28.22

Cultivate Food

10.28.22

Druhin Tarafder

10.28.22

Felipe Elioenay

10.26.22

Dorik

10.25.22

PLYO Lab

10.24.22

Sequoia Arc

10.24.22

Whywhywhy

10.24.22

Daybreak

10.24.22

Redirect Form on Submit and Pass Input Value to URL

10.23.22

Remove HTML Tags From Webflow CMS Rich Text Export

10.22.22

Accessible Ecommerce Color Toggle Cards

10.21.22

Finiam

10.21.22

TakeProfit

10.21.22

Disco

10.21.22

admilk

10.21.22

MetaCHORS

10.21.22

Refokus Tools

10.20.22

Previously Unavailable

10.20.22

CMS Image Plotter

10.19.22

Orchestrate

10.19.22

Reinitialize Webflow Interactions

10.19.22

OH no Type Company

10.18.22

Heavyweight Digital Type Foundry

10.18.22

Phillip Lee

10.17.22

P-51 Mustang

10.16.22

Weweb

10.13.22

Rose Island

10.12.22

Margot Priolet

10.12.22

Atomus®

10.11.22

StanVision

10.11.22

Fontshare

10.10.22

Get Image Size w/ Airtable Script

10.10.22

Compress Images w/ Airtable Script

10.10.22

3 Ways to Loop Through Records w/ Airtable Scripts

10.10.22

Finsweet Attributes

10.7.22

Formly

$120/yr
10.7.22

Creating a User Portal for Airtable

10.7.22

Simple Countdown to Date/Time

10.6.22

Illustration.lol

10.4.22

Use Airtable Scripts to Resize and Crop Images

10.3.22

GetScreenshot

10.3.22
Load more

Bummer, no results

Try a different search/filter combo, or drop us some feedback if there is something missing you would love to see!

Reset filters

Subscribe for updates

Get updates on the latest curated resources and be the first to hear of new features.