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.

chloédigital

1.10.23

Our year at Jökulá

1.10.23

Screen studio

1.10.23

Alt–Border

1.9.23

Ben Powell

1.9.23

Custom Webflow Multi-select Input

1.9.23

Matt Plays

1.9.23

Mail to Link

1.9.23

Eun Jeong Yoo ✗ 유은정

1.9.23

Ultra

1.7.23

Deximal

1.7.23

Add interactivity to your Webflow sites with Rive

1.6.23

Dominate the DOM with Mutation Observer

1.6.23

Studio: Mann

1.6.23

FATES

1.6.23

Mo Eid

1.6.23

Adam Ho - 2022 Recap Archive

1.6.23

HTTPie

1.6.23

Isomorphic Labs

1.6.23

Detail

1.5.23

DoingCoolStuff

1.5.23

Fabric Token

1.5.23

Rive

1.5.23

Rive to Webflow Workflow

1.3.23

Icam INOX

1.3.23

247Studio

1.3.23

Typedream

1.2.23

Peter Dimitrov

1.2.23

Notionry

1.2.23

Outsite

1.2.23

Fix Overflow Hidden and Border Radius Mobile Bug

1.2.23

Vibrant

1.1.23

Lenuse

1.1.23

Godlike

12.31.22

GitHub Copilot

12.30.22

Salt Hotels - With us, it's personal.

12.30.22

MagicPattern — Mesh Gradients

12.28.22

Google Search Operators

12.27.22

Inkblot Therapy

12.26.22

GridUp

12.24.22

Traf

12.23.22

Get YouTube Thumbnails w/ Airtable Script

12.22.22

Trends

12.22.22

CMS List Sync in Webflow

12.21.22

Giulia Gartner

12.21.22

Heading for Framer

12.20.22

Companies.tools

12.19.22

Studio Kanda

12.19.22

folk

12.19.22

Clipboard.js

12.19.22

GSAP Scrolltrigger for Advanced Scroll Interactions

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