Forum


Calc Builder Support

Calc Builder support
Forums
No se permite escribir sin estar logado. Por favor, login

Email validation 20.07.2012 09:34

Here is the solution to add an email validation to one of your form fields, which you have typed 'text'.

Go to javascript events, and write this:

getCBFormValue('x').addClass('validate-email');


Where 'x' is the field ID (from fields and code tab).
Moonsoft Team
www.moonsoft.es

Re: Email validation 23.07.2012 06:19

I tried this and didn't have success. In my case the name of the field variable is email.

Here's what I put in the Javascript events:

getCBFormValue('email').addClass('validate-email');

Did I miss something?

Re: Email validation 23.07.2012 09:54

Hello,

getCBFormValue('email').addClass('validate-email'); is not valid...

Just change 'email' text by the id of this field. You can check the id of the field in 'fields and code' section, on the left side of the field.

For example, if 'email' field has 5 as id, you should write:

getCBFormValue('5').addClass('validate-email');

Regards,
Moonsoft Team
www.moonsoft.es

Re: Email validation 23.07.2012 18:55

That worked. Thanks!
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Lo que nuestros clientes opinan de nosotros