Clientside Validation Commerce

Component ID

2545780

Component name

Clientside Validation Commerce

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module has been renamed to Clientside Validation Commerce due to this issue

This module only provides some UX improvement when you use clientside_validation module in the Drupal commerce site.

Features

This module is useful to fix the UX bug when you happen to use clientside_validation module in the checkout pages of Drupal Commerce site. It hides processing icon when form validation in JavaScript is failed and show processing icon when that Javascript validation is successful.

Module dependencies

Approach

jQuery.validate used in clientside_validation only provides triggers valid-form when validation is failed. We bind a listener to event to hide processing icon added by Commerce. And then bind a form submit handler to add processing icon back.

Note: .element-invisible is used to hide processing icon in commerce_checkout module.