Changing alphanumeric validation regex in form

re remain 01 Jun, 2016
Hi,

I want to add Turkish characters to Latin letters in alpha type validation.
I find some threads discussing this but they are all about V4.
They mention validation.js to change but I don't have that.
Where can I find the file to add Turkish letters for validation ?

Thanks.
re remain 02 Jun, 2016
isnt't this possible in V5 ?
Max_admin Max_admin 23 Jun, 2016
Did you try to write a custom validation function ? this is explained in the FAQs.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Gr GreyHead 23 Jun, 2016
Hi remain,

In the input element Validation tabs scroll down to the Custom function box and add checkTurkish

In the Setup tab add a Load JavaScript action to the form On Load event before the HTML (Render form) action and add code like this
function checkTurkish(el) {
  var pattern = /^[a-zA-Z0-9[şŞıİçÇöÖüÜĞğ\ \-_]+$/;
  return pattern.test(jQuery(el).val());
}
This will allow the Turkish characters shown plus the Latin ones plus space, dash and underscore.

Bob
This topic is locked and no more replies can be posted.