Forums

No spaces field validation

walterbz 12 Sep, 2023
Hi all,
I'm trying to add a validation that checks if there are white spaces in field.
I tried with regex \S but it does not work
I tried to add a space in the regex field "does not contain" but also does not work. It works with other string but not with spaces.
Any idea?
Thanks
Max_admin 28 Sep, 2023
Answer
did you try a custom function and return an error if the field value includes a space ?

it's also possible with Regex
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.