Forum


Calc Builder Suggestions

Help us to make a better extension !
Forums
Public write access is disabled. Please login

more types of var 04.11.2013 01:05

Would be nice if the input field can have the type e-mail

better than fix it with javascript on load

document.getElementById('fld_ID').type = 'email';

Re: more types of var 04.11.2013 13:32

Hi,
thank you for your feedback. In fact, the 'email' type is not a type itself because it can be easily created using text field and a validator. It's not a well known feature of calcbuilder but as it includes validator plugin, you can also use classes instead of javascript to set field validations, so if you create a text field and you set as Css class property :

email


You will see the validator applying to ensure a valid email format. You have available other classes able to include validations to the text fields, like

digits
url
number
creditcard

Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: more types of var 04.11.2013 13:38

Great where can i find more info about the validation plugin

Ps the CCS class email works great but how to translate the text

Please enter a valid email address.

Edited by moon_1209 - 04.11.2013 13:42

Re: more types of var 04.11.2013 13:51

Hi,
we use this jquery plugin

http://jqueryvalidation.org/documentation

It adds the validation text automatically, so they are not passing through joomla language file, please find how to translate here:

http://www.moonsoft.es/en/help/2-cbsupport/1650-translate-this-field-is-required


Regards
Moonsoft Team
www.moonsoft.es

Re: more types of var 04.11.2013 14:57

Found

CB.validator.messages.email = "Type een E-mail adres.";

Tryed it before but dont work with the type=email but with the ccs class {email} it works great.

Start to see how it works.

Tnx.
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback