Forums

lovercase validation

JustRiddle 30 Jun, 2020
Hi!
How can I set up text field validation to accept only lower cases and numbers?
healyhatman 01 Jul, 2020
Regex would probably be easiest.
GreyHead 02 Jul, 2020
Hi,

ChronoForms supports RegEx - Regular Expressions in the validation options. Please see this page for an introduction if they are new to you.

Bob
JustRiddle 11 Jul, 2020
Hi!
How can I use it?
I've put this in regex:

[a-z0-9]


When I type any upper case or non-alphanumeric charachter in text field, the warning shows up. But when i click "send" button even when there is no forbidden characters I got an error and form is not sended...

PS. sorry for my english
healyhatman 12 Jul, 2020
/^[a-z0-9]+$/ if it's required that they enter something
or
/^[a-z0-9]*$/ if it's not
This topic is locked and no more replies can be posted.