News:

Support the VirtueMart project and become a member

Main Menu

required fields validation

Started by Venexian, October 07, 2016, 10:46:40 AM

Previous topic - Next topic

Venexian

Hi All,
after searching for hours I can't find how to solve my problem with the required fields validation (registration process).
Currently I've installed VM 3.018 on J!3.6.2 but the problem / bug does exist even in previous versions.
Here's the problem: even if a field is marked as required the script accepts a space as a correct input. Is there a way to avoid this? Would some VM Guru suggest how to solve this issue?
I'm available to pay a membership if needed.
Thanx a lot
N.

GJC Web Design

Yes.. your right .. very crap

the prob is that VM uses the standard joomla validation script.. 
media/system/js/validate.js

you can try on any Joomla form (login , reg etc) -- it also accepts  a blank space
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Venexian

Thanks a lot. Understanding validate.js is over my head ...   >:(
N.

GJC Web Design

You either need to write your own js validation for the VM form or better complain on the Joomla forum that their validator validates an empty space..
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Venexian

I will even if the Joomla developers should know that bug.
Thanx
Nereo