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.

Lottieflow

12.3.19

Nocode.tech

12.3.19

Flowbase

12.3.19

Lobe

12.3.19

Adalo

12.3.19

Storychief

12.3.19

Foxy.io

12.3.19

Typeform

12.3.19

Uploadcare

12.3.19

Udesly

12.3.19

Xano

12.3.19

UI Bakery

12.3.19

@Media Prefers Dark/Light

11.21.19

CSS Combinators

11.21.19

Min/Max/Clamp Individual Styles

11.21.19

CSS Aspect-Ratio

11.21.19

CSS Scroll Snap

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