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

Advertise with No-Code Supply Co.

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

Type Design Resources

2.24.23

Emperor OAR 2022

2.24.23

Guide on Migrating Your Wordpress Site to Webflow

2.23.23

Capital Template

2.22.23

Old Friend

2.22.23

HEX INC

2.22.23

How to Build Simple Chrome Extensions w/ Keegan Leary

2.21.23

How to create consistency in your website

2.20.23

Devolfs

2.20.23

Planet Lizard

2.20.23

Bento

2.20.23

htmx

2.20.23

bunny.net

2.20.23

UNFINISHED

2.20.23

JUST - 1-click payment solution

2.20.23

Webflow Examples Github Repo

2.20.23

Inclusive Components

2.20.23

Roman Tesliuk

2.20.23

Magic Rename

2.19.23

Kickstart Studio

2.19.23

Studio Gruhl

2.19.23

Relocate Element While Scrolling in Webflow

2.19.23

Mural

2.15.23

ThreeSixtyEight

2.15.23

Srbija Sans Font

2.15.23

CHRLS.DSGN

2.15.23

Das Glashaus In der Uckermark

2.15.23

Axis Arbor

2.15.23

BLZT Fonts Pack

2.14.23

Arillatype.Studio®

2.14.23

IEX Exchange

2.14.23

Notion API – Full Course for Beginners

2.14.23

Perspective

2.14.23

Cinch PR

2.14.23

Builder.io

2.14.23

Archetype

2.13.23

Jitter

2.11.23

WhistlePig

2.10.23

Splash

2.10.23

Filip Wróblewski

2.10.23

Webflow Autoplay Tabs w/ Play/Pause Button

2.9.23

Timothy Maurer

2.9.23

HvD Fonts

2.9.23

Universe

2.9.23

Chart.js

2.9.23

Superchart

2.9.23

Framepad

2.9.23

Genius by Diagram

2.9.23

Luxon

2.8.23

Add International Times with Timezones to your website

2.8.23

Hookdeck

2.8.23

Good Design Tools

2.8.23
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.