Forums

Validate alpha spanish tilde

colemjosel 08 Nov, 2012
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
Max_admin 08 Nov, 2012
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
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
GreyHead 08 Nov, 2012
Hi colemjosel,

Please check the FAQs for some code examples.

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