zesty-io / manager-ui

Content platform powering enterprise websites and applications
https://www.zesty.io
Other
37 stars 5 forks source link

Schema: Rules - Regex #2720

Closed zcolah closed 1 day ago

zcolah commented 1 month ago

Problem

A customer has requested "Add Regex field validation (and error message)" for Schema fields. This is so as to ensure single line and multi line text inputs only accept values that match specific patterns (e.g. URL, Email, Slug, etc.)

Solution

Users can specify a custom pattern the values in this field should match

image

Users can specify a custom pattern the values in this field should NOT match

image

Custom Error Message will be displayed if the pattern requirements are not met

image

Figma

https://www.figma.com/design/sqYc553YEOuIXj9IY1VAY4/Schema%3A-Rules?m=dev&node-id=71%3A62564&t=fuesqjrOJy9B5o3o-1