Author Topic: required fields validation  (Read 1268 times)

Venexian

  • Beginner
  • *
  • Posts: 3
required fields validation
« on: October 07, 2016, 10:46:40 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9390
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: required fields validation
« Reply #1 on: October 07, 2016, 11:18:07 am »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Venexian

  • Beginner
  • *
  • Posts: 3
Re: required fields validation
« Reply #2 on: October 07, 2016, 17:10:38 pm »
Thanks a lot. Understanding validate.js is over my head ...   >:(
N.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9390
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: required fields validation
« Reply #3 on: October 07, 2016, 22:28:14 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Venexian

  • Beginner
  • *
  • Posts: 3
Re: required fields validation
« Reply #4 on: October 11, 2016, 08:44:41 am »
I will even if the Joomla developers should know that bug.
Thanx
Nereo