Chronoforms 8.0.9 - regex

rbock 03 Aug, 2023
Hello...

how can i stop the following characters for textarea

href
www
https
http
.xyz
Max_admin 03 Aug, 2023
Answer
1 Likes
use PHP validation for this (Valid Function) behavior:
if(str_contains($value, "href")){
return "your message should not contain href";
}
return true;

this will not stop the form to be submitted by the browser but users will not be able to send the form, it will show an error message
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.