Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please 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

Hello,

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
www.moonsoft.es

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
FaLang translation system by Faboba

Our clients' feedback