text field validation

How to set up pattern validation for a text field in CF.

Overview

The issue is confusion about correctly entering the regular expression pattern and validation rules in the form settings.
Enter the regular expression pattern, including slashes, in the designated validation field and use the validation rules section for any custom rules or messages.

Answered
ChronoForms v6
sp spsh21 08 Jun, 2017
Hi!

I tried to set up pattern for text field validation, but I can't understand how to do this. Pattern like this pattern="[0-9A-Fa-f]{12}" or any other.

Can you help me, please?

Regards,
Sergey
Max_admin Max_admin 09 Jun, 2017
Answer
Hi Sergey,

Please try this:

/[0-9A-Fa-f]{12}/


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sp spsh21 09 Jun, 2017
Hi,Max!

It works.Thanks. But validaiton works very strange in my opinion. There is some bug here, I think.

Best regards,
Sergey
Max_admin Max_admin 10 Jun, 2017
Hi Sergey,

How do you expect it to run exactly ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sp spsh21 12 Jun, 2017
Hi, Max!

It's difficult for me to understand how to fill correctly fields on the validation tab - 'Regular expression' and 'Validation rules' fields.




Best regards,
Sergey
Max_admin Max_admin 12 Jun, 2017
Hi Sergey,

The validation rules takes custom rules and messages, the other validation settings are the predefined ones.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.