Newly added events for validation

There are three new custom events to help you to interact with Shoptet validation scripts. Events are called ShoptetValidationTransform, ShoptetValidationWarning and ShoptetValidationError.

ShoptetValidationTransform is fired when input value is transformed (e.g. uppercase of first letter), ShoptetValidationWarning is fired in case of non blocking error and finally ShoptetValidationError is fired when form element contains blocking error and is not possible tu submit form.

Each of events mentioned above is fired on currently validated input.

List of all custom events is available under shoptet.scripts.availableCustomEvents.

Post navigation