Calc Builder Support

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

How to validate option lists? 15.01.2014 06:20

The validation script doesn't work on my option list fields (I have selected "Required" in the field configuration). I have set a first option without any value with the name "--- Select ---", but when I look into the generated code, there is still a value associated with this option but the "mv_option" is empty, so I guess that the script should look first if the mv_option has a value, and if not, display an error message, but it doesn't seems to be working that way. Do I have to write an extra script in the JavaScript section? If so, could you give me the code to write?

Thank you!

Re: How to validate option lists? 15.01.2014 10:27


Option List is special for required validation. You should add to 'Css class' in your field in backend: cb_option_non_first
This generates a validate error if first option is selected. If you want to change message, you should change 'OPTION_REQUIRED' property in language fields.

Hope this helps. Regards,
Moonsoft Team

Re: How to validate option lists? 16.01.2014 11:37

Ok I will try that!! :)
Thank you very much!
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Lo que nuestros clientes opinan de nosotros