Hello
I need to allow á é í ó ú Á É Í Ó Ú in alpha validation.
Im using ChronoForms 4.0 RC3.4.1.
i try to edit
administrator/components/com_chronoforms/form_actions/auto_serverside_validation/auto_serverside_validation.php
on line 76
return preg_match('/^[a-z ._-]+$/i', $form->data[$str]);
i add
return preg_match('/^[áéíóúÁÉÍÓÚa-z ._-]+$/i', $form->data[$str]);
but doesnt work.
Thanks
I need to allow á é í ó ú Á É Í Ó Ú in alpha validation.
Im using ChronoForms 4.0 RC3.4.1.
i try to edit
administrator/components/com_chronoforms/form_actions/auto_serverside_validation/auto_serverside_validation.php
on line 76
return preg_match('/^[a-z ._-]+$/i', $form->data[$str]);
i add
return preg_match('/^[áéíóúÁÉÍÓÚa-z ._-]+$/i', $form->data[$str]);
but doesnt work.
Thanks
Hi,
You should not edit core files, instead use "Custom server side" validation check for that, but regarding the regex expression itself, I think that you can find examples on Google easily.
Regards,
Max
You should not edit core files, instead use "Custom server side" validation check for that, but regarding the regex expression itself, I think that you can find examples on Google easily.
Regards,
Max
This topic is locked and no more replies can be posted.