There are only six validation available for product attributes
- validate-number (Decimal Number)
- validate-digits (Integer Number)
- validate-email (Email)
- validate-url (URL)
- validate-alpha (Letters)
- validate-alphanum (Letters (a-z, A-Z) or Numbers (0-9))
I follow this link and add new(Value Greater than 0) validation to product attribute with the upgradeData script.
But it uses backend class for validate attribute value and validate value at the time of saving attribute. But I want JS validation which should working on tab key.
Have anyone an idea about custom JS validation on product attribute?