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.

Brandfetch

7.22.24

The Magic of Clip Path

7.22.24

Codex

7.22.24

Rize

7.22.24

Le Flair Studios

7.17.24

Forms.Supply

7.16.24

Thind UI

7.15.24

CSS Hacks for Webflow

7.14.24

Christina Liubynska

7.14.24

Matteo Fabbiani

7.14.24

SaveDay

7.14.24

No Code Collab

7.12.24

Jose Ocando

7.12.24

Control Rive animation in Webflow using GSAP

7.12.24

Belief Agency

7.11.24

COB

7.11.24

GitBook

7.11.24

Socialclub

7.10.24

Socks UI

7.10.24

Ena Supply

7.10.24

Fabric Studio

7.9.24

Jason Walkow

7.9.24

Webflow Collection De-referencer

7.8.24

Supersparks

7.8.24

Accordion Productions

7.8.24

Scene

7.8.24

Public Eye

7.8.24

Arcade

7.8.24

Polpis

7.8.24

SCI Ventures

7.2.24

Sugar

7.2.24

Marathon

7.2.24

3Rings Consulting

7.2.24

Stera Global

7.2.24

Guy Powell

7.2.24

Tiny Startups

6.28.24

Ethos

6.28.24

Passage

6.28.24

Today in Design

6.28.24

Figma Plugins

6.26.24

Oddit

6.26.24

TED Fellows

6.25.24

Scroll to accordion on open

6.25.24

Sonar Music

6.25.24

Translatable Project

6.25.24

BCG Platinion

6.24.24

All The Rage by Memberstack

6.24.24

Manuel Ogomigo

6.24.24

Studio Few

6.20.24

Mac Media

6.19.24

Toil

6.17.24

Invoke

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